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
.

Therefore the horizontal tangent the point are
and
.
The condition for vertical tangent is
.
Substitute
in the equation

Therefore the vertical tangent the point are
and
.
Hence the horizontal tangent the point are
and
.
And the vertical tangent the point are
and
.