The general solution of the differential equation dydx+2xy=y is (where c is a constant of integration)
A
|y|=cex−x2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
y=cex2−x
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
y=ce|x|
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
|y|=ce−x2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A|y|=cex−x2 dydx+2xy=y ⇒dydx=y(1−2x) ⇒dyy=(1−2x)dx
on integrating it, we get ⇒ln|y|=x−x2+c1 ⇒|y|=ex−x2ec1=cex−x2 where c=ec1 ⇒|y|=cex−x2 is the required solution.