First of all, you must parametrize your function. Let $t$ the parameter. Then:
$$ \displaystyle\left[\begin{array}{c}x \\ y\end{array} \right] = \left[\begin{array}{c}t \\ \cos(t)\end{array} \right]$$
Now, consider to rotate the function of an angle $\theta$. Then you obtain the followings:
$$ \displaystyle\left[\begin{array}{c}x' \\ y'\end{array} \right] = \left[\begin{array}{cc}\cos(\theta) & \sin(\theta) \\ -\sin(\theta) & \cos(\theta)\end{array} \right]\left[\begin{array}{c}t \\ \cos(t)\end{array} \right] = \left[\begin{array}{c}t\cos(\theta) + \cos(t)\sin(\theta) \\ -t\sin(\theta) + \cos(\theta)\cos(t)\end{array} \right]$$
In general, you cannot write $y'$ as a function of $x'$. This can be done in some interval. In fact, if you think to rotate a function, then you will not obtain a function, since $y'(x')$ can assume more than one value (try to figure out this by drawing).