Rectangle triangle problem

If we label the distances AP, PB, CQ and QB as shown above then we can write three equations for the areas of the triangles as follows:


Notice that the two ratios are the same! If we call this ratio r then we can calculate a polynomial for r as follows:

Taking the positive root gives us the golden ratio:
