Writing Trig Functions As Algebraic Expressions