Undergrad Numerical Calculus of Variations

Click For Summary
The discussion focuses on solving the brachistochrone problem numerically using a direct method with Lagrange polynomials. The time functional is expressed as an integral that becomes problematic when the denominator vanishes at the endpoint (x_0, 0). Attempts to set an initial velocity (v_0) to avoid this issue have not led to convergence for small values of v_0. A suggested solution is to reformulate the model to make velocity dependent on acceleration rather than displacement. This approach may provide a more stable method for handling the initial conditions of the problem.
Pablo Brubeck
Messages
6
Reaction score
0
I attempt to solve the brachistochrone problem numerically. I am using a direct method which considers the curve ##y(x)## as a Lagrange polynomial evaluated at fixed nodes ##x_i##, and the time functional as a multivariate function of the ##y_i##. The classical statement of the problem requires the curve ##y(x)## to have its endpoints on ##(x_0, 0)## and ##(x_1, y_1)## and the initial velocity of the particle to be ##v_0=0##, so that the time functional would take the form

$$ T[y]=\int_{x_0}^{x_1} \sqrt{\frac{1+\left[\frac{dy}{dx}\right]^2}{2gy}} dx $$.

The derivative ##\frac{dy}{dx}## is approximated from the Lagrange polynomial and the integral is computed using a quadrature rule, then the functional is minimized using an interior point method. But the problem comes when the denominator of the integrand vanishes, which will always happen at the endpoint ##(x_0, 0)##. I tried to avoid this by setting ##v_0##, but the method fails to converge to a continuous curve for arbitrary small ##v_0##.

What would be the proper way to handle this situation?
 
Physics news on Phys.org
Pablo Brubeck said:
What would be the proper way to handle this situation?

Intuitively, your formulation makes velocity a function of displacement, so if there is no initial displacement then there "is no reason" the particle should begin moving. You could reformulate the model so velocity depends on acceleration.
 
Thread 'What is the pressure of trapped air inside this tube?'
As you can see from the picture, i have an uneven U-shaped tube, sealed at the short end. I fill the tube with water and i seal it. So the short side is filled with water and the long side ends up containg water and trapped air. Now the tube is sealed on both sides and i turn it in such a way that the traped air moves at the short side. Are my claims about pressure in senarios A & B correct? What is the pressure for all points in senario C? (My question is basically coming from watching...

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K