To determine whether the given function is a solution of the given differential equation, we can find the derivative of the function and check if it satisfies the equation.

To find the derivative of `y = x^2e^x` , use the product rule:

`(fg)' = f'g + fg'`

Here, `f = x^2` and `f' = 2x` , and `g = e^x ` and `g' = e^x` .

So `y' = 2xe^x + x^2e^x = x(2 + x)e^x` .

The left-hand side of the given equation will then be

`xy' - 2y =2x^2e^x + x^3e^x- 2x^2e^x = x^3e^x` . This is exactly the same as the right-hand side of the given equation, which means `y(x) = x^2e^x` is a solution.

The function `y(x) = x^2e^x` **is a solution of the given differential equation**.

## See eNotes Ad-Free

Start your **48-hour free trial** to get access to more than 30,000 additional guides and more than 350,000 Homework Help questions answered by our experts.

Already a member? Log in here.