The Wayback Machine - https://web.archive.org/web/20240717024522/https://www.geeksforgeeks.org/chain-rule-formula/
Open In App

Chain Rule: Theorem, Formula and Solved Examples

Last Updated : 07 Jun, 2024
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

Chain Rule is a way to find the derivative of composite functions. It is one of the basic rules used in mathematics for solving differential problems. It helps us to find the derivative of composite functions such as (3x2 + 1)4, (sin 4x), e3x, (ln x)2, and others. Only the derivatives of composite functions are found using the chain rule. The famous German scientist, Gottfried Leibniz gave the chain rule in the early 17th century.

file

Let’s learn about Chain Rule formula, derivation and examples in detail below.

What is Chain Rule?

Chain rule is a method to find derivative of Composite Function. It states that the derivative of composite function f(g(x)) is f'(g(x))⋅ g'(x). In other words, Cos(4x), is a composite function and it can be written as f(g(x)) where f(x) = Cos(x) and g(x) = 4x.

We can then compute the derivative of Cos(4x) using the chain rule and the derivatives of Cos(x) and 4x.

Chain Rule Theorem

We are going to discuss Chain Rule Theorem in this section.

For any real-valued function f which is a composite of the other two real functions p(x) and q(x) such that f = p o q

Then the rate of change of f with respect to t is expressed as,

Rate of change of f with respect to t = Rate of change of p with respect to u × Rate of change of u with respect to t i.e.

 df/dt = dp/du . du/dt

Chain Rule Steps to find the Derivative

We have explained the steps to find the derivative of Chain Rule. Below is the steps to find the derivative of function Sin(xÂē).

Step 1: Check to see if the function is a composite function, meaning it comprises a function within a function. The function Sin(x2) is a composite function.

Step 2: Determine the outer f(x) and inner functions g(x). f(x) = Sin(x) and g(x) = xÂē in this case.

Step 3: Now only look for the differentiation of the outer function. In this case, f'(x) = Cos (x).

Step 4: Now only look for the differentiation of the inner function. In this case, g'(x) = 2x.

Step 5: Find the product of f'(x) and g'(x) here, which is (2x)Cos(x).

We found the derivative of Sin(x2), which is (2x)Cos using the Chain rule (x).

Chain Rule Formula

There are two forms of chain rule of differentiation formula as shown below:

Chain Rule Formula

Chain Rule Formula 1: d/dx ( f(g(x) ) = f’ (g(x)) · g’ (x)

Let’s understand the first Chain Rule Formula with the help of an example:

Example: Find the derivative of d/dx (cos 2x)

Solution:

Let cos 2x = f(g(x)), then f(x) = cos x and g(x) = 2x.

Then by the chain rule formula,

d/dx (cos 2x) = -sin 2x · 2 

                    = -2 sin 2x

Chain Rule Formula 2: dy/dx = dy/du · du/dx

Let’s understand the second Chain Rule Formula with the help of an example:

Example: Find d/dx (cos 2x)

Solution:

Let y = cos 2x and 2x = u. Then y = cos u

By the chain rule formula,

d/dx (cos 2x) = d/du (cos u) · d/dx(2x) 

                     = -sin u · 2 = -2 sin u 

                     = -2 sin 2x

Chain Rule Formula Proof

Now we are going to discuss the proof of Chain Rule Formula.

As per Leibniz’s differential notation, we can treat derivatives as fractions i.e. for y = f(x), f'(x) can be treated as dy/dx.

Therefore, 

For a composite function, dy/dx = (dy/du) × (du/dx)

To justify this with a better notation, let us arrive at the result, starting with the definition of the derivative.

Given: y = f(u(x)).

From earlier, we know that, dy/dx = (dy/du) × (du/dx).

Then,

[Tex]\frac{dy}{dx}=\lim_{\delta{x} \to \infty}\frac{\delta{y}}{\delta{x}} [/Tex]

[Tex]=\lim_{\delta{x} \to \infty}\frac{\delta{y}}{\delta{u}}\times\frac{\delta{u}}{\delta{x}} [/Tex]

[Tex]=\lim_{\delta{x} \to \infty}\frac{\delta{y}}{\delta{u}}\times\lim_{\delta{x} \to \infty}\frac{\delta{u}}{\delta{x}} [/Tex]

Now, we know that a function which is differentiable at a point c is also continuous at the point c i.e.

∆ u â‡Ē 0 as  ∆ x â‡Ē 0 

Then, 

[Tex]\frac{dy}{dx}=\lim_{\delta{x} \to \infty}\frac{\delta{y}}{\delta{u}}\times\lim_{\delta{x} \to \infty}\frac{\delta{u}}{\delta{x}} [/Tex]

[Tex]\frac{dy}{du}\times\frac{du}{dx} [/Tex]

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

This is the Chain Rule. Hence, the Chain Rule has been proved.

Double Chain Rule of Differentiation

We are going to learn Double Chain Rule of Differentiation.

For a function where it is dependent on more than one variable. i.e. the nesting of function occurs, chain rule of differentiation fails in such a situation double chain rule is applied.

Now for any three functions p, q, and r and a composite function f where f is a composite of p, q, and r such that, f = (p o q) o r, i.e. f(x) = p[q{r(x)}], then its derivative is given as,

df/dx = df/dp. dp/dq. dq/dr. dr/dx

Let’s understand the Double Chain Rule with the help of an example :

Example: Differentiate, y = (sin 2x)2

Solution:

y = (sin 2x)2

y’ = 2( sin 2x) . (cos 2x). (2)

    = 4 sin2x . cos 2x

Chain Rule for Partial Derivatives

The concept of chain rule also works for partial derivatives. Partial derivatives are found when in the differentiation of any function one or more variable is kept constant with respect to the differentiating variable. The chain Rule for Partial Derivatives uses the concept of the Jacobian matrix.

Thus, the chain rule for the partial derivatives of the function y = f(u) = (f1(u), â€Ķ, fk(u)) and u = g(x) = (g1(x), â€Ķ, gm(x)) can be written as,

∂(y1,……,yk) / ∂xi = ∂(y1,……,yk) / ∂(u1,……,um) × ∂(u1,……,um) /  ∂xi

Application of Chain Rule

This chain rule is widely used in mathematics to find the differentiation of complex functions. Some of its uses are discussed below,

  • For finding the rate of change of the pressure with respect to time.
  • For finding the rate of change of the average molecular speed.
  • To determine if the given function is increasing or decreasing.
  • For finding the rate of change of distance between two moving objects,

Must Read

Chain Rule Derivative Solved Examples

Listed below are a few solved examples on Chain Rule to enhance your understanding of the concept:

Chain Rule Example 1: Solve, y(x) = (2x2+ 8)2

Solution:

Here, as you can see that y(x) is a composite function. 

So it can be written as f(g(x)). The outer function f(g(x)) is g(x)Âē and the inner function g(x) is 2x2 + 8.

So, f'(g(x)) = 2g(x), here g(x) = 2xÂē+ 8. 

Therefore, 

f'(g(x)) = 2(2x2 + 8) and g'(x) = 4x.

Now 

y'(x) = f'(g(x)).g'(x) 

       = 2(2x2 + 8)(4x) 

       = 16x(x2 + 4).

Chain Rule Example 2: Solve, y(x) = Cos(4x).

Solution:

Here, as we know from earlier, y(x) is a composite function. 

So it can be written as f(g(x)). The outer function f(g(x)) is Cos(g(x)) and the inner function g(x) is 4x.

So, f'(g(x)) = -Sin(g(x)), here g(x) = 4x. 

Therefore, 

f'(g(x)) = -Sin(4x) and g'(x) = 4.

Now 

y'(x) = f'(g(x)).g'(x) 

       = -(Sin(4x))(4) 

       = -4Sin(4x).

Chain Rule Example 3: Solve, y(x) = ln(x2 – 1).

Solution:

Here, as we know from earlier, y(x) is a composite function. 

So it can be written as f(g(x)). The outer function f(g(x)) is ln(g(x)) and the inner function g(x) is x2 – 1.

So, f'(g(x)) = 1/(g(x)), here g(x) = x2 – 1. 

Therefore, 

f'(g(x)) = 1/(x2 – 1) and g'(x) = 2x.

Now 

y'(x) = f'(g(x)).g'(x) 

        = (1/(x2 – 1))(2x) 

        = 2x/(x2 – 1).

Chain Rule Example 4: Solve, y(x) = (ln x)2.

Solution:

Here, as we know from earlier, y(x) is a composite function. 

So it can be written as f(g(x)). The outer function f(g(x)) is (g(x))Âē and the inner function g(x) is ln x.

So, f'(g(x)) = 2g(x) , here g(x) = ln x. 

Therefore, 

f'(g(x)) = 2(ln x) and g'(x) = 1/x.

Now 

y'(x) = f'(g(x)).g'(x) 

       = (2(ln x))(1/x) 

       = 2(ln x)/(x).

Chain Rule Example 5: Solve, y(x) = √(x3 + 56).

Solution:

Here, as we know from earlier, y(x) is a composite function. So it can be written as f(g(x)). The outer function f(g(x)) is √(g(x)) and the inner function g(x) is x3 + 56.

So, f'(g(x)) = (1/2)(x3 + 56)-1/2, here g(x) = x3 + 56. 

Therefore, 

f'(g(x)) = (1/2)(x3 + 56)-1/2 and g'(x) = 3x2

Now 

y'(x) = f'(g(x)).g'(x) 

        = ( (1/2)(x3 + 56)-1/2) × ( 3x2) 

        = [(3/2) x2] / (x3 + 56)1/2.

Chain Rule Example 6: Solve, y(x) = ln √x.

Solution:

Here, as we know from earlier, y(x) is a composite function. 

So it can be written as f(g(x)). The outer function f(g(x)) is ln(g(x)) and the inner function g(x) is √x.

So, f'(g(x)) = 1/g(x), here g(x) = √x. 

Therefore, 

f'(g(x)) = 1/(√x) and g'(x) = (1/(2√x)).

Now 

y'(x) = f'(g(x)).g'(x) 

        = (1/(√x))(1/(2√x)) 

        = 1/2x

Chain Rule Derivative Practice Problems

Here are some practice problems on Chain Rule fo you to solve:

1. Find the derivative of f(x) = sin(3x).

2. Calculate the derivative of f(x) = ln(2x2 + 1).

3. Determine the derivative of f(x) = e(2×3).

4. Find the derivative of f(x) = (4x2 + 1)5

5. Calculate the derivative of f(x) = √(3x – 1).

6. Determine the derivative of f(x) = cos(2x2 – 1).

Chain Rule Differential – FAQs

What is Chain Rule?

Chain rule helps us to find the derivative of composite functions. For any given composite function y = f(g(x)) its derivative is calculated as,

y’ = f'(g(x)). g'(x)

What is Chain Rule Formula?

The chain rule has two formulas which are used to solve composite functions which include,

  • d/dx ( f(g(x) ) = f’ (g(x)) · g’ (x)
  • dy/dx = dy/du · du/dx

When to use Chain Rule Formula?

The chain rule is used when we have to find the differentiation of composite functions such as, chain rule gives differentiation of function such as (ln x)2, etc.

What is the difference between the Chain Rule Formula and the Product Rule?

The chain rule formula is used to differentiate a composite function such as (ln x)2, (x2 + 1)3 and others, whereas the product rule is used to find the derivative of the product of two functions, such as sin x · ln x, x2.ln x, and others.



Previous Article
Next Article

Similar Reads

Rydberg Formula: Formula, Proof and Solved Examples
The Rydberg formula predicts the wavelength of light produced by an electron moving between atomic energy levels. Each element has a unique spectral fingerprint. When an element's gaseous state is heated, light is produced. When this light passes through a prism or a diffraction grating, bright lines of various hues can be discerned. In some manner
6 min read
Molecular Weight Formula - Definition, Formula, Solved Examples
An atom is the basic building block of matter i.e. everything around us is made of matter. This is the smallest unit into which matter can be divided without the release of any electrically charged particles. This is the smallest unit of matter which has the characteristic properties of a chemical element. The mass of an atom depends on the electro
5 min read
Reverse Chain Rule
Integrals are an important part of the theory of calculus. They are very useful in calculating the areas and volumes for arbitrarily complex functions, which otherwise are very hard to compute and are often bad approximations of the area or the volume enclosed by the function. Integrals are the reverse of the differentiation and that's why they are
6 min read
Normality - Definition, Formula, Equations and Solved Examples
The normality formula is used to measure the concentration of a solution like molarity and molality. Normality is a measure of the number of grams equivalent to solute present given volume of the solution. Redox reactions, precipitation reactions, and acid-base chemical reactions all often make use of normality. It depends on the temperature and th
7 min read
Molarity - Definition, Formula and Solved Examples
Molarity is defined as total number of moles of solute per litre of solution. It is represented by M. In chemistry, the molarity is one of the concentration units. The concentration of solutions can be expressed more effectively using measurements based on moles. The SI unit of Molarity is Mole. A mole is an SI unit that measures the amount of a su
7 min read
Unit Circle: Definition, Formula, Diagram and Solved Examples
Unit Circle is a Circle whose radius is 1. The center of unit circle is at origin(0,0) on the axis. The circumference of Unit Circle is 2π units, whereas area of Unit Circle is π units2. It carries all the properties of Circle. Unit Circle has the equation x2 + y2 = 1. This Unit Circle helps in defining various Trigonometric concepts. The Unit Circ
7 min read
Trigonometric Substitution: Method, Formula and Solved Examples
Trigonometric Substitution is one of the substitution methods of integration where a function or expression in the given integral is substituted with trigonometric functions such as sin, cos, tan, etc. Integration by substitution is an easiest substitution method. It is used when we make a substitution of a function, whose derivative is already inc
7 min read
Height of a Parallelogram - Formula and Solved Examples
Height of a Parallelogram formula is to calculate the height of a Parallelogram. The height of a Parallelogram is the perpendicular distance between the base side and the parallel side opposite to it. A Parallelogram can be defined as a quadrilateral in which opposite sides are parallel and the length of these opposite sides is also equal. The oppo
4 min read
Surface Area of Sphere | Formula, Derivation and Solved Examples
A sphere is a three-dimensional object with all points on its surface equidistant from its center, giving it a perfectly round shape. The surface area of a sphere is the total area that covers its outer surface. To calculate the surface area of a sphere with radius r, we use the formula: Surface Area of Sphere = 4πr2 This formula shows that the sur
8 min read
Difference between Simpson 's 1/3 rule and 3/8 rule
In Simpson's 1/3 rule, we approximate the polynomial based on quadratic approximation. In this, each approximation actually covers two of the subintervals. This is why we require the number of subintervals to be even. Some of the approximations look more like a line than a quadratic, but they really are quadratics. Formula of Simpson'sÂđ/₃ ruleₐâˆŦáĩ‡ f
3 min read