Find dy/dx if (i) y = (x^x + cosec ² x) (ii) y = e^ ² x (2 ^ -1 √1-x/1+x ) (iii) ( x)^y = ( y)^x (iv) ( x)^y = ( y)^x
Question 1843 marksMedium
Find dxdy if
(i)y=log(xx+cosec2x)
(ii)y=esin2x(2tan−11+x1−x)
(iii)(cosx)y=(cosy)x
(iv)(cosx)y=(siny)x
Solution:
Key idea: Part (i) uses the chain rule for log together with the derivative of xx. Part (ii) first simplifies the inverse tangent with x=cosθ. Parts (iii) and (iv) are implicit: we take logarithms of both sides, differentiate each side with respect to x (treating y as a function of x) and collect the dxdy terms.
Step 1 — Part (i): use the chain rule.
For y=log(xx+cosec2x), the derivative of logf is f1⋅f′.
dxdy=xx+cosec2x1⋅dxd(xx+cosec2x)
Step 2 — Part (i): differentiate the two terms inside.
Taking logs of xx gives xlogx, so its derivative is xx(1+logx). For cosec2x the chain rule gives 2cosecx times the derivative of cosecx.
dxdxx=xx(1+logx)
dxdcosec2x=2cosecx(−cosecxcotx)
dxdcosec2x=−2cosec2xcotx
Putting these into Step 1 gives the derivative.
dxdy=xx+cosec2xxx(1+logx)−2cosec2xcotx
Step 3 — Part (ii): simplify the inverse tangent.
We put x=cosθ with 0<θ<π (so −1<x<1).
We use the half-angle formulas.
1−cosθ=2sin22θ
1+cosθ=2cos22θ
Dividing the first by the second and taking the square root:
1+cosθ1−cosθ=tan22θ
1+cosθ1−cosθ=tan2θ
The square root is +tan2θ because 0<2θ<2π, and this angle is inside the principal range of tan−1.
2tan−11+x1−x=2⋅2θ
2tan−11+x1−x=cos−1x
So y becomes a simple product.
y=esin2xcos−1x
Step 4 — Part (ii): use the product rule.
By the chain rule, the derivative of esin2x is esin2x⋅2sinxcosx; since 2sinxcosx is sin2x, this is esin2xsin2x.
The derivative of cos−1x is −1−x21.
dxdy=esin2xsin2x⋅cos−1x+esin2x(−1−x21)
dxdy=esin2x[sin2xcos−1x−1−x21]
Step 5 — Part (iii): take logarithms.
For (cosx)y=(cosy)x (taken where both cosines are positive), the log brings each power down.
ylogcosx=xlogcosy
Step 6 — Part (iii): differentiate both sides.
On the left, the product rule gives dxdylogcosx+y⋅cosx−sinx. On the right, it gives logcosy+x⋅cosy−sinydxdy.
dxdylogcosx−ytanx=logcosy−xtanydxdy
Step 7 — Part (iii): collect the dxdy terms.
We move every dxdy term to the left and every other term to the right.
dxdy(logcosx+xtany)=logcosy+ytanx
dxdy=xtany+logcosxlogcosy+ytanx
Note: The printed answer has ytany in the numerator; differentiating ylogcosx gives −ytanx, so the term is ytanx, as worked above.
Step 8 — Part (iv): take logarithms.
For (cosx)y=(siny)x (taken where cosx>0 and siny>0), the log brings each power down.
ylogcosx=xlogsiny
Step 9 — Part (iv): differentiate both sides.
The left side is differentiated as in Step 6. On the right, the product rule gives logsiny+x⋅sinycosydxdy.
dxdylogcosx−ytanx=logsiny+xcotydxdy
Step 10 — Part (iv): collect the dxdy terms.
We move every dxdy term to the left and every other term to the right.
dxdy(logcosx−xcoty)=logsiny+ytanx
dxdy=logcosx−xcotylogsiny+ytanx
Therefore, (i) dxdy=xx+cosec2xxx(1+logx)−2cosec2xcotx, (ii) dxdy=esin2x[sin2xcos−1x−1−x21], (iii) dxdy=xtany+logcosxlogcosy+ytanx, (iv) dxdy=logcosx−xcotylogsiny+ytanx.