The expression E=secθ+tanθ−1tanθ−secθ+1 can be simplified to -
cosθ/(1-sinθ)
We write the 1 in the numerator as (sec2θ - tan2θ) -
E=secθ+tanθ−(sec2θ−tan2θ)tanθ−secθ+1=secθ+tanθ−(secθ+tanθ)(secθ−tanθ)1−secθ+tanθ=(secθ+tanθ)(1−secθ+tanθ)1−secθ+tanθ=secθ+tanθ=1secθ−tanθ=cosθ1−sinθ