Assume that this is correct (your job to check), than the right hand side is a function of only and the left hand side is a function of only, so as they are equal they are also equal to a constant, which leaves you with the two ordinary differential equations:

and:

for some constant

RonL