cmajor47
- 53
- 0
Homework Statement
Use the method of separation of variables or an integrating factor to find a particular solution of the differential equation that satisfies the given initial condition.
y'=x-y+2 ; y(0)=4
2. The attempt at a solution
I've used an integrating factor of e^{x} to obtain the following from y'=x-y+2:
\frac{d}{dx}e^{x}y=xe^{x}+2e^{x}
I know that I know have to integrate both sides of the equation. However, this is an issue since the equation contains the term xe^{x}. This book hasn't yet taught integration by parts which is commonly used to integrate xe^{x}. I don't think that separation of variables can be used to solve integrate this either.
Therefore, my question is: is there a way to integrate xe^{x} without using integration by parts?