How Can a Positive Increasing Function Minimize a Cosine-Squared Integral?

  • Context: Graduate 
  • Thread starter Thread starter dirk_mec1
  • Start date Start date
  • Tags Tags
    Minimization
Click For Summary

Discussion Overview

The discussion revolves around finding a positive increasing function \(\phi(x)\) that minimizes a specific integral involving second derivatives and cosine terms. Participants explore the formulation of the integral, the application of the Euler-Lagrange equation, and the potential for numerical solutions, including the use of numerical solvers and finite element methods.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes minimizing the integral \(\int_0^L A \frac{d^2 \phi(x)}{dx^2} + (B + C \cos(\phi(x)))^2 \, dx\) with boundary conditions \(\phi(0) = 0\) and \(\phi'(L) = 0\).
  • Another participant questions the formulation of the integral, suggesting that the first term is not in differential form and that the action should involve time \(dt\) instead of coordinate \(dx\).
  • A participant corrects the integral to include the square of the derivative, stating it should be \(\int_0^L A \left( \frac{d \phi(x)}{dx} \right)^2 + (B + C \cos(\phi(x)))^2 \, dx\).
  • There is a discussion about the application of the Euler-Lagrange equation, with one participant deriving a form that includes terms involving sine and cosine functions.
  • Several participants express uncertainty about the correct formulation and whether additional terms are necessary in the equations derived.
  • Numerical methods are discussed, with one participant suggesting the use of a numerical solver like Runge-Kutta and another mentioning the bvp solver in Matlab.
  • There is a query about the implications of having \(D\) as a function of \(x\) and whether this affects the ability to solve the equation numerically.
  • Some participants emphasize that if \(D\) is not constant, it should be accounted for in the Euler-Lagrange equation.

Areas of Agreement / Disagreement

Participants express differing views on the correct formulation of the integral and the application of the Euler-Lagrange equation. There is no consensus on the necessary terms or the best approach for numerical solutions, indicating ongoing debate and uncertainty.

Contextual Notes

Limitations include potential missing assumptions regarding the formulation of the integral, the dependence on definitions of terms, and unresolved mathematical steps in deriving the Euler-Lagrange equation.

dirk_mec1
Messages
755
Reaction score
13
I'm trying to find a increasing positive function [itex]\phi (x)[/itex] that minimizes the following integral for x in [0, L]:

[tex]\int_0^L A \frac{ d ^2 \phi (x) } {dx^2}+ (B +C cos( \phi (x)) ^2 \mbox{d}x[/tex]

with A and B real positve numbers and
[itex]\phi (0) =0[/itex]
[itex]\phi ' (L) =0[/itex]

When I use the the Lagrange equations I get:

[tex]\phi '' (x) + D sin(\phi (x) ) + E sin(\phi (x) ) cos( \phi (x) ) = 0[/tex]

with D and E a constant.Is this correct?

Can I find a numerical solution for this nonlinear ODE?
 
Last edited:
Physics news on Phys.org
I think there are problems with the integral, first of all first term in the integral is not in the differential form, secondly shouldn't the action be an integral taken by time dt instead of coordinate dx? Otherwise I'm not sure you can use Lagrangian to minimize that integral, I might be wrong. And one more thing, Lagrangian should not be dependent on the second derivatives.
 
Yes only the x-coordinate is applicable. The first term should be a square.

[tex]\int_0^L A \left( \frac{ d \phi (x) } {dx} \right) ^2 + (B +C cos( \phi (x)) ^2 \mbox{d}x[/tex]

A, B and C are constants.

Can I use a numerical solver like Runge-Kutta for the solution (as I posted in the first post)?
 
Last edited:
Square of derivative is not same as second derivative and parentheses are missing:

[tex]\int_0^L ( A \left( \frac{ d \phi (x) } {dx} \right) ^2 + (B +C cos( \phi (x)) ^2 \mbox ) {d}x[/tex]

Applying Euler-Lagrange equation which has a form:

[tex]\frac{d}{dx}\frac{\partial L}{\partial \frac{d\phi }{dx}}-\frac{\partial L}{\partial \phi }=0[/tex]

What I get is

[tex]A\cdot \phi \:''+C\cdot cos\left(\phi \:\right)sin\left(\phi \:\right)=0[/tex]

And sure, you can now apply numerical analysis to solve this.
 
Yes I forgot brackets. I am pretty sure you forgot a term.

If you work out the second squared term you'll get this:

[tex]B^2 +2BCcos( \phi) + C^2 cos( \phi )[/tex]

Which will lead to a sin() and a sin()*cos().
 
dirk_mec1 said:
I am pretty sure you forgot a term.

Ups, sorry, I did. Did you figure out how to do the numerical approximation?
 
Yes, I can use the bvp solver of Matlab. If I want to so this by hand I have to use finite elements, right?
 
If D is some function of x is it still possbile to solve this numerically? Thus:

[tex]\phi '' (x) + D(x) sin(\phi (x) ) + E sin(\phi (x) ) cos( \phi (x) ) = 0[/tex]

Or do I have to use finite elements?
 
Last edited:
dirk_mec1 said:
If D is some function of x is it still possbile to solve this numerically? Thus:

[tex]\phi '' (x) + D(x) sin(\phi (x) ) + E sin(\phi (x) ) cos( \phi (x) ) = 0[/tex]

Or do I have to use finite elements?
If D is not constant you should have took care of it when writing Euler-Lagrange equation by applying derivative to it too.
 
  • #10
No, because it is only dependent on x and not of phi(x).
 
  • #11
dirk_mec1 said:
No, because it is only dependent on x and not of phi(x).
Oh, you're right again.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K