# Find the value of the expression

The expression $ax^2 + bx + 1$ takes the values $1$ and $4$ when $x$ takes the values $2$ and $3$ respectively. How can we find the value of the expression when $x$ takes the value of $4$?

-

Let $f(x) = ax^2 + bx + 1$

Plug the values in $f(x)$ and we have:

$$f(2) = a(2)^2 + 2b + 1 = 4a + 2b + 1 = 1$$ $$f(3) = a(3)^2 + 3b + 1 = 9a + 3b + 1 = 4$$

Then just solve the following system of equations to find the values for $a$ and $b$, which is fairly easy:

\begin{cases} 4a + 2b = 0\\ 9a + 3b = 3 \end{cases}

Then just plug $x=4$ in $f(x)$.

-

Substitution shows that $4a+2b+1=1$ and $9a+3b+1=4$. Now solve the simultaneous equations to get the value of $a$ and $b$.

-
thanks a lot :) – Kiara Jan 26 '14 at 18:55

Hint $\,\ f(3)=2^2,\ f(2) = 1^2,\ f(0) = (-1)^2\$ so $\,f-(x-1)^2\!=0,\,$ having $3$ roots $\,x=3,2,0$.

-