I'm wondering if anybody can help me solve the following problem, the curve I'm getting at the end is either planar or is completely incorrect.

Find the curvature and the parametrized curved formed by intersection the following two cylinders:

so what I have after some calculation is:

Now if I convert let and substitute then the result follows. But is there a way that I don't have to deal with both positive and negative parts of the equation, as to simplify the curvature calculation?