Find and for
Set up the product rule. With and , both factors are themselves composites, so the chain rule is needed inside each derivative:
The inner derivatives and are the two factors most often dropped here.
Assemble the first derivative and factor.
Pulling out front keeps the second differentiation manageable.
Differentiate the bracket for the second derivative. Let . Then
The term needs the product rule again, contributing both and .
Apply the product rule once more.
Collect the sine and cosine terms. The cosine terms give and the sine terms give :
Check at x = 0. From the formulas, and . Directly, near we have , so the slope at the origin is and the second derivative vanishes — both confirmed.
Need to solve a different problem like this? Open the solver →