We have,
y = xex + ex .....(1)
Differentiating both sides of (1) with respect to x, we get
Differentiating both sides of (2) with respect to x, we get
It is the given differential equation.
Thus, y = xex + ex satisfies the given differential equation.
Also, when
And, when
Hence, y = xex + ex is the solution to the given initial value problem.