f′(x)=(x2−9)g(x)
f′(x)=(x+3)(x−3)g(x)
Since g(x) is always greater than 0, we can simply treat it as a positive constant such as 1. The critical values are −3 and 3.
f′(x)=(x+3)(x−3)(1)
Testing the intervals:
Interval Test Value Sign of f′(x)Conclusion−∞<x<−3x=−4f′(−4)>0Increasing−3<x<3x=0f′(0)<0Decreasing3<x<∞x=4f′(4)>0Increasing
At −3, we have a relative maximum since the sign changes from positive to negative. At 3, we have a relative minimum since the sign changes from negative to positive.