QlarIITy

MathematicsJEE Main 2026 · 28 JanuarySingle correct

Let y=y(x)y = y(x) be the solution of the differential equation xdydx−y=x2cot⁡xx\frac{dy}{dx} - y = x^2\cot x, x∈(0,π)x \in (0, \pi). If y(π2)=π2y\left(\frac{\pi}{2}\right) = \frac{\pi}{2}, then 6y(π6)−8y(π4)6y\left(\frac{\pi}{6}\right) - 8y\left(\frac{\pi}{4}\right) is equal to :

  1. Option A: −3π-3\pi
  2. Option B: 3π3\pi
  3. Option C: −π-\pi
  4. Option D: π\pi
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. For xy′−yxy' - y, dividing by x2x^2 gives the exact derivative (yx)′\left(\frac{y}{x}\right)'.

Concept refresher. A linear first-order equation dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), with PP and QQ continuous on an interval, has the integrating factor I(x)=e∫P(x) dxI(x) = e^{\int P(x)\ dx}, and

ddx(y⋅I(x))=Q(x)I(x)\frac{d}{dx}\left(y \cdot I(x)\right) = Q(x)I(x)

so y⋅I(x)=∫Q(x)I(x) dx+Cy \cdot I(x) = \int Q(x)I(x)\ dx + C, where CC is fixed by one given value of yy.

Approach. Divide by xx, use the integrating factor 1x\frac{1}{x}, integrate cot⁡x\cot x, fix the constant with y(π2)y\left(\frac{\pi}{2}\right), then evaluate the two values.

  1. Step 1: Standard form

    Dividing the equation by xx (allowed, since x>0x > 0 on (0,π)(0, \pi)) puts it in linear form:

    dydx−1xy=xcot⁡x\frac{dy}{dx} - \frac{1}{x}y = x\cot x

    so P(x)=−1xP(x) = -\frac{1}{x} and Q(x)=xcot⁡xQ(x) = x\cot x.

  2. Step 2: Integrating factor

    The integrating factor makes the left side a single derivative, and here

    I(x)=e−∫dxx=e−log⁡ex=1xI(x) = e^{-\int \frac{dx}{x}} = e^{-\log_e x} = \frac{1}{x}

    Multiplying the standard form by 1x\frac{1}{x} gives ddx(yx)=cot⁡x\frac{d}{dx}\left(\frac{y}{x}\right) = \cot x.

  3. Step 3: Integrate and fix C

    Integrating, and using sin⁡x>0\sin x > 0 on (0,π)(0, \pi):

    yx=log⁡e(sin⁡x)+C\frac{y}{x} = \log_e(\sin x) + C

    At x=π2x = \frac{\pi}{2}, sin⁡x=1\sin x = 1, so 1=0+C1 = 0 + C and C=1C = 1. Hence y=x(log⁡e(sin⁡x)+1)y = x\left(\log_e(\sin x) + 1\right).

  4. Step 4: Evaluate the expression

    With sin⁡π6=12\sin\frac{\pi}{6} = \frac{1}{2} and sin⁡π4=12\sin\frac{\pi}{4} = \frac{1}{\sqrt{2}}, so that log⁡e12=−12log⁡e2\log_e\frac{1}{\sqrt{2}} = -\frac{1}{2}\log_e 2:

    6y(π6)=π(1−log⁡e2)8y(π4)=2π(1−12log⁡e2)=2π−πlog⁡e2\begin{aligned} 6y\left(\frac{\pi}{6}\right) &= \pi\left(1 - \log_e 2\right) \\[4pt] 8y\left(\frac{\pi}{4}\right) &= 2\pi\left(1 - \frac{1}{2}\log_e 2\right) = 2\pi - \pi\log_e 2 \end{aligned}

    The difference is π−πlog⁡e2−2π+πlog⁡e2=−π\pi - \pi\log_e 2 - 2\pi + \pi\log_e 2 = -\pi.

Answer. (C) −π-\pi

Sanity check. Substituting back: y=xlog⁡e(sin⁡x)+xy = x\log_e(\sin x) + x gives y′=log⁡e(sin⁡x)+xcot⁡x+1y' = \log_e(\sin x) + x\cot x + 1, so xy′−y=x2cot⁡xxy' - y = x^2\cot x, and y(π2)=π2y\left(\frac{\pi}{2}\right) = \frac{\pi}{2}.

Smart method. For y=x(log⁡e(sin⁡x)+C)y = x\left(\log_e(\sin x) + C\right) the logarithm terms cancel for every CC:

6⋅π6log⁡e12−8⋅π4log⁡e12=06 \cdot \frac{\pi}{6}\log_e\frac{1}{2} - 8 \cdot \frac{\pi}{4}\log_e\frac{1}{\sqrt{2}} = 0

So the expression is πC−2πC=−πC\pi C - 2\pi C = -\pi C, and only CC is needed; C=1C = 1 from y(π2)=π2y\left(\frac{\pi}{2}\right) = \frac{\pi}{2}. This works because the weights 66 and 88 were chosen to cancel the logarithms; check that before relying on it.

Why the other options are wrong

  • (A) Every choice of the constant gives 6y(π6)−8y(π4)=−Cπ6y\left(\frac{\pi}{6}\right) - 8y\left(\frac{\pi}{4}\right) = -C\pi, so −3π-3\pi would need C=3C = 3; but y(π2)=π2(0+C)=π2y\left(\frac{\pi}{2}\right) = \frac{\pi}{2}(0 + C) = \frac{\pi}{2} forces C=1C = 1.
  • (B) The value 3π3\pi would need C=−3C = -3 in −Cπ-C\pi, which makes y(π2)=−3π2y\left(\frac{\pi}{2}\right) = -\frac{3\pi}{2}, not π2\frac{\pi}{2}.
  • (D) Subtracting in the reverse order gives (2π−πlog⁡e2)−(π−πlog⁡e2)=π(2\pi - \pi\log_e 2) - (\pi - \pi\log_e 2) = \pi, which is 8y(π4)−6y(π6)8y\left(\frac{\pi}{4}\right) - 6y\left(\frac{\pi}{6}\right), a different expression.

Key takeaway

The trap. Taking the integrating factor as xx, or subtracting the two values in the reverse order, which flips the sign.

How toppers think. They notice that the given weights cancel the logarithms, so the answer depends only on the constant.

Remember. For dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), ye∫P dx=∫Qe∫P dx dx+Cye^{\int P\ dx} = \int Qe^{\int P\ dx}\ dx + C.

More on Linear Differential Equations