Let $f(x) = x^2 + ax + b$ be a quadratic polynomial in which $a$ and $b$ are integers. If for a given $n$ , $f(n)f(n+1) = f(m)$ for some integer $m$ then the value of $m$ is ?
Do we have to substitute $x$ by $n$ and $n+1$ and then multiply it? or is there another method to get the solution because the mentioned process will give an extremely large equation.
Answer is $n(n+1)+an+b$
You can write this quadratic function in factor form:
$$f(x)= (x-x_1)(x-x_2)$$ where $x_1,x_2$ are roots of $x^2+ax+b=0$ so $$x_1+x_2 =-a\;\;\;{\rm and}\;\;\;x_1x_2 =b$$
Now $$f(n)f(n+1) = (n-x_1)(n-x_2)(n+1-x_1)(n+1-x_2) =\color{red}{(n-x_1)(n+1-x_2)}\color{blue}{(n+1-x_1)(n-x_2)}$$
Since $$\color{red}{(n-x_1)(n+1-x_2)} = n(n+1)-n(x_1+x_2)+x_1x_2-x_1$$ $$=\underbrace{n(n+1)+na+b}_{=:m}-x_1$$ and $$\color{blue}{(n-x_2)(n+1-x_1)} = n(n+1)-n(x_1+x_2)+x_1x_2-x_2$$ $$=\underbrace{n(n+1)+na+b}_{=m}-x_2$$ So if $m=n(n+1)+na+b$ we have $$f(n)f(n+1)=f(m)$$