Source: https://weber.itn.liu.se/~krzma/DS2017/Integrating factor method.pdf