Q.Find dxdy in the following: sin(x2+5)
Concept understanding — Chain Rule
The Chain Rule: Why It Makes Sense
Imagine you're assembling a toy. First you put part A into part B, then you put that combined piece into part C. The final toy's position depends on how you moved A, which then affected B, which then affected C. That's exactly what the chain rule captures — how a change in the first variable ripples through a sequence of functions to affect the final output.
Let's make this concrete. Suppose you have a function f that depends on g, and g itself depends on x:
y=f(g(x))
You want to know: if x changes by a tiny amount, how much does y change? The answer isn't just f′(g(x)) — because g(x) itself changes when x changes. You have to multiply the two rates:
- How fast does g change with respect to x? That's g′(x).
- How fast does f change with respect to its input g? That's f′(g(x)).
The total effect is the product:
dxdy=f′(g(x))⋅g′(x)
In Leibniz notation, this looks even more natural: dxdy=dudy⋅dxdu, where u=g(x). The du's "cancel" like fractions — though this is just a helpful memory aid, not a rigorous proof.
The Precise Statement
Chain Rule (single variable): If g is differentiable at x and f is differentiable at g(x), then the composite function h(x)=f(g(x)) is differentiable at x, and
h′(x)=f′(g(x))⋅g′(x)
That's it. One multiplication. But the power is enormous — it lets you differentiate almost any nested function.
A Simple Example
Differentiate h(x)=sin(3x2).
Here f(u)=sinu and g(x)=3x2. Then:
- f′(u)=cosu, so f′(g(x))=cos(3x2)
- g′(x)=6x
Multiply: h′(x)=cos(3x2)⋅6x=6xcos(3x2)
The most common mistake is forgetting to multiply by the inner derivative. Students often write dxdsin(3x2)=cos(3x2) and stop — that's wrong. The chain rule demands you also multiply by 6x.
Why It's Called a "Chain"
Think of a chain of links: x→g→f. Each link has its own rate of change. To find the total rate from x to f, you multiply the rates of each link. If you had three functions — say h(x)=f(g(k(x))) — you'd multiply three derivatives:
h′(x)=f′(g(k(x)))⋅g′(k(x))⋅k′(x)
The chain can be as long as you like. Each new function adds one more factor.
The Intuition in One Sentence
The chain rule says: the rate of change of the whole is the product of the rates of change of the parts, evaluated at the right places.
The chain rule is not optional — it's the backbone of calculus. Every derivative of a trigonometric, exponential, logarithmic, or power function that isn't just xn uses it. Master this, and you master differentiation.
The chain rule is one of the most heavily tested formulas in the NCERT Class 12 Continuity and Differentiability chapter, and it underlies nearly every differentiation problem in CBSE boards, JEE Main and JEE Advanced. Whether you're searching 'chain rule differentiation class 12 examples' or 'chain rule important questions for JEE', this f'(g(x))·g'(x) pattern is the formula every subsequent derivative rule in the syllabus builds on.
Concept: Chain Rule — differentiate the outer function, then multiply by the derivative of the inner function.
Let y=sin(u) where u=x2+5.
Step 1: dudy=cos(u).
Step 2: dxdu=2x.
Step 3: By the chain rule, dxdy=dudy⋅dxdu=cos(u)⋅2x.
Step 4: Substitute back u=x2+5 to get dxdy=2xcos(x2+5).
The derivative is 2xcos(x2+5).
Use the Chain Rule: differentiate the outer sine function, then multiply by the derivative of the inner x2+5. The result is dxdy=2xcos(x2+5).
We have y=sin(x2+5). This is a composite function — a sine function whose input is not just x, but another function x2+5. Whenever you have a function inside another function, the Chain Rule is the tool.
The Chain Rule says: if y=f(g(x)), then dxdy=f′(g(x))⋅g′(x). In words: differentiate the outer function, keep the inner function unchanged, then multiply by the derivative of the inner function.
Here, the outer function is sin(⋅), whose derivative is cos(⋅). The inner function is g(x)=x2+5, whose derivative is 2x.
Let’s apply it step by step.
-
Identify the outer and inner functions.
Outer: f(u)=sinu, where u=x2+5.
Inner: u=x2+5.
-
Differentiate the outer function with respect to its input u.
dudsinu=cosu.
So f′(g(x))=cos(x2+5).
-
Differentiate the inner function with respect to x.
dxd(x2+5)=2x.
-
Multiply the two derivatives.
By the Chain Rule:
dxdy=cos(x2+5)⋅2x=2xcos(x2+5).
A common mistake is to write cos(2x) instead of cos(x2+5). Remember: the derivative of sin(stuff) is cos(stuff), where "stuff" stays exactly as it is — you do not differentiate the inside yet. That multiplication comes separately.
If you ever get confused, rewrite y as y=sin(u) with u=x2+5, then compute dudy⋅dxdu. This "Leibniz notation" form of the Chain Rule often makes the logic clearer.
The derivative is 2xcos(x2+5).
Method: Differentiating a Trigonometric Function of a Polynomial (Chain Rule)
Whenever you need dxdy of a trig function applied to a non-linear expression, the chain rule breaks the work into two easy pieces.
Steps
Step 1: Identify the outer and inner functions
Write y=f(u) where u is everything inside the trig function (the inner expression), and f is the trig function itself (the outer function).
Step 2: Differentiate the outer function with respect to u, keeping u unevaluated
Use the standard derivative (e.g. dudsinu=cosu) but do NOT substitute the inner expression's own derivative yet — write the result still in terms of u.
Step 3: Differentiate the inner function with respect to x
This is usually a simple polynomial derivative.
Step 4: Multiply the two results and substitute back
dxdy=dudy⋅dxdu
Replace u with its original expression in x to give the final answer purely in terms of x.
Common Mistakes
Mistake 1: Forgetting to multiply by the inner derivative
Why it's wrong: writing dxdy=cos(x2+5) and stopping there ignores the chain rule entirely — the derivative of the inner function x2+5 (which is 2x) must also be multiplied in. Correct approach: always write out both the outer derivative and the inner derivative as separate steps, then multiply them, rather than trying to do the whole thing in one line.
Mistake 2: Differentiating the inside prematurely, inside the outer function's argument
Why it's wrong: some students write cos(2x) instead of cos(x2+5), mistakenly replacing the inner expression with its own derivative before applying the outer function. The argument of cos must stay as the original inner expression, x2+5 — only after differentiating the outer function do you separately multiply by the inner derivative. Correct approach: keep the inner expression completely unchanged inside the outer function's derivative; the inner derivative only appears as a separate multiplied factor.
Showing the 12 most recent of 115 on this concept.
- CBSE 2020Set 65/3/11 markQ.Differentiate sin2(x) with respect to x.
›Reveal solutionSolution
We have a composition of three functions: squaring, sine, and square root. The chain rule peels them off one layer at a time, giving dxdsin2(x)=sin(x)cos(x)⋅x1.
The chain rule is our tool for differentiating composite functions. When a function is built by nesting one operation inside another, we differentiate from the outside in, multiplying the derivative of each layer as we go.
Here sin2(x) is really [sin(x)]2, so we have three nested functions:
- Outermost: squaring something
- Middle: taking the sine of something
- Innermost: taking the square root of x
The chain rule says: differentiate the outer function (leaving the inside alone), then multiply by the derivative of what's inside, and repeat until you reach x.
Step-by-step differentiation:
-
Differentiate the outer square.
If u=sin(x), then we're differentiating u2. The power rule gives 2u, so:
dxd[sin(x)]2=2sin(x)⋅dxd[sin(x)]
-
Differentiate the sine layer.
Now we need dxd[sin(x)]. The derivative of sin(v) is cos(v), where v=x:
dxd[sin(x)]=cos(x)⋅dxd[x]
-
Differentiate the innermost square root.
Finally, dxd[x]=dxd[x1/2]=21x−1/2=2x1.
-
Multiply all the pieces together.
Combining steps 1, 2, and 3:
dxdsin2(x)=2sin(x)⋅cos(x)⋅2x1
The factor of 2 cancels:
=xsin(x)cos(x)
TipYou can also write this using the double-angle identity sin(2θ)=2sinθcosθ, which gives sinθcosθ=21sin(2θ). So the derivative becomes:
2xsin(2x)
✓Final answerThe derivative is xsin(x)cos(x) or equivalently 2xsin(2x).
- CBSE 2024Set 65/1/11 markMCQQ.The derivative of sin(x2) with respect to x at x=π is : (A) 1 (B) −1 (C) −2π (D) 2π
›Reveal solutionSolution
The derivative of sin(x2) is found using the Chain Rule: differentiate the outer sine, then multiply by the derivative of the inner x2. At x=π, the result is −2π, which corresponds to option (C).
The key to this problem is recognizing that sin(x2) is a composite function. You have an outer function, sin(something), and an inner function, x2. When you need the derivative of a composition like this, the Chain Rule is your only reliable tool.
Why does the Chain Rule work? Think of it as peeling an onion: you first differentiate the outer layer (sine) while keeping the inner layer untouched, then multiply by the derivative of the inner layer. This gives the rate of change of the whole expression with respect to x.
Let’s walk through it step by step.
-
Identify the outer and inner functions.
Here, f(u)=sin(u) where u=x2. So f′(u)=cos(u), and u′=2x.
-
Apply the Chain Rule.
The derivative is:
dxdsin(x2)=cos(x2)⋅dxd(x2)=cos(x2)⋅2x.
So dxdsin(x2)=2xcos(x2).
- Evaluate at x=π. Substitute x=π into the derivative:
2(π)cos((π)2)=2πcos(π).
- Simplify cos(π). From the unit circle, cos(π)=−1. So:
2π⋅(−1)=−2π.
Watch outA common mistake is to forget the Chain Rule and write the derivative as cos(x2) only, missing the factor 2x. That would give cos(π)=−1, which is option (B) — a tempting but incorrect answer. Always check: if the argument of sine is not just x, you need the Chain Rule.
TipNotice that the derivative 2xcos(x2) is zero when x=0 or when cos(x2)=0. At x=π, the cosine term gives −1, so the sign of the derivative is opposite to the sign of x itself — a quick sanity check.
✓Final answerThe correct option is (C) −2π.
-
- CBSE 20191 markQ.If y=cos(3x), then find dxdy.
›Reveal solutionSolution
Use the chain rule: differentiate the outer cosine function, then multiply by the derivative of the inner function 3x. The result is dxdy=−2x3sin(3x).
The key idea here is the chain rule. Whenever you have a function of a function — like cos of something that itself depends on x — you differentiate layer by layer. Think of it as peeling an onion: first the outer layer (cosine), then the next layer (the square root), and finally the innermost layer (3x). Each derivative multiplies together.
Let’s walk through it step by step.
- Identify the composition. We have y=cos(u), where u=3x. So y depends on u, and u depends on x. The chain rule says:
dxdy=dudy⋅dxdu.
- Differentiate the outer function. The derivative of cos(u) with respect to u is −sin(u). So:
dudy=−sin(u)=−sin(3x).
- Differentiate the inner function u=3x. Write 3x as (3x)1/2. Using the power rule and chain rule again (or directly):
dxdu=21(3x)−1/2⋅3=23x3.
Simplify: 23x3=2x3, because 33=3.
TipA faster way: 3x=3⋅x. Then dxd(3x)=3⋅2x1=2x3. This avoids the fraction inside the square root.
- Multiply the two derivatives.
dxdy=(−sin(3x))⋅(2x3)=−2x3sin(3x).
Watch outA common mistake is to forget the chain rule on 3x and write its derivative as 23x1 — missing the factor of 3 from the derivative of 3x. Always check: the derivative of 3x is not the same as the derivative of x.
✓Final answerThe derivative is −2x3sin(3x).
- CBSE 2026Set A1 markMCQQ.dxdx2+ax+1=(a) 2x2+ax+1x+a(b) 2x2+ax+12x+a(c) x2+ax+12x+a(d) 2x2+ax+11
›Reveal solutionSolution
dxdx2+ax+1=2x2+ax+12x+a.
Let u=x2+ax+1, so dxdu=2x+a.
Using dxdu=2u1⋅dxdu:
dxdx2+ax+1=2x2+ax+12x+a.
✓Final answer(b) 2x2+ax+12x+a.
- CBSE 2026Set A1 markMCQQ.dxd(sinx2)=(a) 2xcosx2(b) cosx2(c) x2cosx2(d) xcosx2
›Reveal solutionSolution
dxdsin(x2)=2xcos(x2).
Let u=x2, so dxdu=2x.
By the chain rule,
dxdsinu=cosu⋅dxdu=cos(x2)⋅2x=2xcos(x2).
✓Final answer(a) 2xcosx2.
- CBSE 2026Set A1 markMCQQ.dxdcotx=(a) 2cotx1(b) csc2x(c) 2cotx−csc2x(d) 2cotxcsc2x
›Reveal solutionSolution
dxdcotx=2cotx−csc2x.
Let u=cotx, so dxdu=−csc2x.
Using dxdu=2u1⋅dxdu:
dxdcotx=2cotx1⋅(−csc2x)=2cotx−csc2x.
✓Final answer(c) 2cotx−csc2x.
- CBSE 2026Set A1 markMCQQ.dxd(cosx)=(a) sinx(b) 2x−sinx(c) 2xsinx(d) 2x1
›Reveal solutionSolution
dxdcosx=2x−sinx.
Let u=x, so dxdu=2x1.
By the chain rule,
dxdcosu=−sinu⋅dxdu=−sinx⋅2x1=2x−sinx.
✓Final answer(b) 2x−sinx.
- CBSE 2026Set A1 markMCQQ.dxd(cosx3)=(a) −3x2sinx3(b) sinx3(c) 3x2sinx3(d) 3x2
›Reveal solutionSolution
Chain rule on cos(x3) gives −3x2sinx3.
Let the inner function be u=x3, so y=cosu.
dxdy=dudy⋅dxdu=(−sinu)(3x2)=−3x2sinx3.
✓Final answer(A) −3x2sinx3.
- CBSE 2026Set ANNUAL1 markMCQQ.Write the derivative of log(cosex).(a) −tanex(b) extanex(c) −extanex(d) tanex
›Reveal solutionSolution
Using the chain rule twice, dxdlog(cosex)=−extanex.
Let y=log(cosex). We differentiate using the chain rule, working from the outside in.
Step 1: Differentiate log(u) where u=cosex:
dxdy=cosex1⋅dxd(cosex)
Step 2: Differentiate cos(v) where v=ex:
dxd(cosex)=−sin(ex)⋅dxd(ex)=−sin(ex)⋅ex
Step 3: Combine:
dxdy=cosex−exsinex=−extanex
✓Final answerThe correct option is (c) −extanex.
- CBSE 2026Set ANNUAL1 markMCQQ.If y=cos−1(1+x21−x2), 0<x<1, then dxdy is equal to(a) 1+x21(b) 4+x2(c) 1+x22(d) x+x22
›Reveal solutionSolution
Put x=tanϕ so the expression simplifies to cos−1(cos2ϕ)=2ϕ=2tan−1x, whose derivative is standard.
Let x=tanϕ. Then 1+x21−x2=1+tan2ϕ1−tan2ϕ=cos2ϕ.
So y=cos−1(cos2ϕ)=2ϕ=2tan−1x (valid for 0<x<1, i.e. 0<ϕ<π/4, so 2ϕ is in the principal range).
dxdy=1+x22.
✓Final answerThe correct option is (c) 1+x22.
- CBSE 2026Set ANNUAL1 markQ.If y=ex+ex2+…+ex5, then find dxdy.
›Reveal solutionSolution
Differentiate each term exn using the chain rule: dxdexn=nxn−1exn.
y=ex+ex2+ex3+ex4+ex5
dxdy=ex+2xex2+3x2ex3+4x3ex4+5x4ex5.
✓Final answerdxdy=ex+2xex2+3x2ex3+4x3ex4+5x4ex5.
- CBSE 2026Set ANNUAL1 markMCQQ.dxd(cos3x)=(a) sin3x(b) −3sin3x(c) cos3x(d) −3cos3x
›Reveal solutionSolution
Differentiate cos(3x) using the chain rule: derivative of cosu is −sinu, times dxdu.
dxd(cos3x)=−sin(3x)⋅dxd(3x)=−sin(3x)⋅3=−3sin3x.
✓Final answer(b) −3sin3x.
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.