File:LaSalle principle example.png

Original file(1,600 × 3,200 pixels, file size: 1.66 MB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: A vector field in the plane. The function satisfies , which satisfies the LaSalle's invariance principle, showing that the origin is asymptotically stable.

Plotted in Julia by the following code.

```julia using CairoMakie, LinearAlgebra

  1. Lyapunov function example from https://web.archive.org/web/20190714024047/http://www.math.byu.edu/~grant/courses/m634/f99/lec23.pdf

df(x, y) = [-y - x^3; x^5] lyapf(x, y) = x^6 + 3y^2

using Interact

  1. define Figure

scene = Figure(resolution = (1600, 3200)) Axis(scene[1,1], backgroundcolor = "black")

  1. define (x, y) points for plotting

xmin, xmax, xres = -1, 1, 41 ymin, ymax, yres = -1, 1, 41

x = range(xmin, stop = xmax, length = xres) y = range(ymin, stop = ymax, length = yres) xs = repeat(x, outer=length(y)) ys = repeat(y, inner=length(x))

  1. plot vector field

vectors = df.(xs, ys) us = map((x) -> x[1], vectors) vs = map((x) -> x[2], vectors) us /= 5 vs /= 5 n = vec(norm.(vectors)) n /= maximum(n) / 10 arrows!(xs, ys, us, vs, arrowsize = n, linecolor=n, arrowcolor = :white)

Axis(scene[2,1], backgroundcolor = "black")

  1. plot contour of Lyapunov function for the vector field

arrows!(xs, ys, us, vs, arrowsize = n, linecolor=n, arrowcolor = :white)

  1. plot contour of Lyapunov function for the vector field

zs = lyapf.(xs, ys) Makie.contour!(xs, ys, zs, levels = 30, linewidth = 2, colormap = :grayC)


  1. display plot
  2. scene

save("LaSalle.png", scene)

```
Date
Source Own work
Author Cosmia Nebula

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:03, 28 June 2022Thumbnail for version as of 07:03, 28 June 20221,600 × 3,200 (1.66 MB)Cosmia Nebula (talk | contribs)Uploaded while editing "LaSalle's invariance principle" on en.wikipedia.org

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: