Write tanA and secA in terms of sinA and cosA.
LHS=cosAsinA−cosA1+1cosAsinA+cosA1−1
Multiply the numerator and the denominator by cosA.
LHS=sinA−1+cosAsinA+1−cosA
To show that this equals cosA1+sinA, cross-multiply and compare the two products.
cosA(1+sinA−cosA)=cosA+sinAcosA−cos2A
(1+sinA)(sinA+cosA−1)=cosA−1+sin2A+sinAcosA
Subtract the second product from the first.
(cosA+sinAcosA−cos2A)−(cosA−1+sin2A+sinAcosA)=1−(sin2A+cos2A)=0
The two products are equal, so
sinA−1+cosAsinA+1−cosA=cosA1+sinA
Hence LHS = RHS.