Q.Find dxdy in the following: sin(ax+b)
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(ax+b).
The outer function is sinu, whose derivative is cosu.
The inner function is u=ax+b, whose derivative is a.
Applying the chain rule:
dxdy=cos(ax+b)⋅a
The derivative is acos(ax+b).
Use the Chain Rule: differentiate the outer sine function, then multiply by the derivative of the inner linear function ax+b. The result is acos(ax+b).
The problem asks for the derivative of sin(ax+b) with respect to x. This is a classic composition of two functions: an outer sine function and an inner linear function ax+b. The Chain Rule is the natural tool here — it tells us to differentiate the outer function first, leaving the inner untouched, then multiply by the derivative of the inner function.
Let’s walk through it step by step.
-
Identify the composition.
We have y=sin(u) where u=ax+b.
The outer function is sin(u), and the inner function is u=ax+b.
-
Differentiate the outer function with respect to its argument.
The derivative of sin(u) with respect to u is cos(u).
So, dudy=cos(u).
-
Differentiate the inner function with respect to x.
The derivative of ax+b with respect to x is simply a (since b is constant).
So, dxdu=a.
-
Apply the Chain Rule.
The Chain Rule states:
dxdy=dudy⋅dxdu
Substituting what we have:
dxdy=cos(u)⋅a=acos(ax+b)
A quick mental shortcut: for any function of the form sin(kx+c), the derivative is kcos(kx+c). The constant c vanishes because its derivative is zero. This pattern extends to cos, tan, etc.
A common mistake is to forget the factor a and write just cos(ax+b). Always check: the derivative of the inner linear term must multiply the outer derivative. If the inner function were something like x2, the factor would be 2x, not just 1.
The derivative is acos(ax+b).
Method: Differentiating a Trig Function of a Linear Expression
This is the simplest chain-rule case, and it produces a reusable pattern worth memorising: the derivative of sin(kx+c) (or cos, tan, etc.) is always the outer derivative times the constant k.
Steps
Step 1: Identify the inner linear expression
Write the argument of the trig function as u=(coefficient)⋅x+(constant).
Step 2: Differentiate the outer trig function with respect to u
Apply the standard rule (e.g. dudsinu=cosu), keeping the result in terms of u.
Step 3: Differentiate the inner linear expression with respect to x
The derivative of (coefficient)⋅x+(constant) is simply the coefficient — the additive constant contributes nothing, since its derivative is zero.
Step 4: Multiply and substitute back
dxdy=(outer derivative in terms of u)×(coefficient),then replace u with the original linear expression.
Step 5: Recognise the reusable pattern
For any sin(kx+c), the derivative is always kcos(kx+c) — the same pattern extends directly to cos(kx+c)→−ksin(kx+c) and other trig functions, so this shortcut is worth remembering rather than re-deriving each time.
Common Mistakes
Mistake 1: Forgetting to multiply by the coefficient a
Why it's wrong: writing dxdy=cos(ax+b) without the leading factor of a ignores the inner derivative of the linear expression ax+b, which is a (not 1). Correct approach: always compute the inner derivative separately — even when it looks like a trivial linear expression, its derivative (the coefficient) must still be multiplied into the final answer.
Mistake 2: Treating the constant b as if it contributes to the derivative
Why it's wrong: some students mistakenly think a nonzero constant b should appear somewhere in the final derivative — but the derivative of any additive constant is always zero, so b only affects the argument of the cosine, never the multiplying factor out front. Correct approach: remember that only the coefficient of x (here, a) survives differentiation of a linear inner function; any purely additive constant disappears completely.
Showing the 12 most recent of 115 on this concept.
- 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 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 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.