Source: https://www.alloprof.qc.ca/fr/eleves/bv/mathematiques/la-reciproque-d-une-fonction-m1110.pdf