Find sum of all possible values of the parameter $b$ if the difference between the largest and smallest values of the function $f(x)=x^2-2bx+1$ in the segment $[0,1]$ is $4$.
I found that the smallest value of $f(x)=x^2-2bx+1$ is $1-b^2$
But i do not know what will be the largest value of the quadratic expression,whether it is at $x=0$ or $x=1$.
Please help me.Thanks.
We have $f(x)=(x-b)^2+1-b^2$. Now let us separate it into four cases :
Case 1 : For $b\lt 0$, we have $$4=f(1)-f(0)\Rightarrow b=-\frac 32$$ which is sufficient.
Case 2 : For $0\le b\le \frac 12$, we have $$4=f(1)-f(b)\Rightarrow b=3,-1$$ which are not sufficient.
Case 3 : For $\frac 12\lt b\le 1$, we have $$4=f(0)-f(b)\Rightarrow b=\pm 2$$ which are not sufficient.
Case 4 : For $b\gt 1$, we have $$4=f(0)-f(1)\Rightarrow b=\frac 52$$ which is sufficient.
Hence, the answer is $-\frac 32+\frac 52=\color{red}{1}$.