The equation of the usual parabola takes the form
$$
0 = -y + ax^2 + bx +c.
$$
Generally, you can describe a curve as the set of all points $(x,y)$ such that
$$
F(x,y) = 0,
$$
where $F(x,y)$ is a function such as $F(x,y) = -y+ax^2+bx+c$.
Now, suppose you want to rotate the curve by 45 degrees. Denote by $R$ this rotation. The new curve is given by the equation
$$
F(R^{-1}(x,y)) = 0.
$$
This is because a point $(a,b)$ is on the new curve if and only if $R^{-1}(a,b)$ was on the original curve. (Make sure you understand this).
The counter-clockwise rotation of angle $\theta$ is given by $$R_\theta(x,y) = (x\cos(\theta) -y\sin(\theta), x\sin(\theta) +y\cos(\theta)),$$
and $R^{-1}_\theta = R_{-\theta}$.