MCQMediumJEE 2025Linear Differential Equations

JEE Mathematics 2025 Question with Solution

Let y=y(x)y = y(x) be the solution of the differential equation dydx+2ysec2x=2sec2x+3tanxsec2x\frac{dy}{dx} + 2y \sec^2 x = 2 \sec^2 x + 3 \tan x \sec^2 x such that y(0)=54y(0) = \frac{5}{4}. Then 12(y(π4)e2)12 \left( y \left( \frac{\pi}{4} \right) - e^2 \right) is equal to:

  • A

    2121

  • B

    2222

  • C

    2020

  • D

    2525

Answer

Correct answer:A

Step-by-step solution

Standard Method

Given: dydx+2ysec2x=2sec2x+3tanxsec2x\frac{dy}{dx} + 2y \sec^2 x = 2 \sec^2 x + 3 \tan x \sec^2 x and y(0)=54y(0)=\frac{5}{4}.

Find: 12(y(π4)e2)12\left(y\left(\frac{\pi}{4}\right)-e^{-2}\right).

This is a first-order linear differential equation of the form y+P(x)y=Q(x)y' + P(x)y = Q(x). The integrating factor is

μ(x)=eP(x)dx=e2sec2xdx=e2tanx\mu(x)=e^{\int P(x)\,dx}=e^{\int 2\sec^2 x\,dx}=e^{2\tan x}

Multiplying the equation by the integrating factor,

ddx(ye2tanx)=e2tanx(2sec2x+3tanxsec2x)\frac{d}{dx}\left(y e^{2\tan x}\right)=e^{2\tan x}\left(2\sec^2 x+3\tan x\sec^2 x\right)

Now use the substitution u=tanxu=\tan x, so that du=sec2xdxdu=\sec^2 x\,dx. Then

e2tanx(2sec2x+3tanxsec2x)dx=e2u(2+3u)du\int e^{2\tan x}\left(2\sec^2 x+3\tan x\sec^2 x\right)dx=\int e^{2u}(2+3u)\,du

From the given working,

e2u(2+3u)du=e2u(3u2+14)+C\int e^{2u}(2+3u)\,du=e^{2u}\left(\frac{3u}{2}+\frac{1}{4}\right)+C

Hence,

ye2tanx=e2tanx(32tanx+14)+Cy e^{2\tan x}=e^{2\tan x}\left(\frac{3}{2}\tan x+\frac{1}{4}\right)+C

So,

y=32tanx+14+Ce2tanxy=\frac{3}{2}\tan x+\frac{1}{4}+C e^{-2\tan x}

Using the initial condition y(0)=54y(0)=\frac{5}{4} and tan0=0\tan 0=0,

54=14+C\frac{5}{4}=\frac{1}{4}+C

Therefore,

C=1C=1

and

y(x)=32tanx+14+e2tanxy(x)=\frac{3}{2}\tan x+\frac{1}{4}+e^{-2\tan x}

Now at x=π4x=\frac{\pi}{4}, we have tanπ4=1\tan \frac{\pi}{4}=1, so

y(π4)=32+14+e2=74+e2y\left(\frac{\pi}{4}\right)=\frac{3}{2}+\frac{1}{4}+e^{-2}=\frac{7}{4}+e^{-2}

Thus,

12(y(π4)e2)=12(74)=2112\left(y\left(\frac{\pi}{4}\right)-e^{-2}\right)=12\left(\frac{7}{4}\right)=21

Therefore, the correct option is A.

Note: The solution evaluates 12(y(π4)e2)12\left(y\left(\frac{\pi}{4}\right)-e^{-2}\right), while the given question text shows e2e^2. The answer follows the solution working.

Integrating Factor Expansion

Given: dydx+2ysec2x=2sec2x+3tanxsec2x\frac{dy}{dx} + 2y \sec^2 x = 2 \sec^2 x + 3 \tan x \sec^2 x.

Find: the required value after solving for y(x)y(x).

Identify

P(x)=2sec2x,Q(x)=2sec2x+3tanxsec2xP(x)=2\sec^2 x, \qquad Q(x)=2\sec^2 x + 3\tan x\sec^2 x

So the integrating factor is

μ(x)=e2sec2xdx=e2tanx\mu(x)=e^{\int 2\sec^2 x\,dx}=e^{2\tan x}

After multiplying,

e2tanxdydx+2sec2xye2tanx=e2tanx(2sec2x+3tanxsec2x)e^{2\tan x}\frac{dy}{dx}+2\sec^2 x\, y e^{2\tan x}=e^{2\tan x}\left(2\sec^2 x+3\tan x\sec^2 x\right)

The left-hand side is

ddx(ye2tanx)\frac{d}{dx}\left(y e^{2\tan x}\right)

Hence,

ddx(ye2tanx)=e2tanx(2sec2x+3tanxsec2x)\frac{d}{dx}\left(y e^{2\tan x}\right)=e^{2\tan x}\left(2\sec^2 x+3\tan x\sec^2 x\right)

Integrating both sides,

ye2tanx=e2tanx(2sec2x+3tanxsec2x)dx+Cy e^{2\tan x}=\int e^{2\tan x}\left(2\sec^2 x+3\tan x\sec^2 x\right)dx + C

Put u=tanxu=\tan x and du=sec2xdxdu=\sec^2 x\,dx. Then the integral becomes

e2u(2+3u)du\int e^{2u}(2+3u)\,du

Using the extracted result,

e2u(2+3u)du=e2u(3u2+14)+C\int e^{2u}(2+3u)\,du=e^{2u}\left(\frac{3u}{2}+\frac{1}{4}\right)+C

Substituting back u=tanxu=\tan x,

ye2tanx=e2tanx(32tanx+14)+Cy e^{2\tan x}=e^{2\tan x}\left(\frac{3}{2}\tan x+\frac{1}{4}\right)+C

Divide by e2tanxe^{2\tan x}:

y=32tanx+14+Ce2tanxy=\frac{3}{2}\tan x+\frac{1}{4}+C e^{-2\tan x}

Now apply y(0)=54y(0)=\frac{5}{4}:

54=32tan0+14+Ce0=14+C\frac{5}{4}=\frac{3}{2}\tan 0+\frac{1}{4}+C e^0=\frac{1}{4}+C

So C=1C=1. Therefore,

y(x)=32tanx+14+e2tanxy(x)=\frac{3}{2}\tan x+\frac{1}{4}+e^{-2\tan x}

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

y(π4)=32(1)+14+e2=74+e2y\left(\frac{\pi}{4}\right)=\frac{3}{2}(1)+\frac{1}{4}+e^{-2}=\frac{7}{4}+e^{-2}

Hence,

12(y(π4)e2)=1274=2112\left(y\left(\frac{\pi}{4}\right)-e^{-2}\right)=12\cdot \frac{7}{4}=21

Therefore, the required value is 2121, so the correct option is A.

Common mistakes

  • Using the integrating factor incorrectly. The coefficient of yy is 2sec2x2\sec^2 x, so the integrating factor is e2sec2xdx=e2tanxe^{\int 2\sec^2 x\,dx}=e^{2\tan x}, not e2xe^{2x}. Always integrate the full coefficient of yy first.

  • Making an error in the substitution u=tanxu=\tan x. Since du=sec2xdxdu=\sec^2 x\,dx, the entire factor sec2xdx\sec^2 x\,dx must be replaced together. Dropping this factor gives a wrong integral.

  • Applying the initial condition before solving for the general solution. First obtain y=32tanx+14+Ce2tanxy=\frac{3}{2}\tan x+\frac{1}{4}+C e^{-2\tan x}, then use y(0)=54y(0)=\frac{5}{4} to determine CC.

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