I am given the differential equation: $$\frac{\partial \theta}{\partial t}=k \frac{\partial^2 \theta}{\partial x^2}$$ Use the change of variables $q_1(x,t) = \frac{x^2}{kt}$ and $q_2 (x,t)=\frac{\theta(x,t)\sqrt{kt}}{\theta_0}$ to rewrite the differential equation in terms of $q_1$, and $q_2$.
I asked a similar question to this a couple of days ago but with the help of my professor I got a bit further and am taking a different approach to the problem now and so I am posting this question.
Now $$\frac{1}{\sqrt{kt}} = \frac{\sqrt{q_1}}{x}$$ $$\theta = \frac{q_2 \theta_0}{\sqrt{kt}}=\frac{q_2 \sqrt{q_1}}{x}\theta_0=\theta(q_1,q_2)$$
So up till here everything is fine but I can't seem to get the next step. I have to rewrite the original differential equation in terms of $q_1,q_2$, then assume that $q_2=f(q_1)$ and show that $f$ satisfies the ODE $$4q_1 \frac{\partial ^2f}{\partial q_1^2}+(q_1+2) \frac{\partial f}{\partial q_1}+\frac{f}{2}=0$$ Whenever I try to rewrite the original differential equation I end up with enormously complicated expressions that are impossible to simplify and dont lead to the given differential equation for $f$ at all. I am sure there is some method or way to solve this but I really can't find. If anyone could help me I would be very grateful because I have been stuck on this for days. It is also weird to me because the other homework questions I got I solved fairly quickly after some messing about. Thanks in advance!