MATH 145 – Calculus I
November 3, 2025
Last lecture, we discussed how to optimize single variable functions.
We also discussed how to handle multivariable functions, if they were constrained in a way that we can convert it into a single variable function.
What if we want to optimize a multivariable function across multiple variables?
Note: We are going to discuss three-dimensional functions exclusively this lecture, but the methods we are using can be extended to higher dimensional functions.
How can we find the local extrema of a function \(f(x, y)\) like the graph below?
Let’s try using the partial derivatives for \(f(x, y)\), \(\dfrac{\partial f}{\partial f}{x}\) and \(\dfrac{\partial f}{\partial f}{y}\), the way we used first derivatives for \(f(x)\), \(\dfrac{df}{dx}\).
A critical point of a function \(f(x, y)\) is a point \((x, y)\) where:
\[ \dfrac{\partial f}{\partial f}{x} (x,y) = \dfrac{\partial f}{\partial f}{y} (x, y) = 0 \]
Example: Find the critical points of the function \(f(x, y) = x^2 - y^2 + 4x + 2y\).
Example: Find the critical points of the function \(g(x, y) = 2xy - 4y + 2x - 3\).
The gradient of a function \(f(x, y)\) is the coordinate pair \(\left( \partial_x f, \partial_y f \right)\). We write this as \(\nabla f\).
\(\nabla f (x, y)\) is a new function.
\((x_0, y_0)\) is a critical point of \(f\) if \(\nabla f (x_0, y_0) = 0\).
Example: Find the gradient of the function \(f(x, y) = x^2 - y^2 + 4x + 2y\).
Example: Find the gradient of the function \(g(x, y) = 2xy - 4y + 2x - 3\).
Suppose \((x_0, y_0)\) is a point where \(\nabla f (x_0, y_0) = (0, 0)\). Let
\[ D = f_{xx} (x_0, y_0) f_{yy} (x_0, y_0) - \left( f_{xy} (x_0, y_0) \right)^2 \]
Example: Determine the behavior of the function \(f(x, y) = x^2 - y^2 + 4x + 2y\) at its critical point.