Given:
sin θ = qp
i.e. HypotenusePerpendicular=qp
∴ If length of BC = px unit, length of AC = qx unit.
In Δ ABC,
⇒ AC2 = BC2 + AB2 (∵ AC is hypotenuse)
⇒ (qx)2 = (px)2 + AB2
⇒ AB2 = q2x2 - p2x2
⇒ AB = q2x2−p2x2
⇒ AB = (q2−p2) x
cos θ = HypotenuseBase
=ACAB=qx(q2−p2)x=qq2−p2
Now,
cos θ+sin θ=qq2−p2+qp=qq2−p2+p
Hence, cos θ + sin θ = qq2−p2+p.