Step 1 — get the partner expression from the identity.
sec2θ−tan2θ=1
(secθ+tanθ)(secθ−tanθ)=1
Since secθ−tanθ=x,
secθ+tanθ=x1(i)
and
secθ−tanθ=x(ii)
Step 2 — add (i) and (ii).
The tanθ terms cancel:
2secθ=x+x1
Step 3 — divide by 2.
secθ=21(x+x1)■
The by-product. Subtracting (ii) from (i) instead gives
2tanθ=x1−x⟹tanθ=21(x1−x)
Check with θ=60∘. Here x=2−3≈0.268 and x1=2+3≈3.732:
21(0.268+3.732)=2=sec60∘✓