Let g(x)=tanx be defined for x∈(−2π,2π).
(1) Rewrite g(x) exclusively in terms of sinx and cosx. No other trigonometric functions should appear.
(2) Differentiate the expression you obtained in part (a) to obtain g′(x). Show all algebraic steps.
(3) Simplify g′(x) so that it is expressed as a single elementary trigonometric function of x. Justify every simplification step clearly.