The given differential equation is
(1+x2)dxdy+2xy=1+x21;y=0 when x=1
Dividing every term by (1+x2) to make the coefficient of
dxdy unity,
dxdy+1+x22xy=(1+x2)21
Linear Differential Equation
Comparing with
dxdy+Py=Q,
we have
P=1+x22x,Q=(1+x2)21
Integrating Factor
∫Pdx=∫1+x22xdx=∫f(x)f′(x)dx=logf(x)=log(1+x2)
I.F.=e∫Pdx=elog(1+x2)=1+x2
General Solution
y(I.F.)=∫Q(I.F.)dx+c
⇒y(1+x2)=∫(1+x2)21(1+x2)dx+c
⇒y(1+x2)=∫x2+11dx+c
⇒y(1+x2)=tan−1x+c(i)
To Find c
Given
y=0 when x=1
Putting y=0 and x=1 in (i),
0=tan−11+c
0=4π+c(∵tan4π=1)
⇒c=−4π
Particular Solution
Putting c=−4π in (i),
y(1+x2)=tan−1x−4π
which is the required particular solution.