Step 1 — draw the right triangle.
tanθ=adjacentopposite, so take the side opposite θ as 2xyk and the adjacent side as (x2−y2)k, where k>0. (Since x>y>0, both are positive.)
Step 2 — find the hypotenuse by Pythagoras theorem.
hypotenuse2=4x2y2k2+(x2−y2)2k2=(x4+2x2y2+y4)k2=(x2+y2)2k2
hypotenuse=(x2+y2)k
Step 3 — write the ratios.
sinθ=x2+y22xy,cosθ=x2+y2x2−y2
Step 4 — find secθ+tanθ.
secθ=x2−y2x2+y2
secθ+tanθ=x2−y2x2+y2+2xy=(x+y)(x−y)(x+y)2=x−yx+y
(We may cancel x+y because x+y>0.)
Check with x=2, y=1: tanθ=34, so the triangle is 3, 4, 5: sinθ=54=4+12×2×1 ✓, cosθ=53=4+14−1 ✓, and secθ+tanθ=35+34=3=2−12+1 ✓.