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