Find the general solution of the differential equation:
Previous Year Questions · Question 25 of 35
Find the general solution of the differential equation: dy/dx = ax + by
Given
[ \frac{dy}{dx} = ax + by ]
Rewrite the equation in standard linear form:
[ \frac{dy}{dx} - by = ax. ]
The integrating factor is
[ \mu(x)=e^{\int -b,dx}=e^{-bx}. ]
Multiplying both sides by (e^{-bx}),
[ e^{-bx}\frac{dy}{dx}-be^{-bx}yaxe^{-bx}. ]
The left-hand side is
[ \frac{d}{dx}\left(ye^{-bx}\right)axe^{-bx}. ]
Integrating both sides,
[ ye^{-bx}a\int xe^{-bx},dx + C. ]
Using integration by parts,
[ \int xe^{-bx},dx-\frac{x}{b}e^{-bx} -\frac{1}{b^2}e^{-bx}. ]
Therefore,
[ ye^{-bx}a\left( -\frac{x}{b}e^{-bx} -\frac{1}{b^2}e^{-bx} \right)
- C. ]
Multiplying through by (e^{bx}),
[ yCe^{bx} -\frac{a}{b}x -\frac{a}{b^2}. ]
Hence, the general solution is
[ \boxed{ y = Ce^{bx} - \frac{a}{b}x - \frac{a}{b^2} } \qquad (b \ne 0). ]
For the special case (b=0),
[ \frac{dy}{dx}=ax, ]
so
[ y=\int ax,dx\frac{a}{2}x^2+C. ]
Thus,
[ \boxed{ y=\frac{a}{2}x^2+C } \qquad (b=0). ]
