The Wayback Machine - https://web.archive.org/web/20240823094408/https://www.geeksforgeeks.org/derivatives-of-composite-functions/
Open In App

Derivatives of Composite Functions

Last Updated : 26 Feb, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Derivatives are an essential part of calculus. They help us in calculating the rate of change, maxima, and minima for the functions. Derivatives by definition are given by using limits, which is called the first form of the derivative. We already know how to calculate the derivatives for standard functions, but sometimes we need to deal with complex mathematical functions that are composed of more than two functions. It becomes hard to calculate the derivative for such functions in the normal way. It becomes essential to learn about the rules and methods which make our calculation easier. The chain rule is one of them, which allows us to calculate the derivatives of complex functions.

In this article, we will learn about derivatives of Composite Functions, Examples, and others in detail.

What is Derivative of Composite Functions?

Derivative of Composite Function is the derivative of the function that is composite. A composite function is a function in which the variable is itself a function of the variable. The derivative of these functions is easily found using the derivative of the composite function formula that is explained below in the article.

Learn more about, Composition of Function

Derivatives of Composite Functions Formula

Suppose we have a composite function h(x) that is represented as, h(x) = f{g(x)}, then first we find the derivative of f(x) and multiply the same with the derivative of g(x) to get the required derivative of the composite function.

This derivative of the composite function formula is,

d/dx.f{g(x)} = f'(g(x)).g'(x)

Composite Functions and Chain Rule 

Let’s say we have a function f(x) = (x + 1)2, for which we want to calculate the derivative. These kinds of functions are called composite functions, which means they are made up of more than one function. Usually, they are of the form g(x) = h(f(x)) or it can also be written as g = hof(x). In our case, the given function f(x) = (x + 1)2 is composed of two functions,

f(x) = g(h(x))

where,

  • g(x) = x2
  • h(x) = x + 1

For example, 

f(x) = (x + 1)2

f(x) = x2 + 1 + 2x

Differentiating the function with respect to x, 

f'(x) = 2x + 1

Chain Rule

Let f be a real-valued function which is a composite of two functions, “u” and “v”, that is f = v o u. Let’s say t = u(x) and if both dv/dt and dt/dx exist for both of the functions “u” and “v”. 

dv/dx = (dv/dt).(dt/dx)

The chain rule can be extended to any number of composite functions. For example, 

f = (w o u) o v

If t = v(x) and s = u(t)

Then, 

[Tex]\frac{df}{dx} = \frac{d[w (u(v))]}{dt}\cdot \frac{dt}{dx} = \frac{dw}{ds}\cdot\frac{ds}{dt}\cdot\frac{dt}{dx} [/Tex]

Let’s say we have a function f(x) = sin(x2) 

This function is a composite function made up of two functions. If t = u(x) = x2 and v(t) = sin(t), then 

f(x) = (v o u)(x)

= v(u(x))

= v(x2)

= sin x2

Putting t = u(t) = x2

 [Tex]\frac{dv}{dt} = cos(t)  [/Tex] and [Tex]\frac{dt}{dx} = 2x [/Tex]

Hence, by chain rule, 

[Tex]\frac{df}{dx} = \frac{dv}{dt}\cdot\frac{dt}{dx} = cos(t).2x [/Tex]

[Tex]\frac{df}{dx} = cos(x^2).2x [/Tex]

Alternative Method to Chain Rule

The chain rule can also be applied with a shortcut method. This is explained with an example, let’s say we have a function f(x) = (sin(x))2

In general, we don’t really use the composition of the functions approach to differentiate the functions. We identify the “inside function” and the “outside function”. Then, differentiate the outside function leaving the inside function alone, and keep going in this manner.

For example, Differentiate sin2x

df/dx = d/dx{sin2x}

df/dx = 2sin x{d/dx(sin x)}

df/dx = 2.(sin x).(cos x)

Derivatives of Composite Functions In One Variable

Using the chain rule the derivative of composite function in one variable is easily find. This is explained as by the example, find the derivative of (x2 + 3)3

= d/dx(x2 + 3)3

Using Chain Rule

= 3(x2 + 3)2.d/dx(x2 + 3)

= 3(x2 + 3)2.(2x)

= 6x(x2 + 3)2

Read More,

Derivatives of Composite Functions Examples

Examples 1: Find the derivative for the function f(x) = (x + 1)2. 

Solution:

df/dx = d/dx(x + 1)2

df/dx = 2(x + 1)d/dx(x + 1)

df/dx = 2(x + 1).1

df/dx = 2x + 2

Examples 2: Find the derivative for the function f(x) = (x6 + x2 + 1)10

Solution: 

[Tex]\frac{df}{dx} = \frac{d}{dx}(x^6 + x^2 + 1)^{10} [/Tex]

⇒ [Tex]\frac{df}{dx} = 10(x^6 + x^2 + 1)^9\frac{d}{dx}(x^6 + x^2 + 1) [/Tex]

⇒ [Tex]\frac{df}{dx} = 10(x^6 + x^2 + 1)^9(\frac{d}{dx}x^6 + \frac{d}{dx}x^2) [/Tex]

⇒[Tex]\frac{df}{dx} = 10(x^6 + x^2 + 1)^9(6x^5 +2x) [/Tex]

Examples 3: Find the derivative for the function f(x) = (x2 + 1)5

Solution:

[Tex]\frac{df}{dx} = \frac{d}{dx}(x^2 + 1)^{5} [/Tex]

⇒ [Tex]\frac{df}{dx} = 5(x^2 + 1)^4\frac{d}{dx}( x^2 + 1) [/Tex]

⇒ [Tex]\frac{df}{dx} = 5(x^2 + 1)^4(\frac{d}{dx}( x^2)) [/Tex]

⇒[Tex]\frac{df}{dx} = 5(x^2 + 1)^4(2x) [/Tex]

⇒[Tex]\frac{df}{dx} = 10x(x^2 + 1)^4 [/Tex]

Examples 4: Find the derivative of the function f(x) = sin(tan x + 5). 

Solution:

 f(x) = sin(tan x + 5)

⇒[Tex]\frac{d}{dx}f(x) = \frac{d}{dx} sin(tan(x) + 5) [/Tex]

⇒[Tex]\frac{d}{dx}f(x) = cos(tan(x) + 5)\frac{d}{dx}(tan(x) + 5) [/Tex]

⇒[Tex]\frac{d}{dx}f(x) = cos(tan(x) + 5)\frac{d}{dx}(tan(x)) [/Tex]

⇒[Tex]\frac{d}{dx}f(x) = cos(tan(x) + 5)sec^2(x) [/Tex]

Examples 5: Find the derivative of the function, f(x) = e(2x + 5). 

Solution:

 f(x) = e(2x + 5)

[Tex]\frac{df}{dx} = \frac{d}{dx}(e^{(2x +5)}) [/Tex]

⇒[Tex]\frac{df}{dx} = \frac{d}{dx}(e^{(2x +5)}) [/Tex]

⇒[Tex]\frac{df}{dx} = e^{(2x +5)}\frac{d}{dx}(2x + 5) [/Tex]

⇒[Tex]\frac{df}{dx} = e^{(2x +5)}2 [/Tex]

⇒[Tex]\frac{df}{dx} = 2e^{(2x +5)} [/Tex]

Practice Questions on Derivative of Composite Functions

Q1: Differentiate sin(log x)

Q2: Find the derivative of e(sin x + cos x)

Q3: Differentiate cos(x2 + 2x)

Q4: Differentiate tan x2 + sec2x

FAQs on Derivatives of Composite Functions

1. What is Composite Function?

Composite Function is a function in which the variable of the function is itself a function. Composite function is represented as, h(x) = f(g(x))

2. What are Examples of Composite Functions?

Examples of Composite Functions are,

  • sin (x2 + 2x)
  • 2(cos x)2 + 3
  • esin x, etc

3. What is Derivative of Composite Function?

Derivative of Composite Function is the derivative of function that are composite. The derivative of composite function is found using the chain rule.

4. What is Derivative of Composite Function Formula?

Derivative of Composite Function Formula is added below,

d/dx{f(g(x))} = f'(g(x)).d/dx(g(x))



Previous Article
Next Article

Similar Reads

Derivatives | First and Second Order Derivatives, Formulas and Examples
Derivatives: In mathematics, a Derivative represents the rate at which a function changes as its input changes. It measures how a function's output value moves as its input value nudges a little bit. This concept is a fundamental piece of calculus. It is used extensively across science, engineering, economics, and more to analyze changes. Table of
15+ min read
Composite functions - Relations and functions
Let f : A->B and g : B->C be two functions. Then the composition of f and g, denoted by g o f, is defined as the function g o f : A->C given by g o f (x) = g{f(x)}, ∀ x ∈ A. Clearly, dom(g o f) = dom(f). Also, g o f is defined only when range(f) is a subset of dom(g). Evaluating composite functions We know composite function is written as
5 min read
Derivatives of Implicit Functions - Continuity and Differentiability | Class 12 Maths
Implicit functions are functions where a specific variable cannot be expressed as a function of the other variable. A function that depends on more than one variable. Implicit Differentiation helps us compute the derivative of y with respect to x without solving the given equation for y, this can be achieved by using the chain rule which helps us e
4 min read
Derivatives of Polynomial Functions
Derivatives are used in Calculus to measure the rate of change of a function with respect to a variable. The use of derivatives is very important in Mathematics. It is used to solve many problems in mathematics like to find out maxima or minima of a function, slope of a function, to tell whether a function is increasing or decreasing. If a function
3 min read
Derivatives of Inverse Trigonometric Functions
Derivatives of Inverse Trigonometric Functions: Every mathematical function, from the simplest to the most complex, has an inverse. In mathematics, the inverse usually means the opposite. In addition, the inverse is subtraction. For multiplication, it's division. In the same way for trigonometric functions, it's the inverse trigonometric functions.
14 min read
Derivatives of Inverse Functions
In mathematics, a function(e.g. f), is said to be an inverse of another(e.g. g), if given the output of g returns the input value given to f. Additionally, this must hold true for every element in the domain co-domain(range) of g. E.g. assuming x and y are constants if g(x) = y and f(y) = x then the function f is said to be an inverse of the functi
12 min read
Derivatives of Trigonometric Functions
Derivative of a function f(x), is the rate at which the value of the function changes when the input is changed. In this context, x is called the independent variable, and f(x) is called the dependent variable. Derivatives have applications in almost every aspect of our lives. From rocket launches to our water tank design, derivatives are used by p
8 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.1
Question 1. Find out which of the following sentences are statements and which are not. Justify your answer. (i) Listen to me, Ravi! (ii) Every set is a finite set. (iii) Two non-empty sets have always a non-empty intersection. (iv) The cat pussy is black. (v) Are all circles round? (vi) All triangles have three sides. (vii) Every rhombus is a squa
4 min read
Class 12 RD Sharma Solutions - Chapter 12 Higher Order Derivatives - Exercise 12.1 | Set 1
Find the second order derivative of following functionQuestion 1(i). x3 + tanx Solution: Let us considered f(x) = x3 + tanx On differentiating both sides w.r.t x, f'(x) = 3x2 + sec2x Again differentiating both sides w.r.t x, f''(x) = 6x + 2(secx)(secx.tanx) f''(x) = 6x + 2sec2x.tanx Question 1(ii). sin(logx) Solution: Let us considered y = sin(logx
13 min read
Approximations & Maxima and Minima - Application of Derivatives | Class 12 Maths
An approximation is similar but not exactly equal to something else. Approximation occurs when an exact numerical number is unknown or difficult to obtain. In Mathematics, we use differentiation to find the approximate values of certain quantities. Let f be a given function and let y = f(x). Let ∆x denote a small increment in x. Now the increment i
7 min read
Proofs for the derivatives of eˣ and ln(x) - Advanced differentiation
In this article, we are going to cover the proofs of the derivative of the functions ln(x) and ex. Before proceeding there are two things that we need to revise: The first principle of derivative Finding the derivative of a function by computing this limit is known as differentiation from first principles. Derivative by the first principle refers t
3 min read
Disguised Derivatives - Advanced differentiation | Class 12 Maths
The dictionary meaning of “disguise” is “unrecognizable”. Disguised derivative means “unrecognized derivative”. In this type of problems, the definition of derivative is hidden in the form of limit. At a glance, the problem seems to be solvable using limit properties but it is much easier to solve it using the first principle of derivative. So, thi
4 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.4
Question 1. Write the negation of each of the following statements:(i) For every x ∈ N, x + 3 > 10(ii) There exists x ∈ N, x + 3 = 10 Solution: (i) The negation of the statement is “There exist x ∈ N, such that x + 3 <= 10.” (ii) The negation of the statement is “There exist x ∈ N, such that x + 3 ≠ 10.” Question 2. Negate each of the followi
1 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.3
Question 1. Find the component statements of the following compound statements: (i) The sky is blue, and the grass is green. (ii) The earth is round, or the sun is cold. (iii) All rational numbers are real, and all real numbers are complex. (iv) 25 is a multiple of 5 and 8. Solution: Every compound statement has components . (i) The component's of
5 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.2
Question 1. Write the negation of the following statement: (i) Bangalore is the capital of Karnataka. (ii) It rained on July 4, 2005. (iii) Ravish is honest. (iv) The earth is round. (v) The sun is cold. Solution: (i) Bangalore is not the capital of Karnataka or It is false that “Bangalore is the capital of Karnataka.” (ii) It did not rain on July
3 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.5
Question 1. Write each of the following statements in the form “if p, then q.” (i) You can access the website only if you pay a subscription fee. (ii) There is traffic jam whenever it rains. (iii) It is necessary to have a passport to log on to the server. (iv) It is necessary to be rich in order to be happy. (v) The game is canceled only if it is
6 min read
Class 11 RD Sharma Solutions - Chapter 31 Derivatives - Exercise 31.6
Question 1. Check the validity of the following statements: (i) p: 100 is a multiple of 4 and 5. (ii) q: 125 is a multiple of 5 and 7. (iii) r: 60 is a multiple of 3 or 5. Solution: (i) 100 is completely divisible by 4 and 5 completely without leaving any remainder.Hence, the given statement is true. (ii) 125 is a multiple of 5 and not divisible pe
7 min read
Class 11 RD Sharma Solutions- Chapter 30 Derivatives - Exercise 30.1
Question 1. Find the derivative of f(x) = 3x at x = 2 Solution: Given: f(x)=3x By using the derivative formula, [Tex]f'(a)= \lim_{h \to 0} \frac {f(a+h)-f(a)} h [/Tex] {where h is a small positive number} Derivative of f(x)=3x at x=2 is given as: [Tex]f'(2)= \lim_{h \to 0} \frac {f(2+h)-f(2)} h[/Tex] ⇒ [Tex]f'(2)= \lim_{h \to 0} \frac {3(2+h)-3(2)}
7 min read
Class 12 NCERT Solutions- Mathematics Part I - Application of Derivatives - Exercise 6.1
Question 1. Find the rate of change of the area of a circle with respect to its radius r when a) r=3cm b) r=4cm Solution: Given, radius of circle=r=3cm Now, we know that area=πr2=A Rate of change of the area of a circle with respect to r=dA/dr dA/dr=d/dr πr2=2πr so, when r=3 dA/dr =2π(3)=6π when r=4 dA/dr =2π(4)=8π Question 2. The volume of a cube
7 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 6 Application of Derivatives - Exercise 6.4
Question 1. Using differentials, find the approximate value of each of the following up to 3 places of decimal. (i)√25.3 (ii)√49.5 (iii) √0.6 (iv) (0.009)1/3 (v) (0.999)1/10 (vi) (15)1/4 (vii) (26)1/3 (viii) (255)1/4 (ix) (82)1/4 (x) (401)1/2 (xi) (0.0037)1/2 (xii) (26.57)1/3 (xiii) (81.5)1/4 (xiv) (3.968)3/2 (xv) (32.15)1/5 Solution: (i) √25.3 We
10 min read
Class 11 RD Sharma Solutions - Chapter 30 Derivatives - Exercise 30.2 | Set 1
Question 1. Differentiate each of the following using first principles:(i) 2/x Solution: Given that f(x) = 2/x By using the formula f'(x) = [Tex]\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}[/Tex] We get = [Tex]\lim_{h\to 0}\frac{\frac{2}{x+h}-\frac{2}{x}}{h}[/Tex] = [Tex]\lim_{h\to 0}\frac{2x-2x-2h}{hx(x+h)} [/Tex] = [Tex]\lim_{h\to 0}\frac{2(-h)}{hx(x+h)}[/
6 min read
Class 12 RD Sharma Solutions - Chapter 12 Higher Order Derivatives - Exercise 12.1 | Set 2
Question 27. If y = [log{x+(√x2+1)}]2, show that (1 + x2)(d2y/dx2) + x(dy/dx) = 2. Solution: We have, y = [log{x + (√x2 + 1)}]2 On differentiating both sides w.r.t x, [Tex]\frac{dy}{dx}=2log(x+\sqrt{x^2+1}).\frac{d}{dx}(x+\sqrt{x^2+1})[/Tex] [Tex]\frac{dy}{dx}=\frac{2log(x+\sqrt{x^2+1})}{(x+\sqrt{x^2+1})}(1+\frac{2x}{2\sqrt{x^2+1}})[/Tex] [Tex]\fra
12 min read
Class 11 NCERT Solutions- Chapter 13 Limits And Derivatives - Exercise 13.1 | Set 1
Evaluate the following limits in Exercises 1 to 22.Question 1: [Tex]\lim_{x \to 3} x+3[/Tex] Solution: In [Tex]\lim_{x \to 3} x+3[/Tex], as x⇢3 Put x = 3, we get [Tex]\lim_{x \to 3} x+3[/Tex] = 3+3 = 6 Question 2: [Tex]\lim_{x \to \pi} (x-\frac{22}{7})[/Tex] Solution: In [Tex]\lim_{x \to \pi} (x-\frac{22}{7})[/Tex], as x⇢π Put x = π, we get [Tex]\l
5 min read
Class 11 NCERT Solutions- Chapter 13 Limits And Derivatives - Exercise 13.1 | Set 2
Question 17:[Tex]\lim_{x \to 0} \frac{cos \hspace{0.1cm}2x-1}{cos \hspace{0.1cm}x-1}[/Tex] Solution: In[Tex]\lim_{x \to 0} \frac{cos \hspace{0.1cm}2x-1}{cos \hspace{0.1cm}x-1} [/Tex], as x⇢0 As we know, cos 2θ = 1-2sin2θ Substituting the values, we get [Tex]\lim_{x \to 0} \frac{1-2sin^2x-1}{1-2sin^2(\frac{x}{2})-1}[/Tex] =[Tex]\lim_{x \to 0} \frac{
9 min read
Class 12 NCERT Solutions - Mathematics Part I - Chapter 6 Application of Derivatives - Exercise 6.5 | Set 1
Question 1. Find the maximum and minimum values, if any, of the following function given by(i) f(x) = (2x - 1)2 + 3 Solution: Given that, f(x) = (2x - 1)2 + 3 From the given function we observe that (2x - 1)2 ≥ 0 ∀ x∈ R, So, (2x - 1)2 + 3 ≥ 3 ∀ x∈ R, Now we find the minimum value of function f when 2x-1 = 0 So, x = 1/2 f = f(1/2) = (2(1/2) - 1)2 +
15+ min read
Class 12 NCERT Solutions - Mathematics Part I - Chapter 6 Application of Derivatives - Exercise 6.5 | Set 2
Question 13. Find two numbers whose sum is 24 and whose product is as large as possible. Solution: Let us assume two numbers x and y. Given that x + y = 24 ⇒ y = 24 - x Now lets take a product function P(x) = x.y Now put the value of y P(x) = x.(24 - x) P(x) = 24x - x2 Now, we have to maximize our product P(x). Differentiating P(x) with respect to
15 min read
Class 11 NCERT Solutions - Chapter 13 Limits And Derivatives - Exercise 13.2
Question 1. Find the derivative of x2 – 2 at x = 10. Solution: f(x) = x2 – 2 f(x+h) = (x+h)2 – 2 From the first principle, [Tex]f'(x) = \lim_{h \to 0} \frac{f(x+h)-f(x)}{h}[/Tex] When, x = 10 [Tex]f'(10) = \lim_{h \to 0} (\frac{f(10+h)-f(10)}{h})\\ f'(10) = \lim_{h \to 0} (\frac{((10+h)^2-2) - (10^2-2)}{h})\\ f'(10) = \lim_{h \to 0} (\frac{((10^2+2
15 min read
Class 11 NCERT Solutions- Chapter 13 Limits And Derivatives - Miscellaneous Exercise on Chapter 13 | Set 2
Find the derivative of the following functions (it is to be understood that a, b, c, d, p, q, r and s are fixed non-zero constants and m and n are integers): Question 16: [Tex]\frac{cos x}{1+sin x}[/Tex] Solution: [Tex]f(x) = \frac{cos x}{1+sin x}[/Tex] Taking derivative both sides, [Tex]\frac{d}{dx}(f(x)) = \frac{d}{dx}(\frac{cos x}{1+sin x})[/Tex
15 min read
Class 11 RD Sharma Solutions - Chapter 30 Derivatives - Exercise 30.2 | Set 2
Question 3. Differentiate each of the following using first principles:(i) xsinx Solution: Given that f(x) = xsinx By using the formula [Tex]f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}[/Tex] We get = [Tex]\lim_{h\to 0}\frac{(x+h)sin(x+h)-xsinx}{h}[/Tex] = [Tex]\lim_{h\to 0}\frac{x(sin(x+h)-sinx)}{h}+sin(x+h) [/Tex] Using the formula sinc - sind = 2cos
5 min read
Class 11 RD Sharma Solutions - Chapter 30 Derivatives - Exercise 30.5 | Set 1
Differentiate the following functions with respect to x:Question 1. [Tex]\frac{x^2+1}{x+1}[/Tex] Solution: By using quotient rule, we get, [Tex]\frac{d}{dx}(\frac{x^2+1}{x+1})=\frac{(x+1)\frac{d}{dx}(x^2+1)-(x^2+1)\frac{d}{dx}(x+1)}{(x+1)^2}[/Tex] = [Tex]\frac{(x+1)(2x)-x^2-1}{(x+1)^2}[/Tex] = [Tex]\frac{2x^2+2x-x^2-1}{(x+1)^2}[/Tex] = [Tex]\frac{x
2 min read
three90RightbarBannerImg