Source: https://vmm.math.uci.edu/ODEandCM/PDF_Files/Appendices/AppendixH.pdf