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+3(tan2x)y+3y=sec2x\frac{dy}{dx} + 3(\tan^2 x) y + 3y = \sec^2 x, with y(0)=13+e3y(0) = \frac{1}{3} + e^3. Then y(π4)y\left(\frac{\pi}{4}\right) is equal to

  • A

    23\frac{2}{3}

  • B

    43\frac{4}{3}

  • C

    43+e3\frac{4}{3} + e^3

  • D

    23+e3\frac{2}{3} + e^3

Answer

Correct answer:B

Step-by-step solution

Standard Method

Given:

  • dydx+3(tan2x)y+3y=sec2x\frac{dy}{dx} + 3(\tan^2 x) y + 3y = \sec^2 x
  • y(0)=13+e3y(0) = \frac{1}{3} + e^3

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

First rewrite the differential equation using the identity tan2x+1=sec2x\tan^2 x + 1 = \sec^2 x:

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

So,

dydx+3sec2xy=sec2x\frac{dy}{dx} + 3\sec^2 x \cdot y = \sec^2 x

This is a linear differential equation of the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), where P(x)=3sec2xP(x) = 3\sec^2 x and Q(x)=sec2xQ(x) = \sec^2 x.

The integrating factor is

IF=eP(x)dx=e3sec2xdx=e3tanxIF = e^{\int P(x) \, dx} = e^{\int 3\sec^2 x \, dx} = e^{3\tan x}

Using the standard formula,

yIF=Q(x)IFdx+cy \cdot IF = \int Q(x) \cdot IF \, dx + c

Hence,

ye3tanx=sec2xe3tanxdx+cy \cdot e^{3\tan x} = \int \sec^2 x \cdot e^{3\tan x} \, dx + c

Let

u=3tanxu = 3\tan x

Then

du=3sec2xdxdu = 3\sec^2 x \, dx

so

sec2xdx=13du\sec^2 x \, dx = \frac{1}{3}du

Therefore,

ye3tanx=eu13du+c=13eu+cy \cdot e^{3\tan x} = \int e^u \cdot \frac{1}{3} \, du + c = \frac{1}{3}e^u + c

Substituting back,

ye3tanx=13e3tanx+cy \cdot e^{3\tan x} = \frac{1}{3}e^{3\tan x} + c

Now use the initial condition y(0)=13+e3y(0) = \frac{1}{3} + e^3. Since tan0=0\tan 0 = 0,

(13+e3)e0=13e0+c\left(\frac{1}{3} + e^3\right)e^{0} = \frac{1}{3}e^{0} + c

So,

13+e3=13+c\frac{1}{3} + e^3 = \frac{1}{3} + c

which gives

c=e3c = e^3

Thus the particular solution is

ye3tanx=13e3tanx+e3y \cdot e^{3\tan x} = \frac{1}{3}e^{3\tan x} + e^3

Now substitute x=π4x = \frac{\pi}{4}. Since tan(π4)=1\tan\left(\frac{\pi}{4}\right) = 1,

ye3=13e3+e3y \cdot e^3 = \frac{1}{3}e^3 + e^3

Dividing by e3e^3,

y=13+1=43y = \frac{1}{3} + 1 = \frac{4}{3}

Therefore, y(π4)=43y\left(\frac{\pi}{4}\right) = \frac{4}{3}, so the correct option is B.

Equivalent Simplified Form

Given:

  • dydx+3(tan2x)y+3y=sec2x\frac{dy}{dx} + 3(\tan^2 x)y + 3y = \sec^2 x
  • y(0)=13+e3y(0) = \frac{1}{3} + e^3

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

From the worked solution,

ye3tanx=e3tanx3+Cy \cdot e^{3\tan x} = \frac{e^{3\tan x}}{3} + C

Dividing throughout by e3tanxe^{3\tan x} gives

y=13+Ce3tanxy = \frac{1}{3} + Ce^{-3\tan x}

Using y(0)=13+e3y(0) = \frac{1}{3} + e^3 and tan0=0\tan 0 = 0,

13+e3=13+Ce0\frac{1}{3} + e^3 = \frac{1}{3} + Ce^0

Hence,

C=e3C = e^3

So the particular solution becomes

y=13+e3e3tanxy = \frac{1}{3} + e^3 e^{-3\tan x}

Now put x=π4x = \frac{\pi}{4}. Since tan(π4)=1\tan\left(\frac{\pi}{4}\right) = 1,

y(π4)=13+e3e3=13+1=43y\left(\frac{\pi}{4}\right) = \frac{1}{3} + e^3 e^{-3} = \frac{1}{3} + 1 = \frac{4}{3}

Therefore, the correct option is B.

Common mistakes

  • Using the integrating factor incorrectly by taking IF=esec2xdxIF = e^{\int \sec^2 x \, dx} instead of e3sec2xdxe^{\int 3\sec^2 x \, dx}. This ignores the coefficient 33 in P(x)P(x). Always identify P(x)P(x) exactly before computing the integrating factor.

  • Not simplifying 3tan2x+33\tan^2 x + 3 as 3(tan2x+1)=3sec2x3(\tan^2 x + 1) = 3\sec^2 x. This trigonometric identity is essential for converting the equation into a standard linear form. Use tan2x+1=sec2x\tan^2 x + 1 = \sec^2 x at the start.

  • Making an error in substitution while evaluating sec2xe3tanxdx\int \sec^2 x \, e^{3\tan x} \, dx. If u=3tanxu = 3\tan x, then du=3sec2xdxdu = 3\sec^2 x \, dx, so sec2xdx=13du\sec^2 x \, dx = \frac{1}{3}du. Missing the factor 13\frac{1}{3} leads to a wrong constant term.

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