Suppose
\(f(x)=x^2+2x-1\) and we want to compute the average rate of change of
\(f(x)\) on
\([-1,0]\text{.}\) Both of these numbers are our
\(x\)-values, so we need to plug them both into the function to get the
\(y\)-values:
\begin{equation*}
f(-1)=(-1)^2+2(-1)-1=-2
\end{equation*}
\begin{equation*}
f(0)=(0)^2+2(0)-1=-1
\end{equation*}
Now, that means we just need to compute the slope between the points
\((-1,f(-1))\) and
\((0,f(0))\text{,}\) which we now know is
\((-1,-2)\) and
\((0,-1)\text{:}\)
\begin{equation*}
\frac{-1-(-2)}{0-(-1)}=\frac{-1+2}{0+1}=\frac{1}{1}=1
\end{equation*}
Therefore, our answer is that the average rate of change of
\(f(x)\) on
\([-1,0]\) is
\(1\text{.}\)