Source: https://math.hawaii.edu/~yuen/242handouts/Math242-chapters-16-17.pdf