Consider the following question.
tanθ+secθ−1tanθ−secθ+1=1+sinθcosθ
Consider, LHS=tanθ+secθ−1tanθ−secθ+1
=(tanθ+secθ)−(sec2θ−tan2θ)tanθ−secθ+1
=(tanθ+secθ)(1−secθ+tanθ)(1+tanθ−secθ)
=(tanθ+secθ)
=1+sinθcosθ
Hence, this is the required answer.