Use a trigonometric substitution to write an algebraic expression as a trigonometric function of theta.