Solution:
Key idea: The identity sec2θ−tan2θ=1 factorises: the left side is the product of (secθ+tanθ) and (secθ−tanθ), so that product is 1. So if we know secθ+tanθ, its reciprocal is secθ−tanθ.
Step 1 — Write down the given equation.
We label the given equation so that we can use it later.
secθ+tanθ=k…(1)
Step 2 — Find secθ−tanθ.
We multiply and divide by secθ+tanθ, then use sec2θ−tan2θ=1 in the numerator.
secθ−tanθ=secθ+tanθsec2θ−tan2θ
=k1…(2)
Here k=0, because the product of k and secθ−tanθ is 1.
Step 3 — Add (1) and (2).
Adding the two equations removes tanθ and leaves 2secθ.
2secθ=k+k1
2secθ=kk2+1
Step 4 — Find secθ.
We divide both sides by 2.
secθ=2kk2+1
Step 5 — Find cosθ.
Since cosθ is the reciprocal of secθ, we turn the fraction upside down.
cosθ=secθ1
=k2+12k
Therefore, cosθ=k2+12k, as was to be shown.