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 < 0, k < 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.