If d y d x + e x x 2 − 2 y = x 2 − 2 x x 2 − 2 e 2 x and y 0 = 0 , then the value of y 2 is

If dydx+exx22y=x22xx22e2x and y0=0, then the value of y2 is
  1. -1
  2. 1
  3. 0
  4. e

Solution

Given

dydx+exx22y=x22xx22e2x

It is linear differential equation so,

IF=ex2-2exdx

=ex2ex-2xexdx-2ex  =ex2ex-2xex-ex-2ex

IF=ex2-2xex

Now solution is given by

y×ex2-2xex=ex2-2xex×x2-2xx2-2e2x

=ex2-2xex×x2-2xexx2-2ex

Now let  x2-2xex=t

We get exx2-2x+ex2x-2dx=dt

exx2-2x+2x-2dx=dt 

exx2-2dx=dt

y×ex2-2xex=et×t×dt

y×ex2-2xex=ett-1+c

y×ex2-2xex=ex2-2xexx2-2xex-1+c

Now at x=0  y=0

0×e0=e00xex-1+c

0=-1+c  c=1

Putting the value of c=1 we get the equation as

y×ex2-2xex=ex2-2xexx2-2xex-1+1

Now putting x=2 in equation we get

y×e4-4e2=e4-4e24-4e2-1+1

y×e0=e00e2-1+1

y=-1+1=0

Asked in: JEE Main 2022 (26 Jun Shift 2)

Practice more Differential Equations questions on Aicharya