The tangent to
has slope
, where

By the chain rule, we have

and by the product rule,


so that with
, we get

The tangent line is horizontal when the slope is 0; this happens for

where
is any integer. In the interval
, this happens for
, or

i.e at the points

and
