Source: https://www.math.drexel.edu/~dmitryk/Teaching/MATH221-SPRING'12/Exam 1 solutions.pdf