Inactive Tutor answered 08/07/14
Tutor
New to Wyzant
Hi Sun,
The differential equation is in it's standard form:
y'+p(x)y=q(x)
The general solution of a first order linear differential equation is given by:
y = (∫u(x)q(x) dx + C)/u(x)
where u(x) is the integrating factor:
u(x) = e∫p(x) dx
For this problem, p(x) = 2x/(1+x2) and q(x) = e-x/(1+x2)
So, our integrating factor is
u(x) = e∫2x/(1+x^2) dx
= eln(1+x^2)
= 1+x2
Plugging this into our general solution yields
y = ( ∫(1+x2)*e-x/(1+x2) dx + C )/(1+x2)
= ( ∫e-x dx +C )/(1+x2)
= (-e-x+C)/(1+x2)