Source: http://www.classpad.com.au/cp/pdf/CP172_Inverse_Of_A_Function.pdf