1

While running some code, I saw this post asking on how to graph a functional. I've been thinking about the subject myself, and how to do some nice visualizations of function spaces (and some associated functional).

The author of that post wanted an answer, so I thought I'd go ahead with my ideas and take a crack at drawing out not only the graph of a simple function space, but also the graph of a functional defined on it.

I'm going to use a very simple toy function space, but I feel you can easily extrapolate off of what I've written.


Graph of Function Space:

Formally, denote the space of all smooth functions on the unit interval by $\text C^\infty [0,1]$.

We know that we can have an indexed family of functions $f_y: [0, 1] \rightarrow \mathbb R $ that every function in our space is part of. We can choose to have indexed functions be ones that we are well acquainted with. For instance, we can have $f_0 (x) = x$ and then have $f_1(x) = \sin (x)$. We can choose to have all intermediate functions be given by a straight-line homotopy.

Consequently, the graph of our function space will be given by all points $\left(x, y, f_y(x) \right)$.

Practically, we'll only be able to draw out a finite number of functions and the straight-line homotopies between them, but this isn't any different than only being able to draw a function of form $\mathbb R \rightarrow \mathbb R$ on a small "slice" of its domain.

We can draw this "slice" of our graph as a family of green curves, which due to the homotopy between them resembles a kind of surface:

Visualizing part of a function space


Graph of Functional:

The graph of the functional $\omega: \text C^\infty [0, 1] \rightarrow \mathbb R$ is extremely easy to define. It is all points $\left(0, y, \omega(f_y) \right)$. We can draw this graph as an orange curve. Drawing directly on top of the "slice" of our previous construction, we can obtain a picture that looks something like this:

Visualizing a functional on top of a function space


Has this been done before? Are there other methods that draw the graph of a functional out? I feel like this is a nice toy for visualizing things like extremals and variational methods, either through a static picture or an animation.

Soumik Mukherjee
  • 746
  • 1
  • 5
  • 15
Nate
  • 1,651
  • This sentence is rather odd: We know that we can have a homotopy $f_y: [0, 1] \rightarrow \mathbb R $ that parameterizes every function in our space. What does it mean? "Every function in our space" *is* a function $f : [0,1] \to \mathbb R$, so what extra information are you trying to impart? – Lee Mosher Dec 17 '24 at 14:27
  • @LeeMosher It says that every function in our function space can be part of a homotopy (parameterized by $y$). It is making the same statement that I wanted a proof for in my last question (that I linked and that you gave an answer for). Let me know if there's a better phrasing; I'll rewrite the sentence. – Nate Dec 17 '24 at 14:33
  • This is possibly not appropriate for this web site, but +1 for trying something interesting. – JonathanZ Dec 17 '24 at 14:52

0 Answers0