Problem: Find local extreme points and inflection points

Problem

Solution