Determining if a number is within an interval

  • Thread starter Thread starter rxh140630
  • Start date Start date
  • Tags Tags
    Interval
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 1K views
rxh140630
Messages
60
Reaction score
11
Homework Statement
I can't see itex formatting, and if I made a mistake in formatting or not, for the homework statement section, so as to save time and any confusion I will write the question in the solution attempt.
Relevant Equations
none that I know
0<k<1
x<y
[itex]x,y \in {[a,b]}[/itex]
[itex]a,b \in {\mathbb R}[/itex]

Question: is [itex]yk + (1-k)x \in {[a,b]}[/itex]

My response:

[itex]yk + (1-k)y = y[/itex]

Since [itex]x<y[/itex], [itex]yk + (1-k)x < y[/itex]

[itex]xk + (1-k)x = x[/itex]

Since [itex]y>x[/itex], [itex]yk + (1-k)x > x[/itex]

Therefore [itex]x < yk + (1-k)x < y[/itex], so yk + (1-k)x is in the interval [a,b]

Is this considered proven? Did I miss anything?
 
Physics news on Phys.org
##yk + (1-k)y =y## makes no sense. This is not true for all values of ##k##. You must also require ##a < b##. Your goal is to show that ##yk + (1-k)x \in [a,b]## and you showed that ##yk + (1-k)x \in [x,y] \subseteq [a,b]## so I guess your attempt does contain the right idea, but the exposition can be better imo.
 
Math_QED said:
##yk + (1-k)y =y## makes no sense. This is not true for all values of ##k##. You must also require ##a < b##. Your goal is to show that ##yk + (1-k)x \in [a,b]## and you showed that ##yk + (1-k)x \in [x,y] \subseteq [a,b]## so I guess your attempt does contain the right idea, but the exposition can be better imo.

Sorry, yes also a<b. I don't understand why [itex]yk + (1-k)y = y[/itex] doesn't make sense? For all values of k s.t 0<k<1, yk + (1-k)y = yk + y -yk = y.
 
rxh140630 said:
Sorry, yes also a<b. I don't understand why [itex]yk + (1-k)y = y[/itex] doesn't make sense? For all values of k s.t 0<k<1, yk + (1-k)y = yk + y -yk = y.

I misread and misquoted sorry. It surely is correct. But that sentence is not necessary for your proof?
 
Perhaps not, just wanted to make sure that it's correct, regardless of elegance.
 
Your proof is valid. I would just encourage you to make it a little more step-by-step, like this:
Since x < y and k > 0, ##xk + (1-k)y < yk + (1-k)y = y < b##.
 
  • Like
Likes   Reactions: rxh140630 and SammyS