Critical Points of Functions of Two variables
Introduction
One of the main uses of ordinary derivatives is in finding maximum and minimum values (extreme values).
In this activity we will see how to use partial derivatives to locate maxima and minima of functions of two variables with the help of MATLAB.
Before starting
Use the MATLAB Live Editor to edit and run this Live Script in your browser or your desktop.
- Read each section carefully.
- Run the code within a section before starting to read the next.
- To run the code from each section, click into the code section and then click on the Run Section button (from the toolstrip) or click on the blue stripe on left side of that section as shown below:
Remark: Run the code of each section from top to bottom, otherwise you may get an error.
- The end of a section is indicated with a thin line, like the next one -
1. Critical points for ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAA6CAYAAABmpmFrAAAAAXNSR0IArs4c6QAAD2JJREFUeF7tPH28ZVVVa53zPnqMhD0SZObNu3vte3Omp2k6mhCC4IBmgDBIaP0wRREozUQMsX59+UtFTCkrvgy10DRNyxQUv5pQE0OsUF81vbf3vvCYYipIB2bgvXfP6rdu59z2PZx7z8e9l3k/vPu/e89aa6+99jprr70+DsJ4jCVQQQJYAWeMMpYAjBVnrASVJDBWnEpiGyONFWesA5UkMFacSmIbI40VZ6wDlSQwVpxKYhsjjRVnrAOVJDBWnEpiGyONFWesA5UkcKgUB7ds2TI7OTn5oHPuoUqcj5EOqQQeNcXZsWPH5P33338uM/8CABzvrdoAwO/VarVrdu/evV5FGkqpHwiC4LeY+fy1tTW1srJysAqdxzLO5s2bD5uenv4WM982MTHx+qWlpf8cZL2PiuLETP8VAJwaM7ufmT+FiD/nMX+1tfY1ZRdTq9WeHobhB5l5ARG/+dBDD52wd+/eA2XpPNbhjz766E2bNm26lZmfAQArAHCKtfZfq6575IqToTQ31Gq1i40xh4dheJ/P+MMPP7ypzKYrpV6BiO+PaexGxLOMMd+tKozHOt7CwsLjDh48+BEAOA0A9iPiTmPM7VXWPWrFCYjoZgB4Qczc7cx8ovg1RPRUAPgnn+lWqzV711133V9kIUT0KwBwZQx7y9ra2q7xEZUvuZNOOmnCOfcnibVn5hc65z6bj9kNMVLF0Vq/mJn/Ipkyi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zONIT9bcJh9IW6jml8rlTKfQZSfN9KakAQNwFIE5p52OVZWkcSvisEhLhJ25IPH8YGXf5vC8z3zKMbybmOcfiyzwTAC5lZjHHj5O2WGb+LDNfPwwGDuVmbbS5JfjIzG9kZumqlHLQ6/K+U3Oo1pCrOIeKsfG8G1sCY8XZ2PuzYbkbK86G3ZqNzdj/AiIfFKTfHk7+AAAAAElFTkSuQmCC)
Recall the definition of local maxima and local minima:
has a local maximum at
if
for all
sufficiently close to
.
has a local minimum at
if
for all
sufficiently close to
.
If f is differentiable, a local maximum or minimum can only occur in points where the corresponding tangent plane is horizontal, i.e., where
Remark: If either one of
or
is undefined then
is undefined. Finally, recall that a critical point of
is a point where either
or where
is undefined. Example 1:
Consider the function
. Find the critical points of f. Step 1 - To find the critical points in MATLAB first we need to define our function symbolically. That is: Step 2 - Now we need to compute the partial derivatives using the command diff() as follows: Step 3 - Finally we solve the system of equations
using the command solve() and we will store the information in an array: Thus, the complete MATLAB code is:
[xcr, yxr] = solve(fx, fy)
Run this section to see the output. Then find the critical point in your notebook and compare it with the result obtained in MATLAB.
2. Classification of critical points for ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAA6CAYAAABmpmFrAAAAAXNSR0IArs4c6QAAD2JJREFUeF7tPH28ZVVVa53zPnqMhD0SZObNu3vte3Omp2k6mhCC4IBmgDBIaP0wRREozUQMsX59+UtFTCkrvgy10DRNyxQUv5pQE0OsUF81vbf3vvCYYipIB2bgvXfP6rdu59z2PZx7z8e9l3k/vPu/e89aa6+99jprr70+DsJ4jCVQQQJYAWeMMpYAjBVnrASVJDBWnEpiGyONFWesA5UkMFacSmIbI40VZ6wDlSQwVpxKYhsjjRVnrAOVJDBWnEpiGyONFWesA5UkcKgUB7ds2TI7OTn5oHPuoUqcj5EOqQQeNcXZsWPH5P33338uM/8CABzvrdoAwO/VarVrdu/evV5FGkqpHwiC4LeY+fy1tTW1srJysAqdxzLO5s2bD5uenv4WM982MTHx+qWlpf8cZL2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R7hRzm/AktrfUn5NiQSLQ07g8SMa/VahQEgfQ3bZIodfI1DqXUZXK9B4A7Z2Zmjl9cXOxqiS6zrlRC+qutVuuMop/P8+fpqzjpWEjyZqc/jVE1sVZmwVmwcbnj2wBAvgco4+XW2nT9zqDT9MWXdAQAyCdc3uKc+58BJpPorfSu+x9ruFLKb+MvSZgwDJ87SGtQqr7pvQcOHLikaA9/el15Fid5mxK87VJINDEx8ZXEx2Dms5xznZvOAIKrjKqUegkiSk0KDLtCsDJTJRGz2lM8EuKDPG9lZcVPbpaawauZkk8Fv2zQPcuzONIT9bcJh9IW6jml8rlTKfQZSfN9KakAQNwFIE5p52OVZWkcSvisEhLhJ25IPH8YGXf5vC8z3zKMbybmOcfiyzwTAC5lZjHHj5O2WGb+LDNfPwwGDuVmbbS5JfjIzG9kZumqlHLQ6/K+U3Oo1pCrOIeKsfG8G1sCY8XZ2PuzYbkbK86G3ZqNzdj/AiIfFKTfHk7+AAAAAElFTkSuQmCC)
2.1 Second derivative test
Recall that we can classify critical points using the second-derivative test:
Theorem: Assume that f and its first- and second-order partial derivatives are all continuous at
and
. Define the 2x2 determinant
.Then:
and
implies that
is a local minimum;
and
implies that
is a local maximum;
implies that
is a saddle point;- if
the second-derivative test is inconclusive.
For example, the function
(1)has four critical points
, and
. They are classified as follows:
is a local minimum,
is a local maximum, and
and
are both saddle points.
You can confirm this in your notebook or use the MATLAB code in section 1. 2.2 Classification of critical points in MATLAB
In order to classify critical points in MATLAB we are going to use the pre-defined function named
ClassifyCP(f, var1, var2, xcp, ycp)
which is defined in the Appendix. This is a function that can determine if a critical point is a local maximum, a local minimum, or a saddle point. The parameters we need to input (as strings) are: - f: The function f(x,y) or f(u,v)
- var1: The first variable x/u
- var2: The second variable y/v
- xcp: The x-coordinate of the critical point to classify
- ycp: The y-coordinate of the critical point to classify
For instance, using the function defined in (1) considering the critical point (1,1) we write: ClassifyCP('3 * x^2 * y + y^3 - 6 * x * y - 2', 'x', 'y', 1, 1)
For the critical point (1,-1):
ClassifyCP('3 * x^2 * y + y^3 - 6 * x * y - 2', 'x', 'y', 1, -1)
For the critical point (0,0):
ClassifyCP('3 * x^2 * y + y^3 - 6 * x * y - 2', 'x', 'y', 0, 0)
And for the critical point (2,0):
ClassifyCP('3 * x^2 * y + y^3 - 6 * x * y - 2', 'x', 'y', 2, 0)
Run this section to see the outputs and compare with the results in section 2.1. 3. Hands on practice
Activity 1:
Find the critical points of the following functions:
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAAAuCAYAAAAsuL7SAAAAAXNSR0IArs4c6QAAF+FJREFUeF7tXXucJEV9r1/37t3tHaAcwsHd7nZXzXLAgWC4wMkzJxz4QkCUyFsBhQj4AMIjJj4wBHl4IPGNEDSCmmAQEKIGAhcFvASPRCJnvMxU9SwLyiGnycne7c5O//z8+lO9n9q5numenumZ2bXrr7udevzqV7/qX9Xv8S1geck5kHMg50DOgZwDBgcg50bOgZwDOQdyDuQcMDmQK4ZcHnIO5BzIOZBzYAYHcsWQC0TOgZwDOQdyDuSKIZeBnAM5B3IO5Byoz4H8xpBLR86BnAM5B3IO5DeGXAZyDuQcmDscKBQKKxHxLERcyRh7FWPscUT8oed5/8gYw7kz05kzGRkZmV+tVi9gjB0JAAcgYgkAnrQs655isVhqZd75jaEV7uVtcw7kHOgqBzjnVzDGbqxDxG2O41y8bt26qa4SmcHgnHMHAP4ZEVdEdL/V9/3V5XL56bRD54ohLefydjkHcg50lQOu664GgMcA4GlE/DtErADAoYyx80PCEPHjnud9squEtn9wy3XdhwHgGES8hTH2jGVZeyHiexhjy8PhqtXq4tHR0d+kGT5XDGm4lrfJOZBzoOscEEJsQMRfOo5zsnkrcBznDZZlPaoJfEYpdVDXiW0jAUKItyLigwBwlJTy8bBr13UXWJZ1LyK+Wf/tRKXUd9MMnSuGNFzL2+QcyDnQVQ4IIYYRscwY21Mp9WItMa7r3g0AZ9DfJycnX/P888+/3FWC2zg45/zLAPAbKeXVtd06jrOfZVkb9d/XKq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UbufxbEQA0ALWtOLczkPh8IgiAxcU47PZmYmNirkzdnbAFnes2lZD/sl2BZ1rOTZPHTDofnFgqFvy2Xyxw/bUrOEWjgqoh6e7pS6uM577rpXsYIGF3JGPCcvM7I/S+CyMIAqL/NcZwnTE5O3pG185UmuWDnGc6ktbVQKJyedDFnsiBEnGvFLJUTfTbdWI4AG5wc+sZkVncR0dnm5MaoSAsEjK6MpmoYuUe781GQP2cwXLdu3fpyucyhi6YMOQJMdMI01dVqlZNLpZJhbcghG9nhGV0ZTdEbuf9Z7pmdAIymmplRGwQMAgYBg4BBIJ8I/AlrFRYuCGy2kwAAAABJRU5ErkJggg==)
Use the code in section 1. Write your code here: Challenge: Try to write your own MATLAB function to find critical points for any function of two variables. You can add it at the of the Appendix. Your MATLAB function should take any arbitrary function f as an input. You can set the output of your MATLAB function to be the horizontal concatenation of xcr and ycr, see example in section 1. Activity 2:
Find the critical points of the function
.You can do this in your notebook, or with MATLAB (maybe using your own function from Activity 1, if you wrote one). Use the pre-defined function ClassifyCP(f, var1, var2, xcp, ycp) to classify the critical points of this function.
Write your code here:
Appendix: Pre-defined functions
function [ output ] = ClassifyCP(f, var1, var2, xcp, ycp)
% CLASSIFYCP is a function that can classify critical points
% >> ClassifyCP('-(x^2-1)^2-(x^2*y-x-1)^2','x', 'y',-1,0)
% The critical point (x,y)=(-1,0) is a local maximum
% Define symbolic function
% Convert variables into symbolic variables.
% Calculate the first and second order partial derivatives
% Calculate Discriminant and 2nd order partials by
% subbing in critical point with subs()
Dval = subs(D, {var1,var2}, [xcp,ycp]);
fxxval = subs(fxx, {var1,var2}, [xcp,ycp]);
fyyval = subs(fyy, {var1,var2}, [xcp,ycp]);
% Classify the critical point
if Dval > 0 && (fxxval < 0 || fyyval < 0)
classtext= 'local maximum';
elseif Dval > 0 && (fxxval > 0 || fyyval > 0)
classtext= 'local minimum';
classtext= 'saddle point';
classtext= 'unable to be categorised';
output = ['The critical point (x,y) = (',...
output = [output newline ' is a ', classtext];
% Documentation for the commands used in this function:
% https://au.mathworks.com/help/symbolic/str2sym.html
% https://au.mathworks.com/help/symbolic/sym.html
% https://au.mathworks.com/help/symbolic/diff.html
% https://au.mathworks.com/help/symbolic/simplify.html
% https://au.mathworks.com/help/symbolic/subs.html
% https://au.mathworks.com/help/matlab/ref/num2str.html
% ---- Write your own functions after this line ---- %
% Write a function to calculate the critical points of f
% The Output is an array cr = [xcr, ycr] where xcr and ycr
% are respectively column vectors of the x-coordinates
% and y-coordinates of the critical points.
% https://au.mathworks.com/help/matlab/ref/function.html
% Step 1 - Convert f from text string to a symbolic expression.
% Step 2 - Convert variables into symbolic variables.
% Step 3 - Calculate Partials.
% Step 4 - Solve for critical point and return the value.