Finding the Range of k in a Quadratic Equation Problem

AI Thread Summary
The discussion focuses on determining the range of values for k in the quadratic function f(x) = k(x+2)^2 - (x-1)(x-2) such that it never exceeds 12.5. Participants analyze the conditions under which the parabola opens downwards, requiring k to be less than 1 to ensure it remains bounded from above. The consensus is that the maximum value of f(x) must satisfy the inequality f_max ≤ 12.5, leading to the conclusion that k must be less than or equal to 0.5. A misunderstanding regarding the signs in inequalities is clarified, emphasizing the importance of the discriminant in determining the nature of the roots. Ultimately, the problem is resolved, with participants acknowledging the utility of the discriminant approach for future reference.
coderot
Messages
10
Reaction score
0
1) Find the range of values of k such that the function f(x) \equiv k(x+2)^2-(x-1)(x-2) never exceeds 12.5. I've missed several stages of the computation because it is quite lengthy. I hope you get the flow of things.

My attempt...
(k-1)\left[ x + \left( \frac{4k+3}{k-1} \right)x + \frac{4k-2}{k-1} \right] \le 12.5Complete the square on LHS...
(k-1)\left[ \left( x + \frac{4k+3}{2(k-1)} \right)^2 - \frac{48k+1}{4(k-1)^2} \right] \le 12.5This boils down to...-196k \le -98 and so k \ge 0.5Solution given is: k \le 0.5 not sure why. Any help thanks.
 
Physics news on Phys.org
First off:
Can you see what info you may get from the second derivative of f?
You should get that k must be strictly less than 1, so that your (k-1) factor is necessarily negative.
That might be the reason why you get the wrong equality sign.
 
Sorry, I can't use the calculus technique for this. Yes, i know from the properties of quadratic functions that if the coefficient of x^2 is < 0 then f(x) is a max at x = -b/2a.

Thanks for the reply.
 
I'm not quite sure what you are doing. Also, if your goal is to solve for k, I'm not sure why you have x in your equations.

-Your first equation is quadratic in x
-Your second equation is linear in x
-Your third equation is again quadratic in x
-The remainder of your equations don't have x

-Junaid
 
coderot said:
1) Find the range of values of k such that the function f(x) \equiv k(x+2)^2-(x-1)(x-2) never exceeds 12.5. I've missed several stages of the computation because it is quite lengthy. I hope you get the flow of things.

My attempt...
(k-1)\left[ x + \left( \frac{4k+3}{k-1} \right)x + \frac{4k-2}{k-1} \right] \le 12.5Complete the square on LHS...
(k-1)\left[ \left( x + \frac{4k+3}{2(k-1)} \right)^2 - \frac{48k+1}{4(k-1)^2} \right] \le 12.5This boils down to...-196k \le -98 and so k \ge 0.5Solution given is: k \le 0.5 not sure why. Any help thanks.


If k > 1 the graph of y = f(x) is a parabola that opens upwards, so cannot remain <= 12.5. If k = 1 the function f(x) is linear in x but not constant, so again cannot remain <= 12.5 always. Therefore, we need ---at least--- k < 1 for the graph of y = f(x) to remain bounded from above (so the graph is a parabola opening downward). Now look at the three cases: (1) f(x) = 0 has two roots; (2) f(x) = 0 has a single root (repeated); and (3) f(x) = 0 has no real roots. In case (1) the maximum of f(x) occurs half-way between the two roots (obvious, but you may want to prove it---without calculus); so you can find the maximum value of f(x) in this case, and require it to be <= 12.5. This gives a range of k, and you can check that as k decreases, the value of max f(x) decreases also. When k decreases far enough, we reach cases (2) and (3) and still have max f < 12.5..
 
Ray Vickson said:
In case (1) the maximum of f(x) occurs half-way between the two roots (obvious, but you may want to prove it---without calculus); so you can find the maximum value of f(x) in this case, and require it to be <= 12.5.
Ray, went down this route and got exactly the same inequality as before. I need to show this result algebraically. I've tried a number of different routes on this and I always get the same result. The only conculsion that I can draw is that my initial statementf(x) \equiv k(x+2)^2 - (x-1)(x-2) \le 12.5from the given information is wrong. But I can't workout why.

@Junaid: You've spotted a typo. Thanks.
 
coderot said:
Ray, went down this route and got exactly the same inequality as before. I need to show this result algebraically. I've tried a number of different routes on this and I always get the same result. The only conculsion that I can draw is that my initial statementf(x) \equiv k(x+2)^2 - (x-1)(x-2) \le 12.5from the given information is wrong. But I can't workout why.

@Junaid: You've spotted a typo. Thanks.

For the problem exactly as written, the solution is that ##f_{\max} \leq 12.5## if and only if ##k \leq 1/2##. The point is that k needs to be smaller than something in order to ensure that the parabola y = f(x) opens downward and so remains bounded from above! All I can suggest is that you do it again---carefully--and if you are still confused, show us the work in detail.
 
Ray, been through the calculation, same result. Here is my working in full...
f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5k(x^2+4x+4)-(x^2-3x+2) \le 12.5kx^2+4kx+4k-x^2+3x-2 \le 12.5(k-1)x^2+(4kx+3)x+4k-2 \le 12.5for coefficient of x^2 &lt; 0, k &lt; 1 note: not assuming this is the correct result but just an educated guess as to the possible range for k.\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \left( \frac{4k+3}{2(k-1)} \right)^2 \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \frac{(4k+3)^2}{4(k-1)^2} \right] \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + \frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25there is a max @ x=-\frac{4k+3}{2(k-1)} therefore\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)16k^2-24k+8-16k^2-24k-9 \le 50k-50-48k-1 \le 50k-50, therefore: -98k \le -49 divide both sides by -98 and k \ge 0.5
Note that the work here is alittle different as I attempted the problem again before posting but the result is the same. Hope this helps.
 
coderot said:
Ray, been through the calculation, same result. Here is my working in full...
f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5k(x^2+4x+4)-(x^2-3x+2) \le 12.5kx^2+4kx+4k-x^2+3x-2 \le 12.5(k-1)x^2+(4kx+3)x+4k-2 \le 12.5for coefficient of x^2 &lt; 0, k &lt; 1 note: not assuming this is the correct result but just an educated guess as to the possible range for k.\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \left( \frac{4k+3}{2(k-1)} \right)^2 \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \frac{(4k+3)^2}{4(k-1)^2} \right] \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + \frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25there is a max @ x=-\frac{4k+3}{2(k-1)} therefore\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)16k^2-24k+8-16k^2-24k-9 \le 50k-50-48k-1 \le 50k-50, therefore: -98k \le -49 divide both sides by -98 and k \ge 0.5
Note that the work here is alittle different as I attempted the problem again before posting but the result is the same. Hope this helps.

You are NOT doing what I suggested.

For k < 1 the parabola y = f(x) opens downwards, so f is bounded from above (and can, therefore, have a finite maximum). For at least a range of k < 1, the equation f(x) = 0 will have two roots, and their mid-point will be the maximizing point of f(x). Just draw a picture of an upside-down parabola that cuts the x-axis in two points. You will then see what I am claiming.

So, the maximum of ##ax^2 + bx + c## occurs at ##x^* = - b/(2a). ## In your case this becomes
x^* = \frac{4k+3}{2(1-k)} giving a maximum value of
f_{\max} = f(x^*) = \frac{48k+1}{4(1-k)}.
(Note: this comes after a lot of simplification!) Since k < 1 the denominator is > 0, so the inequality we need is
\frac{48k+1}{4(1-k)} \leq 12.5 \Longrightarrow 48k + 1 \leq 12.5 \times 4 (1-k), or ##k \leq 1/2.##

Note that the max, (48k+1)/[4(1-k)] decreases as k decreases from 1/2, and when k decreases down to k = -1/48 the two roots of the quadratic coallesce. For k < -1/48 the quadratic has no real roots at all, so f(x) < 0 for all x. The value ##f_{\max} = (48k+1)/[4(1-k)]## still applies in this case, but the calculus-free argument no longer applies and you need to use another way of seeing the result.
 
  • #10
coderot said:
Ray, been through the calculation, same result. Here is my working in full...
f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5k(x^2+4x+4)-(x^2-3x+2) \le 12.5kx^2+4kx+4k-x^2+3x-2 \le 12.5(k-1)x^2+(4kx+3)x+4k-2 \le 12.5for coefficient of x^2 &lt; 0, k &lt; 1 note: not assuming this is the correct result but just an educated guess as to the possible range for k.\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \left( \frac{4k+3}{2(k-1)} \right)^2 \right] \le 252(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k+3}{2(k-1)} \right)^2 + \left( \frac{4k-2}{k-1}\right) - \frac{(4k+3)^2}{4(k-1)^2} \right] \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 252(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + \frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25there is a max @ x=-\frac{4k+3}{2(k-1)} therefore\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)16k^2-24k+8-16k^2-24k-9 \le 50k-50-48k-1 \le 50k-50, therefore: -98k \le -49 divide both sides by -98 and k \ge 0.5
Note that the work here is alittle different as I attempted the problem again before posting but the result is the same. Hope this helps.

Your error is going from
\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25
to
2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1).
This is false if k < 1, because in the fraction the denominator is < 0, so when you multiply through by it the inequality gets reversed: you should have
2(8k^2-12k+4)-(16k^2+24k+9) \geq 50(k-1).
 
  • #11
coderot said:
Ray, been through the calculation, same result. Here is my working in full...
f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5k(x^2+4x+4)-(x^2-3x+2) \le 12.5kx^2+4kx+4k-x^2+3x-2 \le 12.5(k-1)x^2+(4kx+3)x+4k-2 \le 12.5
You made a mistake, the coefficient for x is 4k+3.
Anyway, you made it very complicated. The quadratic expression (k-1)x2+(4k-3)x+4k-14.5 can not exceed or equal to zero. That is, the quadratic equation (k-1)x2+(4k-3)x+4k-14.5=0 has no roots. What is the condition for that?


ehild
 
  • #12
Ray, thanks for taking the time to respond. Most helpful.

ehild. You've spotted another set of typos, thanks. Yes, your suggestion offered a far more direct way to the result. The discriminant approach for roots that are not real didn't occur to me at the time of tackling this; but it's certainly something I'll consider in the future when doing these sorts of problems. Thanks for taking the time to respond.

Problem solved.
 
  • #13
coderot said:
Yes, your suggestion offered a far more direct way to the result. The discriminant approach for roots that are not real didn't occur to me at the time of tackling this; but it's certainly something I'll consider in the future when doing these sorts of problems.

Problem solved.

Look at the figure. A graph of a quadratic function can change sign only if the associated quadratic equation has two distinct roots. If the discriminant is less then zero, the function is either positive or negative. Remember, that is very useful.

ehild
 

Attachments

  • quadratics.JPG
    quadratics.JPG
    8.3 KB · Views: 389
Back
Top