Find the Derivative \( \frac{dy}{dx} \)
Given:\[ y = \cos(x^2) + \cos(2x) + \cos^2(x^2) + \cos(x^x) \]
Rearrange the following parts to form a meaningful and grammatically correct sentence:
P. that maintaining a positive attitude
Q. even in difficult situations
R. is essential for success
S. and helps overcome obstacles effectively