Finding the Range of k in a Quadratic Equation Problem

In summary, the range of values for k such that the function f(x) never exceeds 12.5 is k < 1/2. This is because for the parabola to open downward and remain bounded from above, k must be smaller than 1. After completing the square and solving algebraically, the maximum value of f(x) is found to be 12.5 at x = -(4k+3)/2(k-1). Therefore, for the function to never exceed 12.5, k must be greater than or equal to 0.5.
  • #1
coderot
10
0
1) Find the range of values of k such that the function [tex]f(x) \equiv k(x+2)^2-(x-1)(x-2)[/tex] 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...
[tex](k-1)\left[ x + \left( \frac{4k+3}{k-1} \right)x + \frac{4k-2}{k-1} \right] \le 12.5[/tex]Complete the square on LHS...
[tex](k-1)\left[ \left( x + \frac{4k+3}{2(k-1)} \right)^2 - \frac{48k+1}{4(k-1)^2} \right] \le 12.5[/tex]This boils down to...[tex]-196k \le -98[/tex] and so [tex]k \ge 0.5[/tex]Solution given is: [tex]k \le 0.5[/tex] not sure why. Any help thanks.
 
Physics news on Phys.org
  • #2
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.
 
  • #3
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.
 
  • #4
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
 
  • #5
coderot said:
1) Find the range of values of k such that the function [tex]f(x) \equiv k(x+2)^2-(x-1)(x-2)[/tex] 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...
[tex](k-1)\left[ x + \left( \frac{4k+3}{k-1} \right)x + \frac{4k-2}{k-1} \right] \le 12.5[/tex]Complete the square on LHS...
[tex](k-1)\left[ \left( x + \frac{4k+3}{2(k-1)} \right)^2 - \frac{48k+1}{4(k-1)^2} \right] \le 12.5[/tex]This boils down to...[tex]-196k \le -98[/tex] and so [tex]k \ge 0.5[/tex]Solution given is: [tex]k \le 0.5[/tex] 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..
 
  • #6
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 statement[tex]f(x) \equiv k(x+2)^2 - (x-1)(x-2) \le 12.5[/tex]from the given information is wrong. But I can't workout why.

@Junaid: You've spotted a typo. Thanks.
 
  • #7
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 statement[tex]f(x) \equiv k(x+2)^2 - (x-1)(x-2) \le 12.5[/tex]from 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.
 
  • #8
Ray, been through the calculation, same result. Here is my working in full...
[tex]f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5[/tex][tex]k(x^2+4x+4)-(x^2-3x+2) \le 12.5[/tex][tex]kx^2+4kx+4k-x^2+3x-2 \le 12.5[/tex][tex](k-1)x^2+(4kx+3)x+4k-2 \le 12.5[/tex]for coefficient of [tex]x^2 < 0, k < 1[/tex] note: not assuming this is the correct result but just an educated guess as to the possible range for k.[tex]\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 25[/tex][tex]2(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 25[/tex][tex]2(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 25[/tex][tex]2(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 25[/tex][tex]2(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 25[/tex][tex]2(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 25[/tex]there is a max @ [tex]x=-\frac{4k+3}{2(k-1)}[/tex] therefore[tex]\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25[/tex][tex]\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)[/tex][tex]16k^2-24k+8-16k^2-24k-9 \le 50k-50[/tex][tex]-48k-1 \le 50k-50[/tex], therefore: [tex]-98k \le -49[/tex] divide both sides by -98 and [tex]k \ge 0.5[/tex]
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.
 
  • #9
coderot said:
Ray, been through the calculation, same result. Here is my working in full...
[tex]f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5[/tex][tex]k(x^2+4x+4)-(x^2-3x+2) \le 12.5[/tex][tex]kx^2+4kx+4k-x^2+3x-2 \le 12.5[/tex][tex](k-1)x^2+(4kx+3)x+4k-2 \le 12.5[/tex]for coefficient of [tex]x^2 < 0, k < 1[/tex] note: not assuming this is the correct result but just an educated guess as to the possible range for k.[tex]\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 25[/tex][tex]2(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 25[/tex][tex]2(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 25[/tex][tex]2(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 25[/tex][tex]2(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 25[/tex][tex]2(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 25[/tex]there is a max @ [tex]x=-\frac{4k+3}{2(k-1)}[/tex] therefore[tex]\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25[/tex][tex]\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)[/tex][tex]16k^2-24k+8-16k^2-24k-9 \le 50k-50[/tex][tex]-48k-1 \le 50k-50[/tex], therefore: [tex]-98k \le -49[/tex] divide both sides by -98 and [tex]k \ge 0.5[/tex]
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
[tex] x^* = \frac{4k+3}{2(1-k)}[/tex] giving a maximum value of
[tex] f_{\max} = f(x^*) = \frac{48k+1}{4(1-k)}.[/tex]
(Note: this comes after a lot of simplification!) Since k < 1 the denominator is > 0, so the inequality we need is
[tex] \frac{48k+1}{4(1-k)} \leq 12.5 \Longrightarrow 48k + 1 \leq 12.5 \times 4 (1-k),[/tex] 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...
[tex]f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5[/tex][tex]k(x^2+4x+4)-(x^2-3x+2) \le 12.5[/tex][tex]kx^2+4kx+4k-x^2+3x-2 \le 12.5[/tex][tex](k-1)x^2+(4kx+3)x+4k-2 \le 12.5[/tex]for coefficient of [tex]x^2 < 0, k < 1[/tex] note: not assuming this is the correct result but just an educated guess as to the possible range for k.[tex]\Rightarrow 2(k-1)x^2+2(4kx+3)x+8k-4 \le 25[/tex][tex]2(k-1)\left[x^2 + \left(\frac{4k+3}{k-1}\right)x + \left( \frac{4k-2}{k-1}\right) \right] \le 25[/tex][tex]2(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 25[/tex][tex]2(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 25[/tex][tex]2(k-1)\left(x+ \frac{4k+3}{2(k-1)}\right)^2 + 8k-4 - \frac{(4k+3)^2}{2(k-1)} \le 25[/tex][tex]2(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 25[/tex]there is a max @ [tex]x=-\frac{4k+3}{2(k-1)}[/tex] therefore[tex]\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25[/tex][tex]\Rightarrow 2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)[/tex][tex]16k^2-24k+8-16k^2-24k-9 \le 50k-50[/tex][tex]-48k-1 \le 50k-50[/tex], therefore: [tex]-98k \le -49[/tex] divide both sides by -98 and [tex]k \ge 0.5[/tex]
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
[tex]\frac{2(k-1)(8k-4)-(4k+3)^2}{2(k-1)} \le 25[/tex]
to
[tex]2(8k^2-12k+4)-(16k^2+24k+9) \le 50(k-1)[/tex].
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
[tex]2(8k^2-12k+4)-(16k^2+24k+9) \geq 50(k-1)[/tex].
 
  • #11
coderot said:
Ray, been through the calculation, same result. Here is my working in full...
[tex]f(x) \equiv k(x+2)^2-(x-1)(x-2) \le 12.5[/tex][tex]k(x^2+4x+4)-(x^2-3x+2) \le 12.5[/tex][tex]kx^2+4kx+4k-x^2+3x-2 \le 12.5[/tex][tex](k-1)x^2+(4kx+3)x+4k-2 \le 12.5[/tex]
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: 364

FAQ: Finding the Range of k in a Quadratic Equation Problem

What is a quadratic equation?

A quadratic equation is a polynomial equation of the second degree, meaning it contains a variable that is squared. It is often written in the form ax^2 + bx + c = 0, where a, b, and c are constants and x is the variable.

How do you solve a quadratic equation?

There are several methods for solving a quadratic equation, including factoring, completing the square, and using the quadratic formula. The method chosen depends on the specific equation and personal preference.

What are the solutions to a quadratic equation?

A quadratic equation can have zero, one, or two solutions, depending on the value of the discriminant (b^2 - 4ac). If the discriminant is positive, there are two real solutions. If it is zero, there is one real solution. If it is negative, there are no real solutions.

What are the real-life applications of quadratic equations?

Quadratic equations are commonly used in physics, engineering, and economics to model relationships between variables. They can also be used to solve problems involving projectile motion, optimization, and geometric shapes.

How can I check if my solution to a quadratic equation is correct?

You can check your solution by plugging the values back into the original equation and seeing if it satisfies the equation. Another method is to graph the equation and see if the x-intercepts match your solutions.

Back
Top