Personal tools

Variational Calculus: Difference between revisions

From biophysics wiki

Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
This article deals with minimizing or maximizing functions. From calculus we know that the extremum of a function $P(u)$ is where its derivative is zero $P'=0$. Sometimes we want to solve a more general problem where $u$ itself is a function of $x$ and $P$ an integral. We want to find a function $u(x)$ that minimizes (or maximizes) $P[u(x)]$, rather than a particular point. Problems of this kind arise e.g. in Optimal Control, Lagrangian and Hamiltonian Mechanics as well as in Optics.
This article deals with minimizing or maximizing functions. From calculus we know that the extremum of a function $P(u)$ is where its derivative is zero $P'=0$. Sometimes we want to solve a more general problem where $u$ itself is a function of $x$ and $P$ an integral. We want to find a function $u(x)$ that minimizes (or maximizes) $P[u(x)]$, rather than a particular point. Problems of this kind arise e.g. in Optimal Control, Lagrangian and Hamiltonian Mechanics as well as in Optics.


Let's for the beginning stick to the equation $P(u)=\int \frac{1}{2}c \cdot (u'(x))^2-f(x)u(x) \, dx$ without resticting ourselfes to a physical situation. If you want you can thing of it as the kinetic energie $\frac{mv^2}{2}$ minus the potential energy with spring konstant $f$ and displacement $u$. To find the function $u$ that minimizes $P$ we develop $P(u)$ into a Taylorseries.  
To find the function $u$ that minimizes $P$ we develop $P(u)$ into a Taylorseries.  
\begin{align}
\begin{align}
P(u)=P(u^*)+P'(u^*) \cdot v + O(v^2)
P(u)=P(u^*+v)=P(u^*)+P'(u^*) \cdot v + O(v^2)\\
P(u)=P(u^*+v)-P(u^*)=P'(u^*) \cdot v + O(v^2)\\
\end{align}
\end{align}
Suppose we are at minimum $u^*$ of a curve. To first approximation the following holds. As we move a little bit away from the minimum $u^*$ by $v$ we don't change P(u) since $P'(u)$ is zero. Thus, ''at the minimum $P(u)$ is stationary with respect to changes in $u$''.
Suppose we are at minimum $u^*(x)$ of a curve. To first approximation the following holds. As we perturb $u^*(x)$ a little bit by $v$ we don't change P(u) since $P'(u^*)$ is zero. Thus, ''at the minimum $P(u)$ is stationary with respect to changes in $u$''.
 


To remind ourselfes that we are doing variational calculus we use the symbol $\delta$ and call the first derivative of $P$ with respect to $u$ '''the first variation'''
To remind ourselfes that we are doing variational calculus we use the symbol $\delta$ and call the first derivative of $P$ with respect to $u$ '''the first variation'''
Line 21: Line 21:
\end{align}
\end{align}
</div>
</div>
For the proposed equation the function $u$ that minimizes - or makes stationary $P(u)$ with $u'(x)=v$ is
The standard problem of variational calculus deals with an integral of a function of two variables $F(u,u')$. The classical example is the Lagrangeian in Classical Mechanics.
\begin{align}
 
\frac{\delta P}{\delta u}&=\int \frac{\delta}{\delta u} \left( \frac{1}{2}c \cdot v^2-f(x)u(x) \right) \, dx=0\\
&=\int c \cdot v \cdot v' - f \, dx=\int c \cdot u' \cdot v' - f \, dx=0
\end{align}
So we have for the so called '''weak form''' of the Euler-Lagrange equation
<div style="background:#FEF5CA;border:1px solid #797979;border-radius:10px;padding:5px 15px 5px 15px;">
<div style="background:#FEF5CA;border:1px solid #797979;border-radius:10px;padding:5px 15px 5px 15px;">
\begin{align}
\begin{align}
\int c \cdot u' \cdot v' = \int f \, dx=0
\frac{\delta P}{\delta u}=\int F(u,u') \, dx \hspace{2cm}\text{with } u(0)=a \text{ and } u(1)=b
\end{align}
\end{align}
</div>
</div>





Revision as of 16:01, 16 May 2013

This article deals with minimizing or maximizing functions. From calculus we know that the extremum of a function $P(u)$ is where its derivative is zero $P'=0$. Sometimes we want to solve a more general problem where $u$ itself is a function of $x$ and $P$ an integral. We want to find a function $u(x)$ that minimizes (or maximizes) $P[u(x)]$, rather than a particular point. Problems of this kind arise e.g. in Optimal Control, Lagrangian and Hamiltonian Mechanics as well as in Optics.

To find the function $u$ that minimizes $P$ we develop $P(u)$ into a Taylorseries. \begin{align} P(u)=P(u^*+v)=P(u^*)+P'(u^*) \cdot v + O(v^2)\\ P(u)=P(u^*+v)-P(u^*)=P'(u^*) \cdot v + O(v^2)\\ \end{align} Suppose we are at minimum $u^*(x)$ of a curve. To first approximation the following holds. As we perturb $u^*(x)$ a little bit by $v$ we don't change P(u) since $P'(u^*)$ is zero. Thus, at the minimum $P(u)$ is stationary with respect to changes in $u$.

To remind ourselfes that we are doing variational calculus we use the symbol $\delta$ and call the first derivative of $P$ with respect to $u$ the first variation

\begin{align} \frac{\delta P}{\delta u} \end{align}

<br\><br\> The problem of finding the extremum of the first variation by setting it zero leads to the Euler-Lagrange Equation

\begin{align} \frac{\delta P}{\delta u}=0 \end{align}

The standard problem of variational calculus deals with an integral of a function of two variables $F(u,u')$. The classical example is the Lagrangeian in Classical Mechanics.

\begin{align} \frac{\delta P}{\delta u}=\int F(u,u') \, dx \hspace{2cm}\text{with } u(0)=a \text{ and } u(1)=b \end{align}









Further Reading

  • Gilbert Strang - Calculus of Variations [1]