Q.Differentiate w.r.t. x: sinmx⋅cosnx.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →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: …
Concept: Chain Rule — treat each factor separately, then apply the product rule.
Let y=sinmx⋅cosnx.
Take logy=mlog(sinx)+nlog(cosx).
Differentiate: y1dxdy=m⋅sinxcosx+n⋅cosx−sinx=mcotx−ntanx.
Multiply through by y: …
Use the product rule combined with the chain rule to differentiate sinmx⋅cosnx. The derivative is msinm−1xcosn+1x−nsinm+1xcosn−1x.
We have a product of two functions, each raised to a power. The key is to see that each factor is a function of a function: sinmx means (sinx)m, and similarly for cosnx. So when we differentiate, we need the chain rule inside the product rule.
Let’s set:
u=sinmx,v=cosnx
We want dxd(u⋅v)=u′v+uv′.
1. Differentiate u=sinmx.
Think of it as (sinx)m. The outer function is “raise to the power m”, the inner function is sinx. By the chain rule:
dxdu=m(sinx)m−1⋅cosx=msinm−1xcosx
2. Differentiate v=cosnx.
Similarly, this is (cosx)n. Outer: power n, inner: cosx. Chain rule gives:
dxdv=n(cosx)n−1⋅(−sinx)=−ncosn−1xsinx
A common mistake is forgetting the minus sign from the derivative of cosx. The derivative of cosx is −sinx, not sinx.
3. Apply the product rule.
dxd(sinmxcosnx)=(msinm−1xcosx)⋅cosnx+sinmx⋅(−ncosn−1xsinx)
4. Simplify each term. …
Method: Logarithmic Differentiation for a Product of Power Functions
Use this whenever you must differentiate a product of two or more factors, each raised to a power — like sinmx⋅cosnx. Taking logs turns the product into a sum and the powers into coefficients, avoiding a clumsy repeated product rule.
Steps
Step 1: Take the natural log of both sides
logy=mlog(sinx)+nlog(cosx)
Step 2: Differentiate term by term
Each term needs the chain rule, since log(sinx) and log(cosx) are themselves composite functions:
y1dxdy=m⋅sinxcosx+n⋅cosx−sinx=mcotx−ntanx
Step 3: Multiply through by y and substitute back
dxdy=sinmxcosnx(mcotx−ntanx) …
Common Mistakes
Mistake 1: Dropping the negative sign from the derivative of cosx
Why it's wrong: dxdcosx=−sinx, not sinx — if this sign is lost while differentiating cosnx, the corresponding term of the final answer comes out with the wrong sign. Correct approach: always write the derivative of cosx with its negative sign explicit before simplifying further.
Mistake 2: Forgetting to multiply by y after logarithmic differentiation
Why it's wrong: differentiating logy only ever produces y1dxdy; stopping at mcotx−ntanx and calling that the derivative skips the final multiplication step. Correct approach: multiply the simplified expression by the original y=sinmxcosnx before reporting the answer. …
Showing the 12 most recent of 26 on this concept.
- TG EAPCET 2021Set eng-2021-08-05-FN1 markMCQQ.The derivate of (logx)sinx with respect to cosx at x=2π is (A) π−4 (B) 2−π (C) π−2 (D) 4−π
›Reveal solutionSolution
To find the derivative of u with respect to v when both are functions of x, we use the chain rule: dvdu=dv/dxdu/dx. We apply logarithmic differentiation to find dxdu for u=(logx)sinx, and then evaluate the expression at x=2π. The result is π−2.
When asked to find the derivative of one function, say u, with respect to another function, say v, and both u and v are themselves functions of a third variable, say x, we use a specific application of the chain rule. This is often called parametric differentiation.
The core idea is that if u=f(x) and v=g(x), then the derivative of u with respect to v is given by:
dvdu=dv/dxdu/dx
provided dxdv=0.
In this problem, we have u=(logx)sinx and v=cosx. We need to find dvdu at x=2π.
Here's how we approach it:
-
Define the functions:
Let u=(logx)sinx and v=cosx.
Our goal is to find dvdu at x=2π.
-
Find dxdu using logarithmic differentiation:
The function u=(logx)sinx is of the form f(x)g(x), which is best differentiated using logarithms.
Take the natural logarithm on both sides:
logu=log((logx)sinx)
Using the logarithm property $\log(a^b) = b \log a$:logu=sinxlog(logx)
Now, differentiate both sides with respect to $x$. Remember to use the product rule on the right side and the chain rule on the left side.u1dxdu=dxd(sinx)⋅log(logx)+sinx⋅dxd(log(logx))
We know $\frac{d}{dx}(\sin x) = \cos x$. For $\frac{d}{dx}(\log(\log x))$, we apply the chain rule: $\frac{d}{dx}(\log(f(x))) = \frac{1}{f(x)} f'(x)$. Here, $f(x) = \log x$, so $f'(x) = \frac{1}{x}$.dxd(log(logx))=logx1⋅x1
Substitute these derivatives back into the equation:u1dxdu=cosxlog(logx)+sinx⋅xlogx1
Now, solve for $\frac{du}{dx}$:dxdu=u(cosxlog(logx)+xlogxsinx)
Substitute $u = (\log x)^{\sin x}$ back:dxdu=(logx)sinx(cosxlog(logx)+xlogxsinx)
- Find dxdv: The function v=cosx is straightforward to differentiate:
dxdv=−sinx
- Apply the chain rule dvdu=dv/dxdu/dx:
dvdu=−sinx(logx)sinx(cosxlog(logx)+xlogxsinx)
-
Evaluate at x=2π:
Now, substitute x=2π into the expression for dvdu.
Recall the values of trigonometric functions at x=2π:
sin(2π)=1
cos(2π)=0
Let's evaluate the numerator first: …
-
- TG EAPCET 2023Set eng-2023-05-12-AN1 markMCQQ.If sec(log2y2)=csc(log2x2), then dxdy= (A) yx (B) xy (C) −xy (D) −yx
›Reveal solutionSolution
The key idea is to rewrite the given equation using the identity secθ=csc(2π−θ), then equate the arguments of the logs (up to an additive constant) and differentiate implicitly. The result is dxdy=−xy, which corresponds to option (C).
We start with
sec(log2y2)=csc(log2x2).
Concept and intuition
The equation mixes secant and cosecant of different arguments. A natural way to compare them is to use the cofunction identity:
secA=csc(2π−A).
This lets us rewrite the left-hand side as a cosecant, so both sides become cosecants of some expressions. Then, because cosecant is not one-to-one over all reals, we must consider that equality of cosecants means their arguments differ by an integer multiple of 2π or are supplementary (since cscα=cscβ implies α=β+2πn or α=π−β+2πn). However, the presence of logs and the fact that x and y are variables (likely positive, so logs are defined) suggests the simplest branch will give the relation we need. We’ll assume the principal branch and later check that the derivative is independent of the integer constant.
Step-by-step solution
- Apply the cofunction identity
sec(log2y2)=csc(2π−log2y2).
So the equation becomes
csc(2π−log2y2)=csc(log2x2).
- Equate the arguments (up to periodicity) For cosecant, cscα=cscβ implies
α=β+2πkorα=π−β+2πk,
for some integer k.
The second case would introduce a constant shift that, upon differentiation, disappears anyway. So we take the simplest:
2π−log2y2=log2x2+C,
where C is a constant (combining the 2πk or π shift).
For differentiation, any constant C will vanish.
- Simplify the logs Recall log2y2=2log2y and log2x2=2log2x. So
2π−2log2y=2log2x+C.
- Differentiate implicitly with respect to x Differentiate term by term:
- TG EAPCET 2026Set eng-2026-05-10-AN1 markMCQQ.If y=e2x+sinx, then 2y′′−5y′+2y= (A) 4sinx (B) −5cosx (C) −4sinx (D) 5cosx
›Reveal solutionSolution
The key idea is to compute the first and second derivatives of y=e2x+sinx, substitute them into 2y′′−5y′+2y, and simplify. The result is −5cosx, which corresponds to option (B).
We start with the function
y=e2x+sinx.
The expression we need is 2y′′−5y′+2y. Instead of solving a differential equation, we simply differentiate and substitute — this is a direct computation.
- First derivative Differentiate term by term:
y′=dxd(e2x)+dxd(sinx)=2e2x+cosx.
- Second derivative Differentiate y′:
y′′=dxd(2e2x)+dxd(cosx)=4e2x−sinx.
- Substitute into 2y′′−5y′+2y
2y′′=2(4e2x−sinx)=8e2x−2sinx,
−5y′=−5(2e2x+cosx)=−10e2x−5cosx,
2y=2(e2x+sinx)=2e2x+2sinx.
- Add them together Combine the e2x terms: 8e2x−10e2x+2e2x=0. Combine the sinx terms: −2sinx+2sinx=0. The only remaining term is −5cosx. …
- TG EAPCET 2024Set eng-2024-05-11-FN1 markMCQQ.If y=tan−1[3xsin2(2x)−x3sin3(2x)−3x2sin(2x)], then dxdy= (A) x2−sin2(2x)6xcos(2x)−3sin(2x) (B) x2+sin2(2x)6xsin(2x)−3cos(2x) (C) x2+sin2(2x)2xcos(2x)−sin(2x) (D) x2+sin2(2x)6xcos(2x)−3sin(2x)
›Reveal solutionSolution
The key is to recognise the argument of tan−1 as the tangent triple-angle formula tan(3θ) with θ=tan−1(xsin(2x)), so y=3tan−1(xsin(2x)); differentiating gives dxdy=x2+sin2(2x)6xcos(2x)−3sin(2x), which matches option (D).
The expression inside the inverse tangent looks messy — a ratio of two cubic-looking polynomials in sin(2x) and x. That structure is a dead giveaway for the triple-angle formula for tangent:
tan(3θ)=1−3tan2θ3tanθ−tan3θ
But here we have 3xsin2(2x)−x3sin3(2x)−3x2sin(2x). If we set tanθ=xsin(2x), then:
- Numerator: sin3(2x)−3x2sin(2x)=x3[(xsin(2x))3−3(xsin(2x))]=x3(tan3θ−3tanθ)
- Denominator: 3xsin2(2x)−x3=x3[3(xsin(2x))2−1]=x3(3tan2θ−1)
So the fraction becomes:
x3(3tan2θ−1)x3(tan3θ−3tanθ)=3tan2θ−1tan3θ−3tanθ
But tan(3θ)=1−3tan2θ3tanθ−tan3θ=−3tan2θ−1tan3θ−3tanθ. So our fraction is actually −tan(3θ). However, tan−1(−tan(3θ))=−3θ (for appropriate principal values). Thus:
y=tan−1[−tan(3θ)]=−3θ=−3tan−1(xsin(2x))
Now differentiate.
- Differentiate y=−3tan−1(u) where u=xsin(2x).
dxdy=−3⋅1+u21⋅dxdu
- Find dxdu using the quotient rule:
u=xsin(2x)⇒dxdu=x22xcos(2x)−sin(2x)
- Compute 1+u2:
1+u2=1+x2sin2(2x)=x2x2+sin2(2x)
- Put it together:
- TG EAPCET 2021Set eng-2021-08-05-AN1 markMCQQ.If y=cos−1(tanhx)+sinh(sin6x), then dxdy= (A) coshx−1+6cos6xcosh(sin6x) (B) coshx1−6cos6xcosh(sin6x) (C) coshx−1−6cos6xcosh(sin6x) (D) coshx1+6cos6xcosh(sin6x)
›Reveal solutionSolution
Differentiate each term separately using chain rule and known derivatives: derivative of cos−1(tanhx) is −coshx1, and derivative of sinh(sin6x) is 6cos6xcosh(sin6x). The sum gives option (A).
The function is a sum of two completely different pieces: an inverse cosine of a hyperbolic tangent, and a hyperbolic sine of a sine. Each requires its own chain rule application, and the derivatives never mix. The key is to handle them one at a time, keeping the algebra clean.
- First term: y1=cos−1(tanhx) Recall: dudcos−1u=1−u2−1. Here u=tanhx, so by the chain rule:
dxdy1=1−tanh2x−1⋅dxd(tanhx).
Now dxd(tanhx)=sech2x=cosh2x1.
Also, 1−tanh2x=sech2x=cosh2x1, so 1−tanh2x=coshx1 (taking the positive root since coshx>0).
Therefore:
dxdy1=1/coshx−1⋅cosh2x1=−coshx⋅cosh2x1=−coshx1.
- Second term: y2=sinh(sin6x) Recall: dudsinhu=coshu. With u=sin6x, chain rule gives: …
- TG EAPCET 2025Set eng-2025-05-03-AN1 markMCQQ.If x=1−tany, then dxdy= (A) x4+2x2+22x (B) −x4−2x2+22x (C) x4−2x2+22x (D) −x4+2x2+22x
›Reveal solutionSolution
Square the given relation to get tany=1−x2, i.e. y=tan−1(1−x2), and differentiate: dxdy=−x4−2x2+22x — option (B).
The concept first
When y is buried inside a trigonometric function and x sits outside a radical, do not rush into implicit differentiation. It is far cleaner to tidy the relation algebraically first, so that y is written explicitly in terms of x; then a single application of the chain rule finishes it. The tool you need is
dxdtan−1u=1+u21⋅dxdu.
Step 1 — Make y explicit
x=1−tany⟹x2=1−tany⟹tany=1−x2⟹y=tan−1(1−x2).
Step 2 — Differentiate with the chain rule
With u=1−x2, dxdu=−2x:
dxdy=1+(1−x2)21×(−2x)=1+(1−x2)2−2x.
Step 3 — Simplify the denominator
(1−x2)2=1−2x2+x4,
1+(1−x2)2=1+1−2x2+x4=x4−2x2+2.
Therefore …
- TG EAPCET 2025Set eng-2025-05-03-FN1 markMCQQ.If x=1−tany, then dxdy= (A) −x4+2x2+22x (B) −x4−2x2+22x (C) x4−2x2+22x (D) x4+2x2+22x
›Reveal solutionSolution
Implicit differentiation gives dxdy=−x4−2x2+22x. Option (B).
Solution
From x=1−tany, square both sides:
x2=1−tany ⟹ tany=1−x2.
Differentiate x2=1−tany with respect to x:
2x=−sec2ydxdy ⟹ dxdy=−sec2y2x.
Express sec2y in terms of x using sec2y=1+tan2y: …
- TG EAPCET 2022Set eng-2022-07-20-AN1 markMCQQ.If x2+y2=t−t1, x4+y4=t2+t21 then dxdy= (A) yx (B) −yx (C) xy (D) −xy
›Reveal solutionSolution
The key is to relate the given equations by squaring the first and comparing with the second, which reveals that x2y2=−1, leading to dxdy=−yx.
We have two equations linking x, y, and a parameter t:
x2+y2=t−t1,x4+y4=t2+t21.
The goal is to find dxdy without explicitly solving for t. The trick is to notice that squaring the first equation will produce x4+y4+2x2y2, which we can compare with the second equation to eliminate t.
- Square the first equation:
(x2+y2)2=(t−t1)2.
Expanding both sides:
x4+y4+2x2y2=t2+t21−2.
- Substitute the second equation x4+y4=t2+t21 into the left side:
(t2+t21)+2x2y2=t2+t21−2.
- Cancel t2+t21 from both sides, leaving:
2x2y2=−2⇒x2y2=−1.
Watch outx2y2=−1 means x and y cannot both be real numbers — but the problem is algebraic, so we proceed with the relation as given. In implicit differentiation, this relation is enough.
- Differentiate x2y2=−1 implicitly with respect to x. Using the product rule: …
- TG EAPCET 2022Set eng-2022-07-20-FN1 markMCQQ.If f(x)=logexe−xsinx and f′(x)=f(x)⋅g(x), then g′(e)= (A) e−2−csc2(e) (B) 2e2−csc2(e) (C) 2e−2−csc2(e) (D) 2e−2+csc2(e)
›Reveal solutionSolution
We use logarithmic differentiation to simplify f(x) into a sum of terms, which directly gives us g(x)=f(x)f′(x). Differentiating g(x) and substituting x=e then yields the result. The value of g′(e) is 2e−2−csc2(e).
The problem asks us to find g′(e) given a function f(x) and the relationship f′(x)=f(x)⋅g(x). The function f(x) is a product and quotient of several functions, making direct differentiation quite cumbersome.
The key insight here is to recognize that the expression g(x)=f(x)f′(x) is precisely the derivative of loge∣f(x)∣. This means we can use logarithmic differentiation to find g(x) efficiently. By taking the natural logarithm of f(x) first, we convert products and quotients into sums and differences, which are much simpler to differentiate.
Here's how we approach the problem:
-
Express g(x) using logarithmic differentiation:
Given f′(x)=f(x)⋅g(x), we can write g(x)=f(x)f′(x).
This expression is the result of differentiating logef(x) with respect to x.
So, our first step is to take the natural logarithm of f(x) and then differentiate it.
We have f(x)=logexe−xsinx.
Taking the natural logarithm on both sides:
logef(x)=loge(logexe−xsinx)
Using the properties of logarithms ($\log(AB/C) = \log A + \log B - \log C$):logef(x)=loge(e−x)+loge(sinx)−loge(logex)
Simplify the first term: $\log_e (e^{-x}) = -x$.logef(x)=−x+loge(sinx)−loge(logex)
- Differentiate to find g(x): Now, differentiate both sides of the equation with respect to x:
dxd(logef(x))=dxd(−x)+dxd(loge(sinx))−dxd(loge(logex))
We know that $\frac{d}{dx} (\log_e f(x)) = \frac{f'(x)}{f(x)}$, which is $g(x)$. Differentiating each term on the right side: * $\frac{d}{dx} (-x) = -1$ * $\frac{d}{dx} (\log_e (\sin x)) = \frac{1}{\sin x} \cdot \cos x = \cot x$ * $\frac{d}{dx} (\log_e (\log_e x)) = \frac{1}{\log_e x} \cdot \frac{1}{x}$ (using the chain rule) Combining these, we get $g(x)$:g(x)=−1+cotx−xlogex1
- Differentiate g(x) to find g′(x): Now we need to find the derivative of g(x):
g′(x)=dxd(−1)+dxd(cotx)−dxd(xlogex1)
* $\frac{d}{dx} (-1) = 0$ * $\frac{d}{dx} (\cot x) = -\csc^2 x$ … -
- TG EAPCET 2024Set eng-2024-05-11-FN1 markMCQQ.If y=sin(log2x)+sin(log2x)+sin(log2x)+…∞, then dxdy= (A) 2x(2y−1)cos(log2x) (B) (2y−1)cos(log2x) (C) x(2y−1)cos(log2x) (D) x(2y−1)sin(log2x)
›Reveal solutionSolution
The infinite sum collapses to a simple equation y=sin(log2x)+y, which forces us to reinterpret the expression as a self-repeating pattern. The correct interpretation is y=sin(log2x)+sin(log2x)+…, leading to y2=sin(log2x)+y, and differentiating gives dxdy=x(2y−1)cos(log2x), so the answer is (C).
The key here is to first understand what the infinite expression actually means. At first glance, it looks like a sum of identical terms: sin(log2x)+sin(log2x)+… to infinity. But that sum would diverge (unless the term is zero), so it cannot be that. Instead, the notation is a classic trick: it means an infinite nested radical, where each radical contains the entire rest of the expression. That is:
y=sin(log2x)+sin(log2x)+sin(log2x)+…
This is a self-similar structure: the whole expression appears again inside itself. That self-reference lets us write a simple algebraic equation for y.
- Write the self-referential equation Since the expression inside the first square root is exactly the same as the whole y, we have:
y=sin(log2x)+y
This is the crucial step — it turns an infinite process into a finite equation.
- Square both sides
y2=sin(log2x)+y
Rearranging:
y2−y=sin(log2x)
- Differentiate implicitly with respect to x Differentiate both sides:
2ydxdy−dxdy=cos(log2x)⋅2x1⋅2
The derivative of sin(log2x) uses the chain rule: derivative of sin is cos, derivative of log2x is 2x1⋅2=x1. So:
- TG EAPCET 2026Set eng-2026-05-09-AN1 markMCQQ.If f(x)=(1+x3)(1+x6)(1+x12)(1+x24), then f′(−1)= (A) 24 (B) 12 (C) 48 (D) 60
›Reveal solutionSolution
At x=−1 the factor (1+x3) vanishes, so only the term where it is differentiated survives: f′(−1)=24 — option (A).
For a product f=f1f2f3f4, the derivative is f′=f1′f2f3f4+f1f2′f3f4+⋯. Every term keeps three of the original factors undifferentiated.
1. Note the vanishing factor. At x=−1, 1+x3=1+(−1)3=0. Any product-rule term that still contains the factor (1+x3) is therefore 0. Only the single term in which (1+x3) is the one being differentiated can be non-zero.
2. Keep the surviving term. …
- TG EAPCET 2024Set eng-2024-05-10-FN1 markMCQQ.If y=cos−1(2x2−6x+56x−2x2−4) then dxdy= (A) 3x−x2−22 (B) 3x−x2−22 (C) 2x2−6x+52 (D) 2x2−6x+52
›Reveal solutionSolution
With t=2x2−6x+4 the argument is t+1−t, and the derivative collapses to 2x2−6x+52.
Write y=cos−1u where
u=2x2−6x+56x−2x2−4=(2x2−6x+4)+1−(2x2−6x+4).
Let t=2x2−6x+4, so u=t+1−t and t+1=2x2−6x+5.
Compute 1−u2.
1−u2=(t+1)2(t+1)2−t2=(t+1)22t+1.
Now 2t+1=2(2x2−6x+4)+1=4x2−12x+9=(2x−3)2, hence
1−u2=t+1∣2x−3∣(t+1>0 always, since its discriminant 36−40<0).
Differentiate u. Since t′=4x−6=2(2x−3), …
🎓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.