Admin 11 Jun 2026 20:50

 

The Chain Rule: Differentiating Functions of Functions

Introduction

Calculus, the mathematical study of continuous change, provides us with powerful tools to analyze and understand how quantities relate to each other. Among these tools, differentiation stands out as a fundamental operation that allows us to calculate rates of change. When we encounter composite functions functions nested within other functions a specific technique called the Chain Rule becomes indispensable.

The Chain Rule is used to differentiate functions of functions, also known as composite functions. These are functions where the input of one function is itself the output of another function. Without the Chain Rule, differentiating such complex functions would be significantly more challenging, if not impossible in many cases.

In this comprehensive guide, we'll explore the Chain Rule in detail, understanding its concept, formula, application, and why it's considered one of the cornerstones of differential calculus.

Understanding the Concept

Before diving into formulas and calculations, it's essential to grasp the conceptual foundation of the Chain Rule. Imagine you have two processes affecting a quantity: one inner process and one outer process. The Chain Rule provides a way to understand how these processes interact and affect the overall rate of change.

Consider a function $h(x) = f(g(x))$. Here, we have an outer function $f$ and an inner function $g$. To find how $h$ changes with respect to $x$, we need to account for how $g$ changes with respect to $x$ and how $f$ changes with respect to its input (which happens to be $g(x)$).

An intuitive way to understand the Chain Rule is through an analogy. Imagine you're driving a car, and the distance you cover depends on your speed, which in turn depends on how much you press the accelerator. To understand how the distance changes with respect to the accelerator position, you'd need to consider how the accelerator affects your speed, and how your speed affects your distance.

This cascading effect of changes is exactly what the Chain Rule captures mathematically. It allows us to "chain together" the derivatives of the nested functions to find the derivative of the composite function.

The Chain Rule Formula

Now that we understand the concept, let's formalize it mathematically. The Chain Rule states that if $h(x) = f(g(x))$, then the derivative of $h$ with respect to $x$ is given by:

$$h'(x) = f'(g(x)) \cdot g'(x)$$

In words, to find the derivative of $h(x) = f(g(x))$, we first differentiate the outer function $f$ with respect to its input (which is $g(x)$), then multiply by the derivative of the inner function $g(x)$ with respect to $x$.

Alternative notations you might encounter include:

$$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$$ $ \text{where } y = f(u) \text{ and } u = g(x) $

This Leibniz notation emphasizes the "canceling" property of the differentials, providing a mnemonic aid for remembering the Chain Rule structure.

Note on Notation:

The notation $f'(g(x))$ means "the derivative of $f$ evaluated at $g(x)$". It's crucial to understand that we first find $f'(x)$ (the derivative of the outer function), and then we substitute $g(x)$ into that derivative.

Examples and Step-by-Step Solutions

Let's apply the Chain Rule through a variety of examples, each illustrating different aspects of this powerful technique.

Example 1: A Basic Polynomial Composition

Find the derivative of $h(x) = (3x^2 + 2)^5$.

Solution:

Step 1: Identify the outer and inner functions.

  • Outer function: $f(u) = u^5$
  • Inner function: $g(x) = 3x^2 + 2$

Step 2: Find the derivatives of the outer and inner functions.

  • Derivative of outer function: $f'(u) = 5u^4$
  • Derivative of inner function: $g'(x) = 6x$

Step 3: Apply the Chain Rule.

  • Replace $u$ with $g(x)$ in $f'(u)$: $f'(g(x)) = 5(3x^2 + 2)^4$
  • Multiply by $g'(x)$: $h'(x) = 5(3x^2 + 2)^4 \cdot 6x$

Step 4: Simplify.

$$h'(x) = 30x(3x^2 + 2)^4$$

Example 2: Trigonometric Composition

Find the derivative of $h(x) = \sin(2x^2 + 3x)$.

Solution:

Step 1: Identify the outer and inner functions.

  • Outer function: $f(u) = \sin(u)$
  • Inner function: $g(x) = 2x^2 + 3x$

Step 2: Find the derivatives of the outer and inner functions.

  • Derivative of outer function: $f'(u) = \cos(u)$
  • Derivative of inner function: $g'(x) = 4x + 3$

Step 3: Apply the Chain Rule.

$$h'(x) = \cos(2x^2 + 3x) \cdot (4x + 3)$$

Example 3: Multiple Chain Rules (Nested Composition)

Find the derivative of $h(x) = \sin(\cos(x^2))$.

Solution:

This example involves applying the Chain Rule twice due to the nested composition.

Step 1: Identify all the functions.

  • Outermost function: $f(u) = \sin(u)$
  • Middle function: $g(v) = \cos(v)$
  • Innermost function: $h(x) = x^2$

Step 2: Find all the derivatives.

  • Derivative of outermost function: $f'(u) = \cos(u)$
  • Derivative of middle function: $g'(v) = -\sin(v)$
  • Derivative of innermost function: $h'(x) = 2x$

Step 3: Apply the Chain Rule multiple times.

First, differentiate the outermost function:

$\frac{d}{dx} \sin(\cos(x^2)) = \cos(\cos(x^2)) \cdot \frac{d}{dx}[\cos(x^2)]$

Next, differentiate the middle function:

$\frac{d}{dx}[\cos(x^2)] = -\sin(x^2) \cdot 2x$

Combining these results:

$$h'(x) = \cos(\cos(x^2)) \cdot (-\sin(x^2) \cdot 2x) = -2x\cos(\cos(x^2))\sin(x^2)$$

Applications of the Chain Rule

The Chain Rule is not just a theoretical construct but has numerous practical applications across various fields. Here are some notable examples:

Physics and Engineering

The Chain Rule is fundamental in analyzing physical systems where multiple variables affect each other. For instance, when studying motion, the position might depend on time, but also on other parameters that themselves vary with time.

Example: In mechanics, the kinetic energy $K$ of an object is given by $K = \frac{1}{2}mv^2$, where $m$ is mass and $v$ is velocity. If we want to find how kinetic energy changes with respect to time, and velocity itself changes with position, which changes with time, we would need to apply the Chain Rule multiple times to capture these relationships.

Economics

In economics, the Chain Rule helps analyze how economic variables interact. For example, profit might depend on the quantity sold, which depends on price, which in turn depends on market conditions.

Example: If a company's profit function is $P(q) = q^3 - 10q^2 + 50q$, where $q$ is quantity sold, and the demand function that gives quantity in terms of price $p$ is $q(p) = 100 - 2p$, then to find how profit changes with price, we need to apply the Chain Rule: $\frac{dP}{dp} = \frac{dP}{dq} \cdot \frac{dq}{dp}$.

Machine Learning

In neural network training, the backpropagation algorithm heavily relies on the Chain Rule to calculate gradients efficiently. This process is essential for adjusting the weights of a neural network during training.

Common Mistakes and How to Avoid Them

When applying the Chain Rule, even experienced mathematicians can sometimes stumble. Let's examine common pitfalls and how to avoid them:

Mistake 1: Forgetting to Multiply by the Inner Function's Derivative

A classic error is remembering to differentiate the outer function but neglecting to multiply by the derivative of the inner function.

$$\text{Incorrect: } \frac{d}{dx}[(3x+1)^4] = 4(3x+1)^3$$ $$\text{Correct: } \frac{d}{dx}[(3x+1)^4] = 4(3x+1)^3 \cdot 3 = 12(3x+1)^3$$

Mistake 2: Incorrectly Identifying Nested Functions

Complex functions may involve multiple layers of composition. Failing to recognize the proper structure can lead to incorrect applications of the rule.

$$\text{For } h(x) = \sin(e^{2x})$$ $$\text{Incorrect: } h'(x) = \cos(e^{2x}) \cdot 2$$ $$\text{Correct: } h'(x) = \cos(e^{2x}) \cdot e^{2x} \cdot 2 = 2e^{2x}\cos(e^{2x})$$

Mistake 3: Differentiating the Inside of the Outer Function Instead of the Outer Function

This mistake involves differentiating the inner function while keeping the outer function unchanged.

$$\text{Incorrect: } \frac{d}{dx}[\sin(x^2)] = \sin(2x)$$ $$\text{Correct: } \frac{d}{dx}[\sin(x^2)] = \cos(x^2) \cdot 2x = 2x\cos(x^2)$$

To avoid these mistakes, it's crucial to:

  • Clearly identify all the nested functions and their relationships
  • Fully work through each step of the differentiation process
  • Check your work by verifying the final derivative makes sense
  • Practice with a variety of functions to build intuition and experience

Practice Problems

Now that we've covered the Chain Rule conceptually and practiced with examples, let's test your understanding with some practice problems.

Problem 1

Find $\frac{dy}{dx}$ for $y = (5x^2 + 3x - 1)^7$.

Solution:

Using the Chain Rule:

$$\frac{dy}{dx} = 7(5x^2 + 3x - 1)^6 \cdot (10x + 3)$$

Problem 2

Find $\frac{dy}{dx}$ for $y = \cos(e^{3x})$.

Solution:

This requires applying the Chain Rule twice:

$$\frac{dy}{dx} = -\sin(e^{3x}) \cdot e^{3x} \cdot 3 = -3e^{3x}\sin(e^{3x})$$

Problem 3

Find $\frac{dy}{dx}$ for $y = \ln(x^2 + 1)$.

Solution:

Applying the Chain Rule:

$$\frac{dy}{dx} = \frac{1}{x^2 + 1} \cdot 2x = \frac{2x}{x^2 + 1}$$

Problem 4

Find $\frac{dy}{dx}$ for $y = \sin^3(2x)$.

Solution:

Rewriting $y = (\sin(2x))^3$ and applying the Chain Rule twice:

$$\frac{dy}{dx} = 3(\sin(2x))^2 \cdot \cos(2x) \cdot 2 = 6\sin^2(2x)\cos(2x)$$

Problem 5

Find $\frac{dy}{dx}$ for $y = e^{-x^2}$.

Solution:

Applying the Chain Rule:

$$\frac{dy}{dx} = e^{-x^2} \cdot (-2x) = -2xe^{-x^2}$$

Reference Files For Differentiating A Function Of A Function
Screenshoot
File Name
mc_ty_chain_2009_1.pdf

File Size
0.18 MB

File Type
PDF

File Site
Description
This file is just a reference file for Differentiating A Function Of A Function. Does not guarantee that the specific things you want are included in it.
Direct download (wait 10 seconds)

Differentiating A Function Of A Function and Reference File Download Link


admin
Admin
2026-06-11 20:50:22

Differentiating Under The Integral Sign and Reference File Download Link


admin
Admin
2026-06-08 05:28:16

Quality Function Deployment (QFD) dan Link Download File Referensi


admin
Admin
2026-05-29 12:35:06

Thyroid Function Tests dan Link Download File Referensi


admin
Admin
2026-05-30 05:55:07

Serum Glutamic Oxaloacetic Transaminase (SGOT) And Serum Glutamic Pyruvic Transaminase (SG...


admin
Admin
2026-05-31 05:32:04