Question
Question: $(1+x^2)(\frac{dy}{dx})+y=e^{\tan^{-1}x}$...
(1+x2)(dxdy)+y=etan−1x

The solution to the differential equation is:
y=21etan−1x+Ce−tan−1x
Solution
The given differential equation is a first-order linear differential equation.
-
Rewrite the equation in the standard form dxdy+P(x)y=Q(x) by dividing by (1+x2).
-
Identify P(x)=1+x21 and Q(x)=1+x2etan−1x.
-
Calculate the integrating factor IF=e∫P(x)dx=e∫1+x21dx=etan−1x.
-
Apply the general solution formula y⋅(IF)=∫Q(x)⋅(IF)dx+C.
-
Substitute the expressions for Q(x) and IF into the formula: y⋅etan−1x=∫1+x2etan−1x⋅etan−1xdx+C.
-
Simplify the integral to ∫1+x2(etan−1x)2dx.
-
Use substitution u=tan−1x, so du=1+x21dx. The integral becomes ∫e2udu=21e2u.
-
Substitute back u=tan−1x to get 21e2tan−1x.
-
Equate y⋅etan−1x=21e2tan−1x+C.
-
Solve for y by dividing by etan−1x, yielding y=21etan−1x+Ce−tan−1x.