How is it possible to minimize a definite integral, if there are three parameters that can be varied in the...












0














I have been attempting to minimize the following integral:



$$
T=int_{a}^{b}sqrt{frac{1+y'^2}{2gy}}dx,
$$



knowing that $y$ is of the form:
$$
y = a_0 +a_1 x+a_2x^2
$$

and that $y(0)=2$ and $y(pi)=0$. I don't know that it is possible to solve the integral analytically, and so I have been thinking that I should use the Euler-Lagrange differential equation (see this for details).



The trouble is, that I've found $a_2$ as a function of $x$, by recognizing $a_0=2$ and $a_1=-Big(frac{2}{pi}+pi a_2Big)$ and substituting everything into the Euler-Lagrange differential equation, which obviously doesn't make sense.



Is there any other way to solve such a problem? Am I just messing up a calculation somewhere? I'm working in Python, which has been making it difficult to keep track of variables, so it may be that the latter is in fact true.



I would appreciate very much any help in figuring this out.










share|cite|improve this question
























  • Could you tell what is $g$ ?
    – Claude Leibovici
    Nov 25 at 4:30










  • The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
    – Rahul
    Nov 25 at 4:31








  • 1




    This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
    – Rahul
    Nov 25 at 4:33










  • @ClaudeLeibovici: $g$ is in this case a constant.
    – T. Zaborniak
    Nov 25 at 4:45










  • @Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
    – T. Zaborniak
    Nov 25 at 4:48
















0














I have been attempting to minimize the following integral:



$$
T=int_{a}^{b}sqrt{frac{1+y'^2}{2gy}}dx,
$$



knowing that $y$ is of the form:
$$
y = a_0 +a_1 x+a_2x^2
$$

and that $y(0)=2$ and $y(pi)=0$. I don't know that it is possible to solve the integral analytically, and so I have been thinking that I should use the Euler-Lagrange differential equation (see this for details).



The trouble is, that I've found $a_2$ as a function of $x$, by recognizing $a_0=2$ and $a_1=-Big(frac{2}{pi}+pi a_2Big)$ and substituting everything into the Euler-Lagrange differential equation, which obviously doesn't make sense.



Is there any other way to solve such a problem? Am I just messing up a calculation somewhere? I'm working in Python, which has been making it difficult to keep track of variables, so it may be that the latter is in fact true.



I would appreciate very much any help in figuring this out.










share|cite|improve this question
























  • Could you tell what is $g$ ?
    – Claude Leibovici
    Nov 25 at 4:30










  • The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
    – Rahul
    Nov 25 at 4:31








  • 1




    This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
    – Rahul
    Nov 25 at 4:33










  • @ClaudeLeibovici: $g$ is in this case a constant.
    – T. Zaborniak
    Nov 25 at 4:45










  • @Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
    – T. Zaborniak
    Nov 25 at 4:48














0












0








0


1





I have been attempting to minimize the following integral:



$$
T=int_{a}^{b}sqrt{frac{1+y'^2}{2gy}}dx,
$$



knowing that $y$ is of the form:
$$
y = a_0 +a_1 x+a_2x^2
$$

and that $y(0)=2$ and $y(pi)=0$. I don't know that it is possible to solve the integral analytically, and so I have been thinking that I should use the Euler-Lagrange differential equation (see this for details).



The trouble is, that I've found $a_2$ as a function of $x$, by recognizing $a_0=2$ and $a_1=-Big(frac{2}{pi}+pi a_2Big)$ and substituting everything into the Euler-Lagrange differential equation, which obviously doesn't make sense.



Is there any other way to solve such a problem? Am I just messing up a calculation somewhere? I'm working in Python, which has been making it difficult to keep track of variables, so it may be that the latter is in fact true.



I would appreciate very much any help in figuring this out.










share|cite|improve this question















I have been attempting to minimize the following integral:



$$
T=int_{a}^{b}sqrt{frac{1+y'^2}{2gy}}dx,
$$



knowing that $y$ is of the form:
$$
y = a_0 +a_1 x+a_2x^2
$$

and that $y(0)=2$ and $y(pi)=0$. I don't know that it is possible to solve the integral analytically, and so I have been thinking that I should use the Euler-Lagrange differential equation (see this for details).



The trouble is, that I've found $a_2$ as a function of $x$, by recognizing $a_0=2$ and $a_1=-Big(frac{2}{pi}+pi a_2Big)$ and substituting everything into the Euler-Lagrange differential equation, which obviously doesn't make sense.



Is there any other way to solve such a problem? Am I just messing up a calculation somewhere? I'm working in Python, which has been making it difficult to keep track of variables, so it may be that the latter is in fact true.



I would appreciate very much any help in figuring this out.







functional-equations maxima-minima classical-mechanics euler-lagrange-equation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 25 at 4:10

























asked Nov 25 at 3:47









T. Zaborniak

11




11












  • Could you tell what is $g$ ?
    – Claude Leibovici
    Nov 25 at 4:30










  • The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
    – Rahul
    Nov 25 at 4:31








  • 1




    This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
    – Rahul
    Nov 25 at 4:33










  • @ClaudeLeibovici: $g$ is in this case a constant.
    – T. Zaborniak
    Nov 25 at 4:45










  • @Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
    – T. Zaborniak
    Nov 25 at 4:48


















  • Could you tell what is $g$ ?
    – Claude Leibovici
    Nov 25 at 4:30










  • The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
    – Rahul
    Nov 25 at 4:31








  • 1




    This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
    – Rahul
    Nov 25 at 4:33










  • @ClaudeLeibovici: $g$ is in this case a constant.
    – T. Zaborniak
    Nov 25 at 4:45










  • @Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
    – T. Zaborniak
    Nov 25 at 4:48
















Could you tell what is $g$ ?
– Claude Leibovici
Nov 25 at 4:30




Could you tell what is $g$ ?
– Claude Leibovici
Nov 25 at 4:30












The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
– Rahul
Nov 25 at 4:31






The Euler-Lagrange equation is useful if your unknown is a function (i.e. if you're doing variational calculus). Here your unknowns are three scalars. What you need to do instead is compute the derivatives $dT/da_i$ using differentiation under the integral sign and set them to zero.
– Rahul
Nov 25 at 4:31






1




1




This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
– Rahul
Nov 25 at 4:33




This may also be too hard to find an analytical solution, and you may have to resort to numerical methods.
– Rahul
Nov 25 at 4:33












@ClaudeLeibovici: $g$ is in this case a constant.
– T. Zaborniak
Nov 25 at 4:45




@ClaudeLeibovici: $g$ is in this case a constant.
– T. Zaborniak
Nov 25 at 4:45












@Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
– T. Zaborniak
Nov 25 at 4:48




@Rahul: so because there is a single unknown scalar after accounting for initial conditions, what you're saying is that I can differentiate with respect to $a_2$ (in this case), and set the resultant intergrand to zero, to solve for $a_2$?
– T. Zaborniak
Nov 25 at 4:48















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012413%2fhow-is-it-possible-to-minimize-a-definite-integral-if-there-are-three-parameter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012413%2fhow-is-it-possible-to-minimize-a-definite-integral-if-there-are-three-parameter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa