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

Q22: If y=log⁡tan⁡(π4+x2)y = \log\tan\left(\frac{\pi}{4} + \frac{x}{2}\right)⁠, prove dydx−sec⁡x=0\frac{dy}{dx} - \sec x = 0

The question

If y=log⁡tan⁡(π4+x2)y = \log\tan\left(\dfrac{\pi}{4} + \dfrac{x}{2}\right)⁠, then prove that dydx−sec⁡x=0\dfrac{dy}{dx} - \sec x = 0

Exam answer

y=log⁡tan⁡(π4+x2)y = \log\tan\left(\frac{\pi}{4} + \frac{x}{2}\right)

Differentiating with respect to xx (chain rule),

dydx=1tan⁡(π4+x2)⋅sec⁡2(π4+x2)⋅12\begin{aligned} \frac{dy}{dx} &= \frac{1}{\tan\left(\frac{\pi}{4} + \frac{x}{2}\right)} \\ &\quad\cdot\sec^2\left(\frac{\pi}{4} + \frac{x}{2}\right)\cdot\frac12 \end{aligned}
Why?

yy is a function inside a function inside a function: log of tan of (π4+x2)\left(\frac{\pi}{4} + \frac{x}{2}\right)⁠. The chain rule differentiates one layer at a time, from the outside in, and multiplies the results:

ddxlog⁡u=1u⋅dudxddxtan⁡w=sec⁡2w⋅dwdx\begin{aligned} \frac{d}{dx}\log u &= \frac{1}{u}\cdot\frac{du}{dx} \\ \frac{d}{dx}\tan w &= \sec^2w\cdot\frac{dw}{dx} \end{aligned}

The innermost layer gives ddx(π4+x2)=12\frac{d}{dx}\left(\frac{\pi}{4} + \frac{x}{2}\right) = \frac12⁠, since π4\frac{\pi}{4} is a constant.

dydx=cos⁡(π4+x2)sin⁡(π4+x2)⋅1cos⁡2(π4+x2)⋅12=12sin⁡(π4+x2)cos⁡(π4+x2)\begin{aligned} \frac{dy}{dx} &= \frac{\cos\left(\frac{\pi}{4} + \frac{x}{2}\right)}{\sin\left(\frac{\pi}{4} + \frac{x}{2}\right)} \\ &\quad\cdot\frac{1}{\cos^2\left(\frac{\pi}{4} + \frac{x}{2}\right)}\cdot\frac12 \\ &= \frac{1}{2\sin\left(\frac{\pi}{4} + \frac{x}{2}\right)\cos\left(\frac{\pi}{4} + \frac{x}{2}\right)} \end{aligned}
Why?

Write everything in sines and cosines:

1tan⁡A=cos⁡Asin⁡A,sec⁡2A=1cos⁡2A\frac{1}{\tan A} = \frac{\cos A}{\sin A},\quad \sec^2A = \frac{1}{\cos^2A}

One cos⁡A\cos A on the top cancels one of the two on the bottom, leaving sin⁡Acos⁡A\sin A\cos A with the 2 from 12\frac12⁠.

With A=π4+x2A = \frac{\pi}{4} + \frac{x}{2}⁠, multiply the three factors:

cos⁡Asin⁡A⋅1cos⁡2A⋅12=cos⁡A2sin⁡Acos⁡2A=cos⁡A2sin⁡Acos⁡Acos⁡A=12sin⁡Acos⁡A\begin{aligned} &\frac{\cos A}{\sin A}\cdot\frac{1}{\cos^2A}\cdot\frac12 \\ &= \frac{\cos A}{2\sin A\cos^2A} \\ &= \frac{\cos A}{2\sin A\cos A\cos A} \\ &= \frac{1}{2\sin A\cos A} \end{aligned}

Using 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta = \sin 2\theta⁠,

dydx=1sin⁡(π2+x)=1cos⁡x=sec⁡x\begin{aligned} \frac{dy}{dx} &= \frac{1}{\sin\left(\frac{\pi}{2} + x\right)} \\ &= \frac{1}{\cos x} = \sec x \end{aligned}
Why?

Here θ=π4+x2\theta = \frac{\pi}{4} + \frac{x}{2}⁠, so 2θ=π2+x2\theta = \frac{\pi}{2} + x⁠.

2θ=2(π4+x2)=2π4+2x2=π2+x\begin{aligned} 2\theta &= 2\left(\frac{\pi}{4} + \frac{x}{2}\right) \\ &= \frac{2\pi}{4} + \frac{2x}{2} = \frac{\pi}{2} + x \end{aligned}

Then the allied-angle rule sin⁡(π2+x)=cos⁡x\sin\left(\frac{\pi}{2} + x\right) = \cos x turns the denominator into cos⁡x\cos x⁠, and 1cos⁡x\frac{1}{\cos x} is sec⁡x\sec x by definition.

∴ dydx−sec⁡x=0\therefore\ \dfrac{dy}{dx} - \sec x = 0⁠. Hence proved.

Where this comes from

Chapter 5, Continuity and Differentiability: Derivative of a composite function (chain rule).

Question type: The chain rule

How to spot it: click to see

Type 4. The chain rule: a function inside a function

Spot it: something other than a plain xx inside sin⁡\sin⁠, cos⁡\cos⁠, log⁡\log⁠, ee or a power, like sin⁡(x2+5)\sin(x^2 + 5) or ecos⁡xe^{\cos x}⁠.

Here: Three layers: log⁡\log of tan⁡\tan of π4+x2\frac\pi4 + \frac x2⁠. Differentiate outside in, 1tan⁡(…)⋅sec⁡2(…)⋅12\frac{1}{\tan(\ldots)}\cdot\sec^2(\ldots)\cdot\frac12⁠, then use 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta = \sin 2\theta to reach sec⁡x\sec x⁠.

Found an error?

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