Week 6: Preparation#

Reading Material#

We recommend that you read the textbook. Watching YouTube videos on the week’s topics can be useful, but it should not replace proper preparation for the week’s program and is not recommended as a standalone approach.

Read and study the following:

Key Concepts#

After reading, you should be able to explain the following key concepts:

  • Image set of continuous function

  • Extremum (minimum or maksimum)

  • Global extremum

  • Local extremum

  • Stationary points and other conditions

  • Extremum determination

  • Second-order test and Hessian matrix

  • Positive (semi-)definite matrices

This week, we will explore these key concepts in great detail. We expect you to have familiarized yourself with these topics before lectures.


Preparatory Exercises#

I: Maximum and Minimum of Functions#

Read the proposition in the first theorem of this week’s chapter.

Question a#

Find the minimum and maximum values as well as the image set of the function \(f : [-2,1] \to \mathbb{R}\) given by:

\[\begin{equation*} f(x) = x^2. \end{equation*}\]

Question b#

We now consider some functions that do not fulfill the assumptions in the theorem:

\[\begin{align*} g_1 : \mathbb{R} \to \mathbb{R}, \quad g_1(x) &= x^3 \\ g_2 : \,\,]-\pi/2,\pi/2[\,\, \to \mathbb{R}, \quad g_2(x) &= \tan(x) \\ g_3 : [-1,1] \to \mathbb{R}, \quad g_3(x) &= \begin{cases} x+1 & ,\,x \in [-1,0] \\ 3/2-x & ,\,x \in \,]0,1] \end{cases} \end{align*}\]

Determine the minimum and maximum values (if they exist) as well as the image set of each of the functions \(g_i\,,\,i=1,2,3\).

II: Second-Order Test at Stationary Points#

Consider a function \(f: \mathbb{R} \to \mathbb{R}\) given by

\[\begin{equation*} f(x) = x^3 - 3x^2 + 4. \end{equation*}\]

Question a#

Find the stationary points by following this procedure:

  • Calculate the first derivative \(f'(x)\).

  • Let \(f'(x) = 0\), and solve for \(x\) in order to find the stationary points.

Question b#

Classify each stationary point by following this procedure:

  • Calculate the second derivative \(f''(x)\).

  • Evaluate \(f''(x)\) at each stationary point:

    • If \(f''(x) > 0\), the point is a local minimum.

    • If \(f''(x) < 0\), the point is a local maximum.

    • If \(f''(x) = 0\), the test is inconclusive.

Question c#

Consider the theoretical propositions in the previous question. Sketch the graph of \(f(x)\) in Python to visually confirm your results.

Question d#

Is the local minimum you found also a global minimum? Is the local maximum you found also a global maximum?