How do you use the chain rule to differentiate sqrt(-cosx)?