MATLAB_Lipschitz Help

MATLAB_Lipschitz is a graphical user interface (GUI) that aids in understanding the definition of Lipschitz continuity. The GUI illustrates the definition by graphing

∥F (x,t ) - F(y, t)∥ N  vs. ∥x - y∥ N
       0         0  ℝ              ℝ
In order for the function F(x,t) to be Lipschitz at a fixed time, t0, the graph must remain below a line with slope L, the Lipschitz constant.

In the User Panel, input a fixed time t0 and click on the ‘Plot’ button.


PIC

Figure 1: User Panel


Pop-up boxes will guide you through inputting the function F(x,t), the vector x, and other conditions for investigating Lipschitz continuity.


PIC

Figure 2: Pop-up Boxes



PIC

Figure 3: Pop-up Boxes


The GUI will check the Lipschitz definition for random vectors within a prescribed radius of a fixed vector. The final pop-up box allows the user to input the radius and the number of random vectors investigated. Conceptually, the idea is the same as for Continuity in t, when inputs are close together the difference in the outputs of h should be close together.


PIC

Figure 4: Radius and Number of Random Vectors


The final output of the GUI will contain several curves, each representing

∥F (x,t0) - F(y, t0)∥ℝN  vs. ∥x - y∥ℝN
for a separate random vector x near x0 within the prescribed radius. The Lipschitz constant L will be provided in the title of the plot. The blue line is the graph of L∥x-y∥ℝN, so if all of the red curves, graphs of ∥F(x,t0) -F(y,t0)∥ℝN, remain below the blue line there is evidence to suggest the function is Lipschitz within the given radius of the inputted vector. If the Lipschitz constant is quite large or changes significantly as you shrink or expand the radius, you should suspect the function is not Lipschitz. A computer simply cannot check all vectors to prove Lipschitz, so use the GUI for intuition purposes only.

PIC

Figure 5: Intuition: Lipschitz



PIC

Figure 6: Intuition: Not Lipschitz


To reset the GUI, click the ‘Reset’ button.