Lecture notes for APMA E4204