Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2024-25 · Section B · 2 marks

Q23: Derivative of tan⁡−1x\tan^{-1}x with respect to log⁡x\log x⁠, or of (cos⁡x)x(\cos x)^x

The question

(a) Find the derivative of tan⁡−1x\tan^{-1}x with respect to log⁡x\log x⁠; (where x∈(1,∞)x \in (1, \infty)⁠).

OR

(b) Differentiate the following function with respect to x : (cos⁡x)x(\cos x)^x⁠; (where x∈(0,π2))\left(\text{where } x \in \left(0, \dfrac{\pi}{2}\right)\right)⁠.

Exam answer

(a)

Let y=tan⁡−1xy = \tan^{-1}x and z=log⁡xz = \log x⁠.

Why?

To differentiate one function with respect to another, give each one a name. Then differentiate both with respect to the common variable xx⁠.

Then dydx=11+x2\text{Then } \frac{dy}{dx} = \frac{1}{1 + x^2} and dzdx=1x\text{and } \frac{dz}{dx} = \frac1x
Why?

These are standard derivatives:

ddxtan⁡−1x=11+x2ddxlog⁡x=1x\begin{aligned} \frac{d}{dx}\tan^{-1}x &= \frac{1}{1 + x^2} \\ \frac{d}{dx}\log x &= \frac1x \end{aligned}
So, dydz=dydxdzdx=11+x21x=x1+x2\begin{aligned} \text{So, } \frac{dy}{dz} &= \frac{\dfrac{dy}{dx}}{\dfrac{dz}{dx}} = \frac{\dfrac{1}{1 + x^2}}{\dfrac1x} \\ &= \frac{x}{1 + x^2} \end{aligned}
Why?

By the chain rule,

dydx=dydz⋅dzdx\frac{dy}{dx} = \frac{dy}{dz}\cdot\frac{dz}{dx}

Dividing both sides by dzdx\frac{dz}{dx} gives the formula used. This is allowed because 1x≠0\frac1x \ne 0⁠.

Dividing by 1x\frac1x is the same as multiplying by xx⁠.

11+x2÷1x=11+x2×x1=x1+x2\begin{aligned} \frac{1}{1 + x^2} \div \frac1x &= \frac{1}{1 + x^2} \times \frac{x}{1} \\ &= \frac{x}{1 + x^2} \end{aligned}

The derivative of tan⁡−1x\tan^{-1}x w.r.t. log⁡x\log x is x1+x2\dfrac{x}{1 + x^2}⁠.

(b)

Let y=(cos⁡x)xy = (\cos x)^x⁠. Then y=exlog⁡cos⁡xy = e^{x\log\cos x}⁠.

Why?

Here both the base cos⁡x\cos x and the power xx change with xx⁠. Neither the power rule nor the rule for axa^x applies, so we first rewrite the function with base ee⁠.

For a>0a > 0⁠, a=elog⁡aa = e^{\log a}⁠, so

ab=eblog⁡aa^b = e^{b\log a}

On (0,π2)\left(0, \frac{\pi}{2}\right)⁠, cos⁡x>0\cos x > 0⁠, so log⁡cos⁡x\log\cos x is defined.

Differentiating both sides w.r.t. xx⁠,

dydx=exlog⁡cos⁡xddx(xlog⁡cos⁡x)\frac{dy}{dx} = e^{x\log\cos x}\frac{d}{dx}(x\log\cos x)
Why?

Chain rule for the exponential:

ddxeu=eududx\frac{d}{dx}e^u = e^u\frac{du}{dx}

with u=xlog⁡cos⁡xu = x\log\cos x⁠.

⇒dydx=(cos⁡x)x{log⁡cos⁡x⋅ddx(x)+xddx(log⁡cos⁡x)}=(cos⁡x)x{log⁡cos⁡x+x⋅1cos⁡x(−sin⁡x)}\begin{aligned} &\Rightarrow \frac{dy}{dx} \\ &= (\cos x)^x\bigg\{\log\cos x\cdot\frac{d}{dx}(x) \\ &\quad + x\frac{d}{dx}(\log\cos x)\bigg\} \\ &= (\cos x)^x\bigg\{\log\cos x \\ &\quad + x\cdot\frac{1}{\cos x}(-\sin x)\bigg\} \end{aligned}
Why?

exlog⁡cos⁡xe^{x\log\cos x} is (cos⁡x)x(\cos x)^x again. The bracket is a product, so use the product rule:

ddx(uv)=dudxv+udvdx\frac{d}{dx}(uv) = \frac{du}{dx}v + u\frac{dv}{dx}

ddx(x)=1\frac{d}{dx}(x) = 1⁠, and by the chain rule

ddx(log⁡cos⁡x)=1cos⁡x⋅(−sin⁡x)\begin{aligned} &\frac{d}{dx}(\log\cos x) \\ &= \frac{1}{\cos x}\cdot(-\sin x) \end{aligned}

With u=xu = x⁠, v=log⁡cos⁡xv = \log\cos x⁠, u′=1u' = 1⁠, v′=1cos⁡x(−sin⁡x)v' = \frac{1}{\cos x}(-\sin x)⁠:

ddx(xlog⁡cos⁡x)=(1)log⁡cos⁡x+x⋅−sin⁡xcos⁡x\begin{aligned} &\frac{d}{dx}(x\log\cos x) \\ &= (1)\log\cos x + x\cdot\frac{-\sin x}{\cos x} \end{aligned}

Finally sin⁡xcos⁡x=tan⁡x\frac{\sin x}{\cos x} = \tan x⁠, so the second term is −xtan⁡x-x\tan x⁠.

x⋅1cos⁡x(−sin⁡x)=−x⋅sin⁡xcos⁡x=−xtan⁡x\begin{aligned} x\cdot\frac{1}{\cos x}(-\sin x) &= -x\cdot\frac{\sin x}{\cos x} \\ &= -x\tan x \end{aligned}

∴ dydx=(cos⁡x)x\therefore\ \dfrac{dy}{dx} = (\cos x)^x (log⁡cos⁡x−xtan⁡x)(\log\cos x - x\tan x)⁠.

Where this comes from

Chapter 5, Continuity and Differentiability: Derivative w.r.t. a function; logarithmic form.

Question type: (a) Parametric form; (b) Logarithmic differentiation

How to spot it: click to see

(a) Type 8. Parametric form: xx and yy given through tt or θ\theta

Spot it: two equations, one for xx and one for yy⁠, both in the same third letter.

Here: Derivative of tan⁡−1x\tan^{-1}x with respect to log⁡x\log x⁠: both are given through xx⁠, so xx plays the parameter. Divide 11+x2\frac{1}{1 + x^2} by 1x\frac1x to get x1+x2\frac{x}{1 + x^2}⁠.

(b) Type 7. Logarithmic differentiation: xx in the power

Spot it: a power whose exponent contains xx⁠, like xxx^x⁠, xsin⁡xx^{\sin x} or (log⁡x)cos⁡x(\log x)^{\cos x}⁠, or a long product.

Here: xx is the power of cos⁡x\cos x⁠: write (cos⁡x)x=exlog⁡cos⁡x(\cos x)^x = e^{x\log\cos x}⁠, which is the same as taking log, and differentiate xlog⁡cos⁡xx\log\cos x by the product rule.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →