The missing side comes from Pythagoras theorem: in △PQR right-angled at Q, the hypotenuse is PR and
PR2=PQ2+QR2
Given (from the figure):∠Q=90∘, PQ=12 cm, PR=13 cm.
Step 1 — Find QR.
QR2=PR2−PQ2=132−122=169−144=25QR=25=5 cm
Step 2 — Find tanP. At P, the opposite side is QR=5 cm and the adjacent side is PQ=12 cm.
tanP=PQQR=125
Step 3 — Find cotR. At R, the adjacent side is QR=5 cm and the opposite side is PQ=12 cm.
cotR=PQQR=125
Step 4 — Subtract.
tanP−cotR=125−125=0
Answer:tanP−cotR=0.
Note: this is no coincidence. The side opposite P is the side adjacent to R (and the other way round), so tanP and cotR are always the same fraction in a right triangle.