(x−x1)2=x2−2+x21You have made a mistake in you expansion.
Now differentiate the expand expression twice.
e.g.
f(x)=(x+1)2=x2+2x+1Differentiate it twice,
f′(x)=2x+2f′′(x)=2f′′(x) is the 2nd derivative.
Now for the next equation,
e.g.
f(x)=x2+2xWe have to find the turning points of f(x).
First differentiate f(x),
f′(x)=2x+2Make f'(x) equal to zero,
f′(x)=2x+2=0⟹x=−1So the turning point is at x=-1, now find the y-coordinate of it,
f(−1)=(−1)2+2(−1)=1−2=−1So the turning point is at,
(−1,−1)Now try your questions yourself.