Example 1: Find the minimum value of a one-dimensional function

Example 2: Find the minimum value of a two-dimensional function