Everything is perfect so far.

Now observe that you are equating two expressions that are defined in different variables. Thus, the only time they are equal is if they're equal to the same constant, call it .

Now, you can rewrite this as a pair of ODEs:

Each of these ODEs are Cauchy-Euler equations. Do you know how to proceed?