Let $\alpha,\beta\in\mathbb{R}$ be such that the function \[ f(x)= \begin{cases} 2\alpha(x^2-2)+2\beta x, & x<1 \\ (\alpha+3)x+(\alpha-\beta), & x\ge1 \end{cases} \] is differentiable at all $x\in\mathbb{R}$. Then $34(\alpha+\beta)$ is equal to}
Find the Derivative \( \frac{dy}{dx} \)
Given:\[ y = \cos(x^2) + \cos(2x) + \cos^2(x^2) + \cos(x^x) \]