The function is .
Apply derivative on each side with respect to .
Take out common term .
.
The condition for horizontal tangent is .
Substitute in the equation
.
The horizontal tangent occurs at the point are and
.
The condition for vertical tangent is .
Substitute in the equation
.
The vertical tangent occurs the point are and
.
Horizontal tangent occurs the point are and
.
Vertical tangent occurs the point are and
.