The derivative of with respect to is .

Since is constant with respect to , the derivative of with respect to is .

The derivative of with respect to is .

Since is constant with respect to , the derivative of with respect to is .

The derivative of with respect to is .

Multiply.

Multiply by .

Multiply by .

The derivative of with respect to is .

Find the 2nd Derivative y=cos(x)