The function is 

Apply derivative on each side with respect to
.



\ \
.
.
The function has a horizontal tangent then
.
Substitute
.


Substitute
in the equation
.

Take out common term
.

\ \

.
Therefore the function has horizontal tangent at the points
and
.
The function has horizontal tangent at the points
and
.