We know that the equation of tangent of $y^2=4ax$ is $y=mx+\frac{a}{m}$.
Now on replacing $x$ to $y$ and $m$ to $\frac{1}{m}$ in the previous equation, we get, $y=mx-am^2$ which is the tangent of $x^2=4ay$. Why does that happen?
I just can't understand the logic behind this transformation. I somewhat get the feel of replacing $x$ to $y$. But that would just rotate the axis.
When swapping $x$ and $y$, for both the function and the tangent line, you're basically finding the reflection of the original parabola, and the tangent line, about the line $y = x$.
Swapping $x$ and $y$ for the parabola results in $ x^2 = 4 a y $
And swapping $x$ and $y$ for its tangent results in $ x = m y + \dfrac{a}{m} $ which, when re-arranged, becomes $ y = \dfrac{1}{m} x - \dfrac{a}{m^2} $
If you define $m' = \dfrac{1}{m} $ then the reflected tangent equation is $ y = m' x - a m'^2 $.