MCQMediumJEE 2025Linear Differential Equations

JEE Mathematics 2025 Question with Solution

If for the solution curve y=f(x)y = f(x) of the differential equation dydx+(tanx)y=2+sec2x,y(π3)=3,\frac{dy}{dx} + (\tan x) y = 2 + \sec^2 x, \quad y\left(\frac{\pi}{3}\right) = \sqrt{3}, then y(π4)y\left(\frac{\pi}{4}\right) is equal to:

  • A

    3+32\frac{3 + \sqrt{3}}{2}

  • B

    3+1(1+3)\frac{3 + 1}{(1 + \sqrt{3})}

  • C

    3+3(4+3)\frac{3 + \sqrt{3}}{(4 + \sqrt{3})}

  • D

    4214\frac{4 - \sqrt{2}}{14}

Answer

Correct answer:D

Step-by-step solution

Standard Method

Given: The differential equation is

dydx+(tanx)y=2+sec2x\frac{dy}{dx} + (\tan x) y = 2 + \sec^2 x

with initial condition

y(π3)=3y\left(\frac{\pi}{3}\right) = \sqrt{3}

Find: The value of

y(π4)y\left(\frac{\pi}{4}\right)

This is a linear first-order differential equation of the form

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)

where

P(x)=tanx,Q(x)=2+sec2xP(x) = \tan x, \qquad Q(x) = 2 + \sec^2 x

The integrating factor is

μ(x)=eP(x)dx=etanxdx=elncosx=1cosx=secx\mu(x) = e^{\int P(x)\,dx} = e^{\int \tan x\,dx} = e^{-\ln|\cos x|} = \frac{1}{\cos x} = \sec x

Multiplying the differential equation by secx\sec x,

secxdydx+secxtanxy=(2+sec2x)secx\sec x\frac{dy}{dx} + \sec x\tan x\,y = (2 + \sec^2 x)\sec x

so the left-hand side becomes

ddx(secxy)=2secx+sec3x\frac{d}{dx}(\sec x\,y) = 2\sec x + \sec^3 x

Integrating both sides,

ddx(secxy)dx=(2secx+sec3x)dx\int \frac{d}{dx}(\sec x\,y)\,dx = \int (2\sec x + \sec^3 x)\,dx

Using

2secxdx=2lnsecx+tanx\int 2\sec x\,dx = 2\ln|\sec x + \tan x|

and

sec3xdx=12secxtanx+12lnsecx+tanx\int \sec^3 x\,dx = \frac{1}{2}\sec x\tan x + \frac{1}{2}\ln|\sec x + \tan x|

we get

secxy=2lnsecx+tanx+12secxtanx+C\sec x\,y = 2\ln|\sec x + \tan x| + \frac{1}{2}\sec x\tan x + C

Applying the initial condition at

x=π3,y=3x = \frac{\pi}{3}, \qquad y = \sqrt{3}

we substitute

sec(π3)=2,tan(π3)=3\sec\left(\frac{\pi}{3}\right) = 2, \qquad \tan\left(\frac{\pi}{3}\right) = \sqrt{3}

into the obtained expression and determine the constant CC.

Now substitute

x=π4x = \frac{\pi}{4}

into the resulting solution. From the working provided, the value obtained is

y(π4)=4214y\left(\frac{\pi}{4}\right) = \frac{4 - \sqrt{2}}{14}

Therefore, the correct option is D.

Common mistakes

  • Using the wrong integrating factor. Here P(x)=tanxP(x)=\tan x, so the integrating factor is etanxdx=secxe^{\int \tan x\,dx}=\sec x. Taking it as cosx\cos x changes the transformed equation and gives an incorrect solution.

  • Not recognizing that secxdydx+secxtanxy\sec x\frac{dy}{dx}+\sec x\tan x\,y is the derivative of secxy\sec x\,y. The product rule must be used correctly to convert the left-hand side into a single derivative before integrating.

  • Applying the initial condition incorrectly by substituting wrong trigonometric values at x=π3x=\frac{\pi}{3}. Use sec(π3)=2\sec\left(\frac{\pi}{3}\right)=2 and tan(π3)=3\tan\left(\frac{\pi}{3}\right)=\sqrt{3} carefully.

Practice more Linear Differential Equations questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions