These are derived from Pythagoras Theorem (explanation). From your P1 work, you should already know that:
Dividing this by gives:
In a similar way, dividing the first equation by gives:
back