Differentiating both sides with respect to x, we get,
⇒ y” = ex
Then,
Substituting the values of y’ and y” in the given differential equations, we get,
y” – y’ = ex – ex = RHS.
Therefore, the given function is a solution of the given differential equation.