First find the secant line. The slope of the secant line through

(when

) and

(when

) is the average rate of change of

over the interval
![[-1,2]](https://img.qammunity.org/2018/formulas/mathematics/college/x3he7xarf956t60dhkpq12d5arnxmvvuh0.png)
:

The tangent line to

will have a slope determined by the derivative:

Both the secant and tangent will have the same slope when

, or when

.