When dealing with functions composed of two or more factors that are dependent on the same variable, the product rule is a handy tool. The product rule states: if you have a function defined as the product of two functions, say \( f(x) = g(x) \cdot h(x) \), the derivative \( f'(x) \) is calculated as:
- \( f'(x) = g'(x) \cdot h(x) + g(x) \cdot h'(x) \)
This means you differentiate the first function, leave the second as is, then leave the first function and differentiate the second, and finally add the results.
In our case, the function \( y = x^2 (2+e^x) \) needs this rule. Apply it by letting \( g(x) = x^2 \) and \( h(x) = 2+e^x \). Differentiate each:
- \( g'(x) = 2x \)
- \( h'(x) = e^x \)
Plug these into the product rule formula to find \( y' \), the derivative of \( y \), which is crucial in testing if \( y \) is a solution of a given differential equation.