Week 6: Graph sketching, optimization, first and second derivative test