RankRizz
JEE MAIN 2014 · 19 APR ONLINE+4 / −1MEDIUMTRANSCRIBED

JEE Main 2014 Mathematics question — Linear first-order differential equations

If dydx+ytan⁡x=sin⁡2x\frac{dy}{dx} + y\tan x = \sin 2x and y(0)=1y(0) = 1, then y(π)y(\pi) is equal to:

SOLUTION

The given differential equation is:

dydx+ytan⁡x=sin⁡2x\frac{dy}{dx} + y \tan x = \sin 2x

with the initial condition y(0)=1y(0) = 1. This is a first-order linear differential equation of the form:

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

where P(x)=tan⁡xP(x) = \tan x and Q(x)=sin⁡2xQ(x) = \sin 2x. To solve it, we use an integrating factor (IF). The integrating factor is defined as:

IF=e∫P(x)dx=e∫tan⁡xdx\text{IF} = e^{\int P(x) dx} = e^{\int \tan x dx}

First, compute ∫tan⁡xdx\int \tan x dx:

∫tan⁡xdx=∫sin⁡xcos⁡xdx\int \tan x dx = \int \frac{\sin x}{\cos x} dx

Let u=cos⁡xu = \cos x, then du=−sin⁡xdxdu = -\sin x dx, so:

∫sin⁡xcos⁡xdx=−∫duu=−ln⁡∣u∣+C=−ln⁡∣cos⁡x∣+C\int \frac{\sin x}{\cos x} dx = -\int \frac{du}{u} = -\ln |u| + C = -\ln |\cos x| + C

For the integrating factor, we ignore the constant and take the absolute value appropriately. Thus:

IF=e−ln⁡∣cos⁡x∣=eln⁡(1∣cos⁡x∣)=1∣cos⁡x∣\text{IF} = e^{-\ln |\cos x|} = e^{\ln \left( \frac{1}{|\cos x|} \right)} = \frac{1}{|\cos x|}

Since cos⁡x\cos x can be positive or negative, but for simplicity in solving, we often use sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} and handle the domain. In the interval around 0, cos⁡x>0\cos x > 0, so we can write:

IF=sec⁡x\text{IF} = \sec x

Multiply both sides of the differential equation by the integrating factor:

sec⁡x⋅dydx+sec⁡x⋅ytan⁡x=sec⁡x⋅sin⁡2x\sec x \cdot \frac{dy}{dx} + \sec x \cdot y \tan x = \sec x \cdot \sin 2x

The left-hand side is the derivative of ysec⁡xy \sec x because:

ddx(ysec⁡x)=sec⁡xdydx+ysec⁡xtan⁡x\frac{d}{dx} (y \sec x) = \sec x \frac{dy}{dx} + y \sec x \tan x

which matches the left-hand side. So:

ddx(ysec⁡x)=sec⁡x⋅sin⁡2x\frac{d}{dx} (y \sec x) = \sec x \cdot \sin 2x

Simplify the right-hand side. Since sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2 \sin x \cos x,

sec⁡x⋅sin⁡2x=1cos⁡x⋅2sin⁡xcos⁡x=2sin⁡x\sec x \cdot \sin 2x = \frac{1}{\cos x} \cdot 2 \sin x \cos x = 2 \sin x

Thus:

ddx(ysec⁡x)=2sin⁡x\frac{d}{dx} (y \sec x) = 2 \sin x

Integrate both sides with respect to xx:

∫ddx(ysec⁡x)dx=∫2sin⁡xdx\int \frac{d}{dx} (y \sec x) dx = \int 2 \sin x dx

ysec⁡x=2∫sin⁡xdx=2(−cos⁡x)+C=−2cos⁡x+Cy \sec x = 2 \int \sin x dx = 2 (-\cos x) + C = -2 \cos x + C

where CC is the constant of integration. Solve for yy:

ysec⁡x=−2cos⁡x+Cy \sec x = -2 \cos x + C

Multiply both sides by cos⁡x\cos x:

y=(−2cos⁡x+C)cos⁡x=−2cos⁡2x+Ccos⁡xy = (-2 \cos x + C) \cos x = -2 \cos^2 x + C \cos x

So:

y=Ccos⁡x−2cos⁡2xy = C \cos x - 2 \cos^2 x

Use the initial condition y(0)=1y(0) = 1. When x=0x = 0, cos⁡0=1\cos 0 = 1:

y(0)=C⋅1−2⋅(1)2=C−2y(0) = C \cdot 1 - 2 \cdot (1)^2 = C - 2

Set equal to 1:

C−2=1C - 2 = 1

C=3C = 3

Substitute C=3C = 3 into the solution:

y=3cos⁡x−2cos⁡2xy = 3 \cos x - 2 \cos^2 x

Now evaluate y(π)y(\pi). When x=πx = \pi, cos⁡π=−1\cos \pi = -1:

y(π)=3⋅(−1)−2⋅(−1)2=−3−2⋅1=−3−2=−5y(\pi) = 3 \cdot (-1) - 2 \cdot (-1)^2 = -3 - 2 \cdot 1 = -3 - 2 = -5

Hence, the correct answer is Option D.

Tagged Linear first-order differential equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.

TopicLinear first-order differential equations
TypeMultiple choice