[Math] Why can a derivative be non-linear

calculusderivatives

A definition of the derivative is that it is the slope of the tangent line. For example, $x^3$ has a quadratic derivative. How could the slope of the tangent line be non-linear?

Best Answer

Edited

OK, so I'll try to make this post more self contained.

To find an equation of the tangent line to any function $y = f(x)$ at the point $A(x_0, y_0)$, iff $f(x)$ is differentiable at that point, one needs to calculate its algebraic form as $$ y = y_0 + f'(x_0)(x - x_0) $$ so, as you can see, even though you calculate $f'(x)$ to find tangent line slope, it's evaluated at $x_0$, which makes it a number, but that number will change when you move from point to point.

Now, let's consider that example $$ y = x^3 \implies y' = 3x^2 \implies y = x_0^3 + 3x_0^2(x - x_0) = 3x_0^2 x - 2x_0^3 $$ Simple animation of the tangent line when point it was calculated at is moving provided below.

enter image description here