Intuition Behind Differentiation

#calculus #differentiation

For y=f(x)y = f(x), differentiation is the ratio of how yy changes as xx changes. This is the rate of change of the function.

For a straight line, this would be constant. For example, the derivative of f(x)=2x+1f(x)=2x + 1 is 2. This is the good old slope of a graph(the ratio of change in yy to the change in xx: y2y1x2x1\dfrac{y_2 - y_1}{x_2 - x_1})

But then, how do we find the rate of a change of a function that’s a curve?

We could decide to find the slope using y2y1x2x1\dfrac{y_2 - y_1}{x_2 - x_1} but this only tells us the rate of change between certain intervals in xx. It doesn’t represent change in the whole function. This might be useful in some cases but how do we get the rate of change in the function as a whole.

We know that the slope can’t be constant because it’s a curve so we resort to finding the instantaneous rate of change. We may not be able to find the rate of change of the whole curve but can find the rate of change of the curve in an instant.

An instant can be a seen as a moment. How do you represent a moment in time?

If we had a function of time tt, f(t)f(t), this can be seen a value of tt close to zero but not zero. It is popularly called an infinitesimal value of tt. How do we represent tt close to zero but not zero? We use limits! This can be represented as follow:limΔt0f(t+Δt)f(t)(t+Δt)t=limΔt0f(t+Δt)f(t)Δt\lim_{\Delta t \to 0}\dfrac{f(t+\Delta t) - f(t)}{(t +\Delta t) - t} = \lim_{\Delta t \to 0}\dfrac{f(t+\Delta t) - f(t)}{\Delta t}This looks a lot like the formula for finding slope but our interval here is tt to tt plus an infinitesimal value of tt. This reads “the change in the function f(x)f(x) as the change in time tt approaches zero”. Δt\Delta t is the change in time.

Let using the limit formula to derive the slope of the function f(x)=2x+1f(x) = 2x + 1.f(x+Δx)=2(x+Δx)+1=2x+2Δx+1f(x + \Delta x) = 2(x + \Delta x) + 1 = 2x + 2\Delta x + 1limΔt0f(x+Δx)f(x)Δx=limΔt02x+2Δx+1(2x+1)Δx\lim_{\Delta t \to 0}\dfrac{f(x +\Delta x) - f(x)}{\Delta x}=\lim_{\Delta t \to 0}\dfrac{2x + 2\Delta x + 1-(2x + 1)}{\Delta x} =limΔt02x+2Δx+12x1Δx=limΔt02ΔxΔx=\lim_{\Delta t \to 0}\dfrac{2x + 2\Delta x + 1- 2x - 1}{\Delta x}=\lim_{\Delta t \to 0}\dfrac{2\Delta x}{\Delta x}=2=2We have been able to come up with a generalized rate of change for our striaght line function above. You can confirm this by picking two arbitrary values of x1x_1 and x2x_2 and computing y2y1x2x1\dfrac{y_2 - y_1}{x_2 - x_1}.

But, then this really shines for function other than straight line functions. Let’s try this on a quadratic g(x)=x2+5x3g(x) = x^2 + 5x - 3. For better visuals we would set h=Δxh = \Delta x g(x+h)=(x+h)2+5(x+h)3g(x + h) = (x + h)^2 + 5(x + h) - 3=x2+2xh+h2+5x+5h3=x^2 + 2xh + h^2 + 5x + 5h - 3 limh0f(x+h)f(x)h\lim_{h \to 0}\dfrac{f(x + h) - f(x)}{h} limh0x2+2xh+h2+5x+5h3(x2+5x3)h\lim_{h \to 0}\dfrac{x^2 + 2xh + h^2 + 5x + 5h - 3 - (x^2 + 5x - 3)}{h}=limh0x2+2xh+h2+5x+5h3x25x+3h=\lim_{h \to 0}\dfrac{x^2 + 2xh + h^2 + 5x + 5h - 3 - x^2 - 5x + 3}{h}=limh02xh+h2+5hh=\lim_{h \to 0}\dfrac{2xh + h^2 + 5h}{h}=limh02xhh+h2h+5hh=\lim_{h \to 0}\dfrac{2xh}{h}+\dfrac{h^2}{h}+\dfrac{5h}{h}=limh02x+h+5=\lim_{h \to 0}2x+ h + 5=2x+0+5=2x + 0 + 5=2x+5=2x + 5This simply means that at any point xx we can compute the rate of change in that moment using 2x+52x + 5.

This is the fundamental idea behind differentiation.