With function f(x)=x³-4x²+2x+1:
Attach a point B to the curve.
Make the tangent line fn B.
Move B around.
Check the extremas.

With function f(x)=x²-4x+3:
Make the tangent line for x=2.5