Google Classroom
GeoGebraGeoGebra Classroom

Interactively find and use CAS GeoGebra to compute local extrema of a nonlinear function of two variables

The purpose of this applet is to find and calculate the possible extremes of the nonlinear function f(x,y). The possibilities of such calculations are shown by the example of the sum of several nonlinear functions. Method. The problem comes down to finding the first partial derivatives fx(x,y) and fy(x,y). Using equations with implicit functions fx(x,y)=0, fy(x,y)=0 in the CAS section of GeoGebra, the intersection points of these implicit functions are found numerically, which are possible extreme points. The applet provides an approximate method to determine the type of these points: maximum, minimum, saddle. There is a test circle with radius p0 and three moving points arranged at 120° to each other. If the test point is red, then it is the maximum point and the points on the circle are blue, i.e. the function is decreasing from the test point A. If it is blue, then it is the minimum, green is a saddle point. This is an approximate method. To be sure, you can rotate these points in a circle and see how their color changes. When refining the result, you can reduce the value of the radius p0. What actions can you do with this applet? In section 1. Collect all extreme points in one list. To do this: Set the test point A at each intersection of the curves fx(x,y)=0 and fy(x,y)=0 and press the "click script" button one after the other and with the help of the Solve command a list of all possible local extrema will be formed. In Section 2. You can see these extrema and their ordinal numbers, their number -Length[Solve]. In Section 3. With the help of the available script these points can be sorted into lists: Max, Min, Sad.

1. Visualizing a function of two variables using contour lines

1. Visualizing a function of two variables using contour lines

2. Test point A to determine extremum type

2. Test point A to determine extremum type
Test point A to determine extremum type and 3 test points on circle (p0 is its radius).

3. Compare the work of commands: Solutions and Solve

3. Compare the work of commands: Solutions and Solve
An example of a case where the Solutions command cannot determine the extreme point (for h=1,2,4). In all other cases both commands: Solve and Solutions have matching solutions!

4. Selection of solutions

4. Selection of solutions
In GeoGebre there is a well-known problem in comparing very small numbers. In this regard, for the proposed geometric method of recognizing the type of extrema, it is necessary to leave only the solutions found using CAS, Solve₂, in which the functions at these points abs(f(x(A),y(A)))>10⁻⁶.