For example, I have a function
W[L_, m_] := 1 + 3 L + 2 L^2 - 6 m - 6 Lm + 6 m^2
I also have
r = m/L
What is the easiest way to plot W
-function from r
?
Now I just manually plug in expression for r
in W
and obtain
W[L_, r_] := 1 + 3 L + 2 L^2 - 6 r*L - 6 L (r*L) + 6 (r*L)^2
Is there any other way to do that?