The magnitude of the force is
.
Where
is the positive constant called the coefficients of friction.
is the weight of an object.
Find the critical points.
\Differentiate the force
with respect to
, holding
and
as constants.

To find the critical points, equate its derivative to zero.
\
Find the value of
at the end points.
Substitute
in
.

Substitute
in
.

Find the value of
at the critical number.
Substitute
in the function.

Now
then
.
.
Observe the values.
\
, hence
is minimized then
.
When
is minimized then
.