I encountered a problem of quadratic. It asks for a quadratic that is in the form $f(x)=ax^2+bx+c$. It is always positive and $b$ is greater than $a$. Than it asks me to find $f(17)$ based on $f(16)=20$. Is there a fast and easy way to do this? My idea is letting $16a+b=2\sqrt{5}$. But than I don't know how to do it since $a$ nor $b$ can be irrational. Any help will be appreciated!
Is there a general formula for a quadratic that is always positive?
-
0Welcome to MSE. Please take a look at [MathJax guide](http://math.stackexchange.com/help/notation) to learn how to properly format maths here. – 2017-01-02
-
1Couple of questions: 1) By "it is always positive", do you mean $f(x)>0$, for all $x\in\Bbb R$? 2) What do you mean by "2root5"? $\sqrt 5$, $2\sqrt 5$? 3) Why can't $a$ and $b$ be irrational? Is it explicitly stated in the problem? – 2017-01-02
-
0sorry i am trying to learn the coding.1) it is actually f(x) is greater/equal to zero for all real x. 2.I mean 2√5. 3)I thought coefficients can't be irrational... I think I am wrong then. – 2017-01-02
1 Answers
Condition $f(x)\geq 0$ gives you that $a>0$ because, if $a<0$, then $\lim_{x\to\pm\infty}f(x) = -\infty$, so there will be some $x$ such that $f(x) < 0$.
We can write down $f(x) = a(x-\alpha)^2+\beta$.
Since $a(x-\alpha)^2 \geq 0$, it follows that $f(x)\geq \beta$ with $f(\alpha) = \beta$, so $\beta$ is the minimum value $f$ achieves. We have $f(x)\geq 0\iff \beta \geq 0$.
If we expand, we get that $f(x) = ax^2 - 2a\alpha x + a\alpha^2 + \beta$ (i.e. $b=-2a\alpha$) and condition $b>a$ gives us $-2a\alpha > a$. Since $a>0$, this means that $b>a\iff\alpha <-\frac 12$.
Finally, $f(16) = 20$ gives us two things: $\beta\leq 20$ and $a=\frac{20-\beta}{(16-\alpha)^2}$, for $\beta \neq 20$ (I will get back to case $\beta = 20$).
Thus, pick any $\alpha < -\frac 1 2$ and $0\leq \beta < 20$ and you have that $$f(x) = \frac{20-\beta}{(16-\alpha)^2}(x-\alpha)^2 + \beta$$ satisfies all the conditions. In particular, $$f(17) = \frac{20-\beta}{(16-\alpha)^2}(17-\alpha)^2 + \beta.$$
If $\beta = 20$, then we have that $a(16-\alpha)^2 = 0$, and since $a>0$, it means that $\alpha = 16$. But, this is contradiction with requirement that $\alpha <-\frac 12$.
-
0thanks! Your solution to this question is really great! I was confused by it for the whole morning! – 2017-01-02
-
0I actually thought there is only one particular solution and tries to find the α for like 1 hour by quadratic... – 2017-01-02
-
0@alex zhang, I'm glad it was helpful. You can easily see why solutions are given by two parameters: $f$ is quadratic, so it is uniquely determined by three points and since you are given one, there are two degrees of freedom remaining. Conditions $b>a$ and $f(x)\geq 0$ only put some restrictions on the parameters, but do not determine them uniquely. – 2017-01-02