By the Pythagorean theorem,

(I took the negative case because of the range of values of t)
Using the cosine double angle formula,

Using the sine double angle formula,

Using the cosine half-angle formula,

(I took the negative case because of the range of values of t)
Using the sine half-angle formula,

(I took the positive case because of the range of values of t)