The derivative of a function gives us the slope of the tangent line at any point on the curve. For a horizontal tangent, this slope should be zero. So, we differentiate the function $y=x^{3}-2 x^{2}+x+1$ with respect to $x$ using the power rule of differentiation.
Show more…