-2.2.4 find general solution xy'+2y=e^x

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
$\textsf{find the general solution}$
$$xy'+2y=e^x$$
$\textsf{divide thru by x}$
$$y' +\frac{2}{x}y=\frac{e^x}{x}$$
$\textsf{Find u(x)}$
$$\displaystyle u(x)=\exp\int\frac{2}{x} \, dx=e^{\ln x^2}=x^2$$
$\textsf{so far anyway..}$
 
Last edited:
Physics news on Phys.org
karush said:
$\textsf{find the general solution}$
$$xy'+2y=e^x$$
$\textsf{divide thru by x}$
$$y' +\frac{2}{x}y=\frac{e^x}{x}$$
$\textsf{Find u(x)}$
$$\displaystyle u(x)=\exp\int\frac{2}{x} \, dx=e^{\ln x^2}=x^2$$
$\textsf{multiply thru with $x^2$}$
$x^2 y' +2xy=xe^x$
$(x^2 y)'=xe^x$
$\textsf{integrate}$
$\displaystyle x^2 y=\int xe^x \, dx =e^x(x-1)+c$
$\textsf{divide thru by $x^2$}$
$\displaystyle y=\frac{e^x}{x}-\frac{e^x}{x^2}+\frac{c}{x^2}$
hopefully