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:
Proof: Using the first principles definition,
Factoring out \( k \),
Recognizing the definition of the derivative,
Sum Rule:
Proof: Using the first principles definition,
Splitting the fraction,
Taking the limit separately,
Example
Now we can differentiate a function like \( 3e^x + 4\ln x - \cos x \). Using the sum and constant multiple rules,
Applying the differentiation rule separately to each term,
Using the constant multiple rule,
Substituting the known derivatives,
Simplifying,
Product Rule
The product rule states that if \( f(x) \) and \( g(x) \) are both differentiable functions, then the derivative of their product is given by
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
Adding and subtracting \( f(x) g(x + \Delta x) \),
Rearranging terms,
Taking the limit,
Recognizing these as \( f'(x) \) and \( g'(x) \),
Thus, the product rule is proven:
Example
Now we can differentiate a function like \( 2x e^x \). Using the constant multiple rule, we take \( 2 \) out first:
Applying the product rule to \( x e^x \), where \( f(x) = x \) and \( g(x) = e^x \),
Computing the derivatives,
Thus,
Simplifying,
Example
Differentiate \( f(x) = x \ln x - x^3 + 2x + 4 \).
Solution:
Applying the product rule to \( x \ln x \),
Computing other derivatives,
Thus,
Final Answer:
Example
Differentiate \( f(x) = e^x (x + \ln x) \).
Solution:
Applying the product rule,
Now differentiating each term,
Substituting back,
Final Answer:
Quotient Rule
The quotient rule states that if \( f(x) \) and \( g(x) \) are differentiable functions, then the derivative of their quotient is given by
This rule is essential for differentiating functions where one function is divided by another.
Proof Using First Principles
By definition, the derivative is
Rewriting the numerator as a single fraction,
Thus,
Rewriting the numerator,
Factoring each term,
Substituting back,
Taking the limit,
Thus, the quotient rule is proven:
Example
Differentiate \( f(x) = \frac{\ln x}{x} \)
Solution:
Let \( f(x) = \frac{\ln x}{x} \), where
\( f(x) = \ln x \) and \( g(x) = x \).
Applying the quotient rule,
Differentiating each term,
Substituting these,
Simplifying,
Final Answer:
Example
Differentiate \( f(x) = \frac{\sin x}{x^2 + 1} \)
Solution:
Let
\( f(x) = \sin x \),
\( g(x) = x^2 + 1 \).
Applying the quotient rule,
Computing the derivatives,
Substituting these,
Final Answer:
Corollary: Reciprocal Rule
The reciprocal rule states that if \( f(x) \) is a differentiable function and \( f(x) \neq 0 \), then the derivative of its reciprocal is given by
This follows directly from the quotient rule by setting \( g(x) = 1 \), so that
Since \( \frac{d}{dx} (1) = 0 \), this simplifies to
Thus, the reciprocal rule provides a quick way to differentiate functions of the form \( 1/f(x) \) without applying the full quotient rule explicitly.
Example
Differentiate \( f(x) = \frac{1}{x^2 + x + 1} \) using the reciprocal rule.
Solution:
Using the reciprocal rule:
Let \( f(x) = x^2 + x + 1 \), then
Applying the reciprocal rule,
Final Answer:
Example
Differentiate \( f(x) = \frac{5}{\sin x + \cos x} \) using the reciprocal rule.
Solution:
Using the reciprocal rule,
Let \( g(x) = \sin x + \cos x \), then
Applying the reciprocal rule,
Final Answer:
Chain Rule (Composition Rule)
For a composition of two differentiable functions \( f(g(x)) \), the derivative is given by
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,
Multiplying and dividing by \( g(x + \Delta x) - g(x) \),
Taking limits separately,
For the first limit, let
so that \( \Delta u = g(x + \Delta x) - g(x) \). Then the first limit transforms into
By definition, this is \( f'(u) \), and since \( u = g(x) \), we obtain
For the second limit,
Thus, multiplying both limits together,
\(\blacksquare\)
From the proof, we can see something important: the composition \( y = f(g(x)) \) can be understood as a chain of transformations:
Here, \( x \) is first mapped to \( g(x) \), and then \( g(x) \) is mapped to \( f(g(x)) \). The function \( g(x) \) acts as an intermediate output in this process.
If we introduce a new variable \( u \) such that
then differentiating both sides gives
Since \( y = f(u) = f(g(x)) \), differentiating with respect to \( x \),
Using the intermediate variable \( u \), this can be rewritten as
Recognizing that \( f'(u) = \frac{dy}{du} \) and \( g'(x) = \frac{du}{dx} \), we obtain
Thus, the derivative of a composite function can be written in the chain rule form:
This formulation highlights that the total rate of change of \( y \) with respect to \( x \) can be computed by first differentiating \( y \) with respect to the intermediate variable \( u \) and then multiplying by the derivative of \( u \) with respect to \( x \).
Example
Differentiate \( y = \sin(\sin x) \).
Solution:
Let
Defining \( u = \sin x \), we rewrite \( y \) as
Differentiating both sides using the chain rule,
Since \( \frac{dy}{du} = \cos u \) and \( \frac{du}{dx} = \cos x \), we substitute,
Substituting \( u = \sin x \),
To do this quickly, first differentiate the outermost function in the composition with respect to what is inside, treating it mentally as a single object, say \( u \). Then multiply by the derivative of \( u \) with respect to \( x \).
Final Answer:
Example
Differentiate \( f(x) = \ln (\sin x) \).
Solution:
To compute this derivative efficiently, first differentiate the outermost function, \( \ln (\cdot) \), with respect to what is inside, treating \( \sin x \) as a single object. The derivative of \( \ln (\cdot) \) is \( \frac{1}{\text{(inside function)}} \), so
Now, differentiate \( \sin x \),
Thus,
Final Answer:
Chain Rule of Differentiation for Multiple Compositions
For a function involving multiple compositions, such as \( f(g(h(k(x)))) \), the differentiation process extends by repeatedly applying the chain rule:
To compute this efficiently, first differentiate the outermost function \( f(\cdot) \) with respect to its argument, treating everything inside as a single object. This gives \( f'(g(h(k(x)))) \). Then, multiply by the derivative of the next inner function, \( g(h(k(x))) \), again treating \( h(k(x)) \) as a single object. Continue this process until reaching the innermost function \( 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.
The expression
suggests a formal property of derivatives that resembles cancellation of the intermediate variable \( u \). However, such cancellation is not literal but rather a consequence of the chain rule, which states that if a function \( y \) depends on \( u \), and \( u \) depends on \( x \), then \( y \) can be expressed as a function of \( x \), and its derivative satisfies
The notation
suggests a fraction-like behavior, but these expressions do not represent actual fractions; rather, they are limit-based definitions of derivatives. Specifically, writing
and formally substituting into their product gives
Since \( \Delta u \) appears in both fractions, one can rewrite
and taking the limit as \( \Delta x \to 0 \) recovers
This justifies the chain rule rigorously. Although the cancellation of \( du \) is only symbolic, the notation is useful as a mnemonic device for applying the chain rule efficiently.
Example
Differentiate \( f(x) = \sin(\cos(\ln x)) \).
Solution:
Differentiate the outermost function \( \sin(\cos(\ln x)) \) first:
Differentiate \( \cos(\ln x) \):
Since \( \frac{d}{dx} \ln x = \frac{1}{x} \),
Substituting this into the previous expression:
Thus,
Example
Differentiate \( f(x) = \sin(\cos(\ln x)) \).
Solution:
Differentiating the outermost function first, treating everything inside as a single entity,
The derivative of \( \sin u \) is \( \cos u \), and the argument remains unchanged, multiplying by the derivative of the inside function \( \cos(\ln x) \). Now, differentiating \( \cos(\ln x) \),
The derivative of \( \cos v \) is \( -\sin v \), keeping \( \ln x \) unchanged, and multiplying by the derivative of \( \ln x \). Since
substituting this,
This simplifies to
Thus,
Each differentiation step follows the chain rule, treating the inner function as a single entity and differentiating from the outside in. This ensures that the composition is handled systematically without introducing unnecessary intermediate variables.
Example
Differentiate \( f(x) = \sqrt{1 + x^2} \).
Solution:
Differentiating the outermost function first, treating \( 1 + x^2 \) as a single entity,
The derivative of \( u^{\frac{1}{2}} \) is \( \frac{1}{2} u^{-\frac{1}{2}} \), keeping \( 1 + x^2 \) unchanged, and multiplying by the derivative of \( 1 + x^2 \). Now, differentiating \( 1 + x^2 \),
Since the derivative of \( x^2 \) is \( 2x \) and the derivative of the constant \( 1 \) is zero, we substitute this result. Simplifying the expression,
Canceling the factor of 2,
Thus,
Each differentiation step applies the chain rule systematically, ensuring that the composition is handled efficiently while maintaining clarity.
Example
I. Differentiate \( f(x) = x - \sqrt{x^2 - 1} \).
Solution:
Differentiating term by term,
Since \( \frac{d}{dx} x = 1 \),
Differentiating the outermost function first, treating \( x^2 - 1 \) as a single entity,
The derivative of \( x^2 - 1 \) is \( 2x \), so,
Canceling the factor of 2,
Thus,
Each differentiation step follows the chain rule systematically, treating the inner function as a single entity before differentiating it explicitly. \(\blacksquare\)
II. Differentiate \( f(x) = \ln \left( x - \sqrt{x^2 - 1} \right) \).
Solution:
Using the derivative of \( \ln u \),
Differentiating \( x - \sqrt{x^2 - 1} \),
Differentiating \( \sqrt{x^2 - 1} \), treating \( x^2 - 1 \) as a single entity,
Since \( \frac{d}{dx} (x^2 - 1) = 2x \),
Canceling the factor of 2,
Rewriting the fraction,
Multiplying numerator and denominator by \( \sqrt{x^2 - 1} \) to simplify,
Since \( \sqrt{x^2 - 1} - x = -(x - \sqrt{x^2 - 1}) \),
Canceling \( (x - \sqrt{x^2 - 1}) \) from numerator and denominator,
Thus,