TITLE: Rotate the parabola $y=x^2$ clockwise $45^\circ$.
QUESTION [6 upvotes]: I used the rotation matrix to do this and I ended up with the equation: $$x^2+y^2+2xy+\sqrt{2}x-\sqrt{2}y=0$$
I tried to plot this but none of the graphing softwares that I use would allow it.
Is the above the correct equation for a parabola with vertex (0,0) and axis of symmetry $y=x$ ?
$$\left(
\begin{array}{cc}
\cos\theta&-\sin\theta\\
\sin\theta&\cos\theta\\
\end{array}
\right)\left(
\begin{array}{cc}
x\\
y\\
\end{array}
\right)=\left(
\begin{array}{cc}
X\\
Y\\
\end{array}
\right)$$
For a clockwise rotation of $\frac{\pi}{4}$, $\sin{-\frac{\pi}{4}}=\frac{-1}{\sqrt{2}}$ and $\cos{-\frac{\pi}{4}}=\frac{1}{\sqrt{2}}$
$$\left(
\begin{array}{cc}
\frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}}\\
-\frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}}\\
\end{array}
\right)\left(
\begin{array}{cc}
x\\
y\\
\end{array}
\right)=\left(
\begin{array}{cc}
X\\
Y\\
\end{array}
\right)$$
$$X=\frac{x}{\sqrt{2}}+\frac{y}{\sqrt{2}}$$
$$Y=\frac{-x}{\sqrt{2}}+\frac{y}{\sqrt{2}}$$
$$y=x^2$$
$$\left(\frac{-x}{\sqrt{2}}+\frac{y}{\sqrt{2}}\right)=\left(\frac{x}{\sqrt{2}}+\frac{y}{\sqrt{2}}\right)^2$$
$$\frac{-x}{\sqrt{2}}+\frac{y}{\sqrt{2}}=\frac{x^2}{2}+\frac{2xy}{2}+\frac{y^2}{2}$$
$$-\sqrt{2}x+\sqrt{2}y=x^2+2xy+y^2$$
$$x^2+2xy+y^2+\sqrt{2}x-\sqrt{2}y=0$$
Have I made a mistake somewhere?

REPLY [2 votes]: Rotating the parabola $y=x^2$ by $\theta$ clockwise gives $v=u^2$, where 
$$\left(u\atop v\right)=\left(\cos\theta\quad-\sin\theta\atop\sin\theta\quad\;\;\;\cos\theta\right)\left(x\atop y\right)$$
i.e.
$$x\sin \theta+y\cos\theta=(x\cos\theta-y\sin\theta)^2$$
Putting $\theta=\frac\pi 4$ gives 
$$\frac 1{\sqrt2}(x+y)=\left(\frac 1{\sqrt2}(x-y)\right)^2\\
\sqrt2(x+y)=(x-y)^2$$
which when expanded is
$$x^2+y^2-2xy-\sqrt2 x-\sqrt2 y=0$$