#PhysicsFactlet (273)
A brief introduction to the calculus of variations.
Trigger warning: lots of formulas manipulated the way experimental physicists do šŸ™‚
šŸ§µ 1/
The simplest introduction to the calculus of variations is to solve in a slightly roundabout way a very easy geometrical problem: what is the shortest path between 2 points on a plane?
(spoiler: it's a straight line)
2/
Let's pretend we have no idea, and so we are forced to take into consideration all possible functions passing through 2 given points. What we want to do is to calculate the length of each of them, and select the shortest one.
(spoiler: we are not REALLY going to do that)
3/
The length of a curve is given by the integral (between the start and finish points) of the infinitesimal lengths ds. And, since we are on the plane, ds is given by Pythagoras theorem.
4/
With some manipulation that will make any mathematician in a 10km radius scream, we can rewrite ds, and thus the length of the curve, in a more convenient way.
5/
What we want to do now is to look over all possible functions that pass from the two points, and select the one with the shortest length. This is impossible to do via brute force, so we are going to "cheat" šŸ™‚
6/
Imagine that y(x) is the function we are looking for (i.e. our solution). Any function f(x) that we look will be the (unknown) solution y(x) plus a "perturbation" Īµ Ī·(x), where Ī·(x) is also a function, and Īµ is a number that tells us how big the perturbation is.
7/
When you look for the minimum of a function (or functional), what you want to do is to differentiate it, and then look when the derivative is zero. In this case we want to differentiate with respect to Īµ. Furthermore we know that we will get our solution at Īµ=0.
8/
To make the derivative we make use of the chain rule, and then we set Īµ=0 remembering how we defined f(x).
9/
The next step is (as it is often the case) an integration by parts.
The first term is zero because Ī·(x) is zero at both extremes. So also the second term must be zero, and it must be zero for every possible Ī·, meaning that the part in square brackets must be zero too.
10/
If the derivative of a function is zero, it means that the function itself is a constant. And if we rearrange it, we find that y' is also a constant, meaning that our solution was a straight line after all!
Is your mind suitable blown? šŸ˜‰
11/
Was this just much ado about nothing? Well, we solved a problem we already knew the solution of, but in doing so we stumbled on a quite general way of solving this kind of problems. So let's look again at what we have done.
12/
Let's say we want to find the function f that minimizes (or maximizes) the functional I. We can once again pretend that f is the sum of our unknown solution + a perturbation.
13/
To find the minimum (or the maximum) we want to differentiate with respect to Īµ, and then set Īµ=0 like we did before.
14/
We again integrate by parts the second term, and notice that we remain with a term that goes to zero because Ī· is zero at the extremes, and a term that must be zero whatever Ī· is.
15/
The final differential equation that we found might be familiar to you, as it is exactly the Euler-Lagrange equation that governs the dynamics of classical mechanics systems. We just have to interpret the parameter x as time, and F as the Lagrangian of the system.
16/
Exercise (a simple but instructive one): find the shortest line between two points on a cylinder.
Obviously we want to do it in cylindrical coordinates. We can also assume that the axis of the cylinder is aligned with the z coordinate, and that the cylinder has radius R.
17/
What is the functional we want to minimize? As we did before we use Pythagoras' theorem to find ds and thus the length of the curve.
18/
Since we now know F, we apply the Euler-Lagrange equation we found above, and (lo and behold!) we find that the geodesics on a cylinder looks suspiciously similar to the geodesics on a plane šŸ˜‰
19/
This is clearly just the tip of the iceberg, but if you were not familiar with the calculus of variations, I hope I managed to show you the general idea behind it šŸ™‚
20/20

(If you manage to read through 20 tweets with all those equations, I congratulate you!!!)

ā€¢ ā€¢ ā€¢

Missing some Tweet in this thread? You can try to force a refresh
怀

Keep Current with Jacopo Bertolotti

Jacopo Bertolotti Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @j_bertolotti

22 Nov 20
A few days ago I was asked by some last year students advice on how to decide whether doing a PhD is the right thing to do. I will put here a summary of what I told them, just in case it can be useful for someone else.
šŸ§µ 1/
[Disclaimer: What follows are personal opinions based on STEM disciplines in Europe. So this is a partial and (by definition) incomplete picture.
Also, I am assuming you like the subject you want to do a PhD in, and that you can find a supervisor who is not a sociopath.]
2/
During a PhD you will tackle one or more problems/questions that no one has a answer for. This is dramatically different from what you have ever done at Uni, where all problems had a solution somewhere.
3/
Read 7 tweets
14 Jun 20
I am experimenting with recording lectures for the coming term.
Here I will make a summary of how it went in (semi)real-time. Wish me luck šŸ˜°
First experiment was (as expected) a disaster.
What was supposed to be a 10min video was over 20min long, with me mumbling, mispronouncing half of the words, and in general being too worried about recording to remember to explain anything. šŸ˜­
I was definitively optimistic on how much stuff I can fit in 10 minutes. Will need to rethink how I cut the lectures into videos.
Read 10 tweets
6 Aug 18
Moving all the old Physics factlects to the same hashtag to make easier to find them. As Twitter does not allow me to edit my tweets, I need to repost all of them. Apologies if this floods your timeline.
#Physicsfactlet (1)
The uncertainty principle is not a principle, it is a theorem. Just like the Pauli exclusion principle and many others. It was a principle when it was first formulated, but we have since realised that it can be derived from first principles.
#Physicsfactlet (2)
There is nothing quantum in describing particles as waves. In fact one can rewrite the whole Newtonian mechanics as a wave theory without changing any result or prediction. (See Hamilton-Jacobi formalism)
Read 26 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!