MatheramaMatherama
← Differentiation
Differentiation·Section 3·11 min read

Rules of Differentiation

Differentiation follows a set of basic rules that help us find derivatives easily. These rules allow us to differentiate different types of functions without always using the limit definition.

By using these rules along with the derivatives of simple functions, we can differentiate more complex functions that involve addition, multiplication, division, and compositions of basic functions. These rules make the process of differentiation simpler and more efficient.

Constant Multiplication Rule:§

ddx[kf(x)]=kddxf(x)\frac{d}{dx} \left[ k f(x) \right] = k \frac{d}{dx} f(x)

Proof: Using the first principles definition,

ddx[kf(x)]=lim⁡Δx→0kf(x+Δx)−kf(x)Δx.\frac{d}{dx} \left[ k f(x) \right] = \lim_{\Delta x \to 0} \frac{k f(x + \Delta x) - k f(x)}{\Delta x}.

Factoring out kk,

=klim⁡Δx→0f(x+Δx)−f(x)Δx.= k \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x}.

Recognizing the definition of the derivative,

=kddxf(x).= k \frac{d}{dx} f(x).

Sum Rule:§

ddx[f(x)+g(x)]=ddxf(x)+ddxg(x)\frac{d}{dx} [f(x) + g(x)] = \frac{d}{dx} f(x) + \frac{d}{dx} g(x)

Proof: Using the first principles definition,

ddx[f(x)+g(x)]=lim⁡Δx→0f(x+Δx)+g(x+Δx)−f(x)−g(x)Δx.\frac{d}{dx} [f(x) + g(x)] = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) + g(x + \Delta x) - f(x) - g(x)}{\Delta x}.

Splitting the fraction,

=lim⁡Δx→0[f(x+Δx)−f(x)Δx+g(x+Δx)−g(x)Δx].= \lim_{\Delta x \to 0} \left[ \frac{f(x + \Delta x) - f(x)}{\Delta x} + \frac{g(x + \Delta x) - g(x)}{\Delta x} \right].

Taking the limit separately,

=ddxf(x)+ddxg(x).= \frac{d}{dx} f(x) + \frac{d}{dx} g(x).

Product Rule§

The product rule states that if f(x)f(x) and g(x)g(x) are both differentiable functions, then the derivative of their product is given by

ddx[f(x)g(x)]=f(x)ddxg(x)+g(x)ddxf(x).\frac{d}{dx} [f(x) g(x)] = f(x) \frac{d}{dx} g(x) + g(x) \frac{d}{dx} f(x).

This rule allows us to differentiate functions that are products of two differentiable functions without expanding them first.

Proof Using First Principles

By definition, the derivative is

ddx[f(x)g(x)]=lim⁡Δx→0f(x+Δx)g(x+Δx)−f(x)g(x)Δx.\frac{d}{dx} [f(x) g(x)] = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) g(x + \Delta x) - f(x) g(x)}{\Delta x}.

Adding and subtracting f(x)g(x+Δx)f(x) g(x + \Delta x),

=lim⁡Δx→0f(x+Δx)g(x+Δx)−f(x)g(x+Δx)+f(x)g(x+Δx)−f(x)g(x)Δx.= \lim_{\Delta x \to 0} \frac{f(x + \Delta x) g(x + \Delta x) - f(x) g(x + \Delta x) + f(x) g(x + \Delta x) - f(x) g(x)}{\Delta x}.

Rearranging terms,

=lim⁡Δx→0[f(x+Δx)−f(x)Δxg(x+Δx)+f(x)g(x+Δx)−g(x)Δx].= \lim_{\Delta x \to 0} \left[ \frac{f(x + \Delta x) - f(x)}{\Delta x} g(x + \Delta x) + f(x) \frac{g(x + \Delta x) - g(x)}{\Delta x} \right].

Taking the limit,

=(lim⁡Δx→0f(x+Δx)−f(x)Δx)g(x)+f(x)(lim⁡Δx→0g(x+Δx)−g(x)Δx).= \left( \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x} \right) g(x) + f(x) \left( \lim_{\Delta x \to 0} \frac{g(x + \Delta x) - g(x)}{\Delta x} \right).

Recognizing these as f′(x)f'(x) and g′(x)g'(x),

=f′(x)g(x)+f(x)g′(x).= f'(x) g(x) + f(x) g'(x).

Thus, the product rule is proven:

ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x).\frac{d}{dx} [f(x) g(x)] = f'(x) g(x) + f(x) g'(x).

Quotient Rule§

The quotient rule states that if f(x)f(x) and g(x)g(x) are differentiable functions, then the derivative of their quotient is given by

ddx[f(x)g(x)]=g(x)ddxf(x)−f(x)ddxg(x)[g(x)]2.\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \frac{g(x) \frac{d}{dx} f(x) - f(x) \frac{d}{dx} g(x)}{[g(x)]^2}.

This rule is essential for differentiating functions where one function is divided by another.

Proof Using First Principles

By definition, the derivative is

ddx[f(x)g(x)]=lim⁡Δx→0f(x+Δx)g(x+Δx)−f(x)g(x)Δx.\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \lim_{\Delta x \to 0} \frac{\frac{f(x + \Delta x)}{g(x + \Delta x)} - \frac{f(x)}{g(x)}}{\Delta x}.

Rewriting the numerator as a single fraction,

f(x+Δx)g(x+Δx)−f(x)g(x)=f(x+Δx)g(x)−f(x)g(x+Δx)g(x+Δx)g(x).\frac{f(x + \Delta x)}{g(x + \Delta x)} - \frac{f(x)}{g(x)} = \frac{f(x + \Delta x) g(x) - f(x) g(x + \Delta x)}{g(x + \Delta x) g(x)}.

Thus,

ddx[f(x)g(x)]=lim⁡Δx→0f(x+Δx)g(x)−f(x)g(x+Δx)Δx⋅1g(x+Δx)g(x).\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) g(x) - f(x) g(x + \Delta x)}{\Delta x} \cdot \frac{1}{g(x + \Delta x) g(x)}.

Rewriting the numerator,

f(x+Δx)g(x)−f(x)g(x+Δx)=(f(x+Δx)g(x)−f(x)g(x))+(f(x)g(x)−f(x)g(x+Δx)).f(x + \Delta x) g(x) - f(x) g(x + \Delta x) = \left( f(x + \Delta x) g(x) - f(x) g(x) \right) + \left( f(x) g(x) - f(x) g(x + \Delta x) \right).

Factoring each term,

=g(x)(f(x+Δx)−f(x))−f(x)(g(x+Δx)−g(x)).= g(x) \left( f(x + \Delta x) - f(x) \right) - f(x) \left( g(x + \Delta x) - g(x) \right).

Substituting back,

ddx[f(x)g(x)]=lim⁡Δx→0g(x)(f(x+Δx)−f(x))−f(x)(g(x+Δx)−g(x))Δx⋅1g(x+Δx)g(x).\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \lim_{\Delta x \to 0} \frac{g(x) (f(x + \Delta x) - f(x)) - f(x) (g(x + \Delta x) - g(x))}{\Delta x} \cdot \frac{1}{g(x + \Delta x) g(x)}.

Taking the limit,

=g(x)f′(x)−f(x)g′(x)[g(x)]2.= \frac{g(x) f'(x) - f(x) g'(x)}{[g(x)]^2}.

Thus, the quotient rule is proven:

ddx[f(x)g(x)]=g(x)f′(x)−f(x)g′(x)[g(x)]2.\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \frac{g(x) f'(x) - f(x) g'(x)}{[g(x)]^2}.

Corollary: Reciprocal Rule§

The reciprocal rule states that if f(x)f(x) is a differentiable function and f(x)≠0f(x) \neq 0, then the derivative of its reciprocal is given by

ddx[1f(x)]=−f′(x)[f(x)]2.\frac{d}{dx} \left[ \frac{1}{f(x)} \right] = -\frac{f'(x)}{[f(x)]^2}.

This follows directly from the quotient rule by setting g(x)=1g(x) = 1, so that

ddx[1f(x)]=f(x)⋅ddx(1)−1⋅ddxf(x)[f(x)]2.\frac{d}{dx} \left[ \frac{1}{f(x)} \right] = \frac{f(x) \cdot \frac{d}{dx} (1) - 1 \cdot \frac{d}{dx} f(x)}{[f(x)]^2}.

Since ddx(1)=0\frac{d}{dx} (1) = 0, this simplifies to

ddx[1f(x)]=−f′(x)[f(x)]2.\frac{d}{dx} \left[ \frac{1}{f(x)} \right] = -\frac{f'(x)}{[f(x)]^2}.

Thus, the reciprocal rule provides a quick way to differentiate functions of the form 1/f(x)1/f(x) without applying the full quotient rule explicitly.

Chain Rule (Composition Rule)§

For a composition of two differentiable functions f(g(x))f(g(x)), the derivative is given by

ddxf(g(x))=f′(g(x))⋅g′(x).\frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x).

This rule allows us to differentiate composite functions efficiently by first differentiating the outer function and then multiplying by the derivative of the inner function.

Proof Using First Principles*

By definition of the derivative,

ddxf(g(x))=lim⁡Δx→0f(g(x+Δx))−f(g(x))Δx.\frac{d}{dx} f(g(x)) = \lim_{\Delta x \to 0} \frac{f(g(x + \Delta x)) - f(g(x))}{\Delta x}.

Multiplying and dividing by g(x+Δx)−g(x)g(x + \Delta x) - g(x),

=lim⁡Δx→0[f(g(x+Δx))−f(g(x))g(x+Δx)−g(x)⋅g(x+Δx)−g(x)Δx].= \lim_{\Delta x \to 0} \left[ \frac{f(g(x + \Delta x)) - f(g(x))}{g(x + \Delta x) - g(x)} \cdot \frac{g(x + \Delta x) - g(x)}{\Delta x} \right].

Taking limits separately,

lim⁡Δx→0f(g(x+Δx))−f(g(x))g(x+Δx)−g(x)andlim⁡Δx→0g(x+Δx)−g(x)Δx.\lim_{\Delta x \to 0} \frac{f(g(x + \Delta x)) - f(g(x))}{g(x + \Delta x) - g(x)} \quad \text{and} \quad \lim_{\Delta x \to 0} \frac{g(x + \Delta x) - g(x)}{\Delta x}.

For the first limit, let

u=g(x),u+Δu=g(x+Δx),u = g(x), \quad u + \Delta u = g(x + \Delta x),

so that Δu=g(x+Δx)−g(x)\Delta u = g(x + \Delta x) - g(x). Then the first limit transforms into

lim⁡Δu→0f(u+Δu)−f(u)Δu.\lim_{\Delta u \to 0} \frac{f(u + \Delta u) - f(u)}{\Delta u}.

By definition, this is f′(u)f'(u), and since u=g(x)u = g(x), we obtain

lim⁡Δx→0f(g(x+Δx))−f(g(x))g(x+Δx)−g(x)=f′(g(x)).\lim_{\Delta x \to 0} \frac{f(g(x + \Delta x)) - f(g(x))}{g(x + \Delta x) - g(x)} = f'(g(x)).

For the second limit,

lim⁡Δx→0g(x+Δx)−g(x)Δx=g′(x).\lim_{\Delta x \to 0} \frac{g(x + \Delta x) - g(x)}{\Delta x} = g'(x).

Thus, multiplying both limits together,

ddxf(g(x))=f′(g(x))⋅g′(x).\frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x).

■\blacksquare


From the proof, we can see something important: the composition y=f(g(x))y = f(g(x)) can be understood as a chain of transformations:

x→gg(x)→ff(g(x)).x \quad \xrightarrow{g} \quad g(x) \quad \xrightarrow{f} \quad f(g(x)).

alt text

Here, xx is first mapped to g(x)g(x), and then g(x)g(x) is mapped to f(g(x))f(g(x)). The function g(x)g(x) acts as an intermediate output in this process.

If we introduce a new variable uu such that

u=g(x),u = g(x),

then differentiating both sides gives

dudx=g′(x).\frac{du}{dx} = g'(x).

Since y=f(u)=f(g(x))y = f(u) = f(g(x)), differentiating with respect to xx,

dydx=ddxf(g(x))=f′(g(x))g′(x).\frac{dy}{dx} = \frac{d}{dx} f(g(x)) = f'(g(x)) g'(x).

Using the intermediate variable uu, this can be rewritten as

dydx=f′(u)⋅g′(x).\frac{dy}{dx} = f'(u) \cdot g'(x).

Recognizing that f′(u)=dyduf'(u) = \frac{dy}{du} and g′(x)=dudxg'(x) = \frac{du}{dx}, we obtain

dydx=dydu⋅dudx.\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}.

Thus, the derivative of a composite function can be written in the chain rule form:

dydx=dydu⋅dudx.\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}.

This formulation highlights that the total rate of change of yy with respect to xx can be computed by first differentiating yy with respect to the intermediate variable uu and then multiplying by the derivative of uu with respect to xx.

Chain Rule of Differentiation for Multiple Compositions

For a function involving multiple compositions, such as f(g(h(k(x))))f(g(h(k(x)))), the differentiation process extends by repeatedly applying the chain rule:

ddxf(g(h(k(x))))=f′(g(h(k(x))))⋅g′(h(k(x)))⋅h′(k(x))⋅k′(x).\frac{d}{dx} f(g(h(k(x)))) = f'(g(h(k(x)))) \cdot g'(h(k(x))) \cdot h'(k(x)) \cdot k'(x).

To compute this efficiently, first differentiate the outermost function f(⋅)f(\cdot) with respect to its argument, treating everything inside as a single object. This gives f′(g(h(k(x))))f'(g(h(k(x)))). Then, multiply by the derivative of the next inner function, g(h(k(x)))g(h(k(x))), again treating h(k(x))h(k(x)) as a single object. Continue this process until reaching the innermost function k(x)k(x).

Thus, differentiation proceeds step by step, always applying the derivative to the outermost function first and then moving inward. This method ensures that complex compositions can be differentiated efficiently and systematically without explicitly substituting intermediate variables.

Section 3 of 10 · Differentiation

Mark this section complete when you have worked through its proofs.