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:

$\displaystyle x^2+(y-1)^2=1$

$\displaystyle y^2+z^2=1 $

so what I have after some calculation is:

$\displaystyle x=\pm \sqrt{1-(\sqrt{1-z^2}-1)^2}$

$\displaystyle y=\sqrt{1-z^2}$

Now if I convert let $\displaystyle z=\sin(t)$ 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?