Day 29 - Calculus of Variations#

Announcements#
Midterm 2 is posted (Due 10 April 2026 at 11:59 pm)
Office Hours this week: Midterm 2 Help
Calculus of Variations#
Variational calculus is a mathematical method to find functions that optimize a certain quantity. We will use variational calculus to derive the Euler-Lagrange equations for a set of generalized coordinates (i.e., \(q,\dot{q}\)). This is fundamental to Lagrangian mechanics.
Clicker Question 29-1#
The generic segment, \(ds\), of a curve in 2D Cartesian coordinates is given by
The integral of \(ds\) from \(s_1\) to \(s_2\) gives the length of the curve, \(l\). What is the correct expression for \(l\)?
\(l = \int_{s_1}^{s_2} ds\)
\(l = \int_{s_1}^{s_2} \sqrt{(dx)^2 + (dy)^2}\)
\(l = \int_{s_1}^{s_2} \sqrt{1 + (dy/dx)^2} \, dx\)
\(l = \int_{s_1}^{s_2} \sqrt{(dx/dy)^2 + 1} \, dy\)
More than one of the above
Clicker Question 29-2#
I can explain why:
where \(Y(x) = y(x) + \alpha \eta(x)\), the true path plus an error term.
Yes, I can explain why
I think I can explain why
I’m having trouble seeing why
I don’t think I can explain why
Clicker Question 29-3#
For the function \(Y(x) = y(x) + \alpha \eta(x)\), where \(y(x)\) is the true path, \(\eta(x)\) is a small error term, and \(\alpha\) is a small parameter, what is the derivative of \(Y(x)\) with respect to \(\alpha\)?
\(y(x)\)
\(\eta(x)\)
\(\eta'(x)\)
\(\alpha \eta(x)\)
\(y'(x) + \alpha \eta'(x)\)
Clicker Question 29-4#
For the function \(Y'(x) = y'(x) + \alpha \eta'(x)\), what is the derivative of \(Y'(x)\) with respect to \(\alpha\)?
\(y'(x)\)
\(\eta'(x)\)
\(\eta''(x)\)
\(\alpha \eta'(x)\)
\(y''(x) + \alpha \eta''(x)\)
Clicker Question 29-5#
The “surface term” that we computed for \(\int_{s_1}^{s_2} \eta'(x) \frac{df}{dy'} dx\) is:
I can explain why this surface term is equal to zero:
Yes, I can explain why
I think I can explain why
I’m having trouble seeing why
I don’t think I can explain why
I don’t know what a surface term is
Clicker Question 29-6#
We completed this derivation with the following mathematical statement:
where \(\eta(x)\) is an arbitrary function. What does this imply about the term in square brackets?
The term in square brackets must be a pure function of \(x\).
The term in square brackets must be a pure function of \(y\).
The term in square brackets must be a pure function of \(y'\).
The term in square brackets must be zero.
The term in square brackets must be a non-zero constant.