William W. answered 11/20/20
Experienced Tutor and Retired Engineer
For f(x) = (x2 - 4)ex to find the first derivative we use the product rule (uv)' = u'v + uv'
u = x2 - 4
u' = 2x
v = ex
v' = ex
f '(x) = 2xex + (x2 - 4)ex
f '(x) = (x2 + 2x - 4)ex
Although this problem doesn't ask for them, the critical points are found by setting f '(x) = 0 which is only true when x2 + 2x - 4 = o so the critical points are x = -1-√5 and x = -1+√5. Using the 1st derivative rule we see that x = -1-√5 is a local maximum and x = -1+√5 is a local minimum.
To find the second derivative, use the product rule again:
u = x2 + 2x - 4
u' = 2x + 2
v = ex
v' = ex
f ''(x) = (2x + 2)ex + (x2 + 2x - 4)ex
f ''(x) = (x2 + 4x - 2)ex
To find the points of inflection, we set this equal to zero:
(x2 + 4x - 2)ex = 0 which is true only when:
x2 + 4x - 2 = 0
x = -2+√6 and x=-2-√6
These are the points of inflection.
Putting these points of inflection on a number line (shown in red) with the critical points shown (in blue) as a reference, we can check the signs of the second derivative in the three intervals that the inflection points create.
On the interval (-∞, -2-√6) the second derivative is positive meaning the function is concave up.
On the interval (-2-√6, 2-√6) the second derivative is negative meaning the function is concave down.
On the interval (2-√6, ∞) the second derivative is positive meaning the function is concave up.

is