Question
Question: If \(xdy = ydx + {y^2}dy\) , \(y > 0\) and \(y\left( 1 \right) = 1\) , then what is \(y\left( { - 3}...
If xdy=ydx+y2dy , y>0 and y(1)=1 , then what is y(−3) equal to?
A.3 only
B.-1 only
C.Both -1 and 3
D.Neither -1 nor 3
Solution
We can rearrange the differential equation and simplify it using quotient rule of differentiation. Then we can find the solution of the differential equation by integration. We can find the value of the constant of integration using the initial conditions. Then we can substitute the value of x and solve for y. We get the required answer by applying the condition y>0 .
Complete step-by-step answer:
We have the differential equation xdy=ydx+y2dy
On rearranging, we get,
xdy−ydx=y2dy
Now we can divide both sides of the equation with y2dx .
⇒y2xdxdy−y=dxdy .
Now we can multiply both the sides with -1.
⇒y2y−xdxdy=−dxdy
We know that by quotient rule of derivatives, dxd(yx)=y2y−xdxdy . So, the differential equation will become
⇒dxd(yx)=−dxdy
We can cancel the term dx from both sides.
⇒d(yx)=−dy
On integrating on both sides, we get,
⇒∫d(yx)=−∫dy+C
⇒yx=−y+C … (1)
Now we can apply the initial condition y(1)=1 .
⇒11=−1+C
On rearranging, we get,
⇒C=1+1
⇒C=2
On substituting the value of C in the equation, we get,
⇒yx=−y+2
We can multiply throughout with y.
⇒x=−y2+2y
Now we need to find the value of y when x=−3 . On substituting, we get,
⇒−3=−y2+2y
On rearranging, we get,
⇒y2−2y−3=0
Now we have a quadratic equation. We can solve it for getting the value of y. For solving, we can split the middle term such that its product gives -3
⇒y2−3y+y−3=0
Now we can take the common factors from the 1st 2 and last 2 terms.
⇒y(y−3)+(y−3)=0
On simplification, we get,
⇒(y−3)(y+1)=0
For the equation to be 0, either (y+1) or (y−3) must be equal to 0.
y+1=0⇒y=−1
y−3=0⇒y=3
It is given in the question that y>0 . So, we can reject y=−1 .
Therefore, the required solution is y=3
So, the correct answer is option A.
Note: An alternate solution to this problem is given by,
It is given that y>0 . So, -1 cannot be a solution. Therefore, we can reject options B and C.
We have the differential equation xdy=ydx+y2dy
On rearranging, we get,
xdy−ydx=y2dy
Now we can divide both sides of the equation with y2dx.
⇒y2xdxdy−y=dxdy .
Now we can multiply both the sides with -1.
⇒y2y−xdxdy=−dxdy
We know that by quotient rule of derivatives, dxd(yx)=y2y−xdxdy .
⇒dxd(yx)=−dxdy
We can cancel the term dx from both sides.
⇒d(yx)=−dy
On integrating on both sides, we get,
⇒∫d(yx)=−∫dy+C
⇒yx=−y+C … (1)
Now we can apply the initial condition y(1)=1.
⇒11=−1+C
On rearranging, we get,
⇒C=1+1
⇒C=2
On substituting the value of C in the equation, we get,
⇒yx=−y+2
⇒x=−y2+2y
Now we can check whether y=3,x=−3 is a solution.
On substituting, we get,
⇒x=−(3)2+2(3)
⇒x=−9+6=−3
Therefore, y=3 is the only option which is correct.