This requires the chain rule and the product rule to be used to differentiate the function. The substitution u = x2 can be used to make this easier. Using this, du/dx = 2x and y = (u-5)eu. Using the product rule, dy/dx = eu + (u-5)eu = eu(u-4). Substituting u = x2 back in, dy/du = (x2-4)ex^2. Now the chain rule can be used to find dy/dx: dy/dx = (dy/du)(du/dx) = 2x(x2-4)ex^2. The stationary points are when dy/dy = 0. ex^2 is always > 0, so either 2x = 0 (x=0) or x2-4 = 0, giving x = -2 and x = 2, so the stationary points are at x = -2, 0 and 2.