Source: https://www.mathsgenie.co.uk/alevel/c1may2010ans.pdf