Question
Question: The solution of the differential equation \[x\dfrac{dy}{dx}+2y={{x}^{2}}\left( x\ne 0 \right)\] with...
The solution of the differential equation xdxdy+2y=x2(x=0) with y(1)=1, is:
(a)y=5x3+5x21
(b)y=54x3+5x21
(c)y=43x2+4x21
(d)y=4x2+4x23
Solution
We are given the differential equation as xdxdy+2y=x2. We will convert it into a linear form dxdy+Py=Q(x) and then find the integrating factor using I.F=e∫Pdx. Once we have our integrating factor, we will find the solution using y×IF=∫(Q×IF)dx+C. We will put the value of Q and IF and solve for y which is our required solution.
Complete step-by-step answer:
We are given the differential equation as xdxdy+2y=x2. First, we will convert our differential equation into the linear form. We have
xdxdy+2y=x2
Dividing both the sides by x, we get,
⇒dxdy+x2y=x
So, we get our linear form. So comparing with dxdy+Py=Q, we get, P=x2 and Q = x.
Now, to solve further we will find the integrating factor. The integrating factor is given as
I.F=e∫Pdx
As, P=x2, so we get,
⇒I.F=e∫x2dx
As, ∫x1dx=logx, so we get,
⇒IF=e2logx
As, nlogx=logxn, so we get,
⇒IF=elogx2
Now, we know that, elogx=x,elogx2=x2, so we get,
⇒IF=x2
Now, we know the solution is given as,
y×IF=∫(Q×IF)dx+C
As, IF=x2,Q=x, so we get,
⇒yx2=∫(x×x2)dx
⇒yx2=∫x3dx
As ∫xndx=nxn+1, so,
⇒yx2=4x4+C
Dividing both the sides by x2, we get,
⇒y=4x2+x2C
Now, we have y(1) as 1, i.e y (1) = 1. So, putting x = 1 and y = 1, we get,
⇒1=412+12C
⇒1=41+1C
⇒1=41+C
Solving for C, we get,
⇒C=1−41=43
Now, we get, C=43.
So, putting it in the value of y, we get,
⇒y=4x2+4x23
So, the correct answer is “Option d”.
Note: Remember that while finding the integrating factor, we apply the differentiation. First, we integrate P with respect to x and then solve it over the exponential. As we do that we have P as x2. So,
∫x2dx=2∫x1dx
=2logx
Then we apply e∫x2dx=e2logx. Also, nlogx=logxn. So, we get, elogx2 and then we simplify and get IF as x2. So, we do it by part by part so that no errors occur.