Source: http://www.math.kth.se/math/student/courses/5B1306/200506/exempel.pdf