Let θ be an acute angle of a right triangle.
a. (i) Using the definitions of the primary trigonometric ratios, prove that cosθsinθ=tanθ.
b. (ii) Hence or otherwise, simplify the expression 1−cosθsinθ+1+cosθsinθ and express your result entirely in terms of tanθ.