Question
Question: Solve the differential equation \(\left( 1+{{x}^{2}} \right)\dfrac{dy}{dx}+y={{e}^{{{\tan }^{-1}}x}}...
Solve the differential equation (1+x2)dxdy+y=etan−1x.
Solution
First convert the equation to the form dxdy+p(x)y=g(x) and find the integration factor of the differential equation using IF=e∫p(x)dx . Then the solution of the differential equation is y(IF)=∫(IF)g(x)dx . just solve the integral on the right-hand side of the equation and report the answer. To solve integral, the method of substitution is to be used, by taking t=tan−1x.
Complete step by step answer:
Let us start the solution to the above question by converting the equation to the form dxdy+p(x)y=g(x) .
(1+x2)dxdy+y=etan−1x
⇒dxdy+1+x2y=1+x2etan−1x
Now, we know that the integration factor of the differential equation dxdy+p(x)y=g(x) is IF=e∫p(x)dx . For our equation p(x)=1+x21 . So, the IF of our differential equation is:
IF=e∫1+x2dx=etan−1x
So, the solution to the differential equation dxdy+p(x)y=g(x) is: y(IF)=∫(IF)g(x)dx .
So, the solution to our differential equation is:
yetan−1x=∫etan−1x×1+x2etan−1xdx
⇒yetan−1x=∫1+x2e2tan−1xdx
Now, to solve the integral, we will let tan−1x to be t.
t=tan−1x
Now, we will differentiate both sides of the equation. On doing so, we get
dxdt=dxd(tan−1x)
⇒dxdt=1+x21
⇒dt=1+x2dx
Now, we will substitute t and dt in our integral. On doing so, we get
yetan−1x=∫e2tdt
Now, we will use the identity that ∫ekxdx=kekx+c , where k is constant.
yetan−1x=2e2t+c
Now, we will again substitute the value of t according to our assumption. On doing so, we get
yetan−1x=2e2tan−1x+c
Hence, the answer to the above question is yetan−1x=2e2tan−1x+c.
Note: Remember that integrating factor and the above used method is only valid for the differential equations which can be written in the form of dxdy+p(x)y=g(x) . Also, don’t forget the constant of integration or to substitute the assumed variables while reporting the final answer. Don’t make the mistake and try to substitute t=1+x21 to solve the integral, as it won’t give any useful results.