Find the Derivative \( \frac{dy}{dx} \)
Given:\[ y = \cos(x^2) + \cos(2x) + \cos^2(x^2) + \cos(x^x) \]
A conducting bar moves on two conducting rails as shown in the figure. A constant magnetic field \( B \) exists into the page. The bar starts to move from the vertex at time \( t = 0 \) with a constant velocity. If the induced EMF is \( E \propto t^n \), then the value of \( n \) is _____. 