There are a few ways in which you can do that and I will show you two of them.
First calculate value of the function at point `x_0`:
`f(4)=6`, `f(9)=91` (this is `y_0` in next formula (1))
Now calculate derivative of function `f`:
Now calculate vlue of derivative at `x_0`:
Now use the following formula (equation of tangent through a point on a graph) to calculate your approximation:
Here we will use Taylor series. This is a more general method because in this way we can calculate polynomial of `n`-th degree that approximates our function at a given point.
Because we are looking for linear approximation we will use only first two ellements of above sum.
As you can see result of both methods is the same because in both cases we use tangent to approximate our function. But we didn't have to use tangent. Sometimes it's better to use secant line to approximate function on a given interval.