Variational expression: a demonstration

In summary, the conversation is about a variational expression involving a quantity L and a ratio K. The ratio can be determined using known functions and an integer n. If there is an error in the estimation of one of the functions, it will result in a proportional error in the estimation of the ratio. However, the proposed solution for handling this error may not be accurate in general.
  • #1
EmilyRuck
136
6

Homework Statement



Hello!
My problem is with a variational expression. I have a quantity, say L, which could be determined by the ratio:

[itex]K = \displaystyle \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2}[/itex]

Where [itex]e_1(x), e_n(x)[/itex] are known functions and [itex]n[/itex] is an integer, with [itex]n > 1[/itex].
If I couldn't know exactly [itex]E(x)[/itex] and I substitute it with [itex]E_0(x) + \delta E(x)[/itex], I have to demonstrate that the corresponding [itex]\delta K[/itex] is proportional to [itex][\delta E(x)]^2[/itex].
So an error of 10 % made during the estimation of [itex]E(x)[/itex] is an error of only 1 % for the corresponding estimation of [itex]K[/itex].

Homework Equations





The Attempt at a Solution



I tried to write the square of numerator and denominator:

[itex]K + \delta K = \displaystyle \frac{\left[\int_a^b [E(x) + \delta E(x)] e_n(x)dx\right]^2}{\left[\int_a^b [E(x) + \delta E(x)] e_1(x)dx\right]^2} = [/itex]
[itex] \displaystyle = \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2 + 2\int_a^b E(x)e_n(x)dx \int_a^b \delta E(x)e_n(x)dx + \left[\int_a^b \delta E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2 + 2\int_a^b E(x)e_1(x)dx \int_a^b \delta E(x)e_1(x)dx + \left[\int_a^b \delta E(x)e_1(x)dx\right]^2}[/itex]

We can easily substitute the integral expression with letters and write:

[itex]K + \delta K = \displaystyle \frac{a^2 + 2ab + b^2}{c^2 + 2cd + d^2}[/itex]

How could I do now?
Could I neglect the [itex]b^2[/itex] and [itex]d^2[/itex] terms because they are small? If I do this, then I could divide both numerator and denominator by [itex]c^2[/itex] and take the Taylor series expansion of the denominator truncated to the first order, so

[itex]K + \delta K \simeq \frac{\displaystyle \frac{a^2}{c^2} + \displaystyle \frac{2ab}{c^2}}{1 + \displaystyle \frac{2d}{c}} \simeq \left(\displaystyle \frac{a^2}{c^2} + \frac{2ab}{c^2}\right)\left(1 + \displaystyle \frac{2d}{c}\right)[/itex]

But in this way I can't separate yet [itex]a[/itex] and [itex]c[/itex] from [itex]b[/itex] and [itex]d[/itex], and I can't write a term with only [itex]c^2[/itex] or [itex]d^2[/itex]. How can I proceed?
Thank you if you read this post,

Emily
 
Physics news on Phys.org
  • #2
EmilyRuck said:

Homework Statement



Hello!
My problem is with a variational expression. I have a quantity, say L, which could be determined by the ratio:

[itex]K = \displaystyle \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2}[/itex]

Where [itex]e_1(x), e_n(x)[/itex] are known functions and [itex]n[/itex] is an integer, with [itex]n > 1[/itex].
If I couldn't know exactly [itex]E(x)[/itex] and I substitute it with [itex]E_0(x) + \delta E(x)[/itex], I have to demonstrate that the corresponding [itex]\delta K[/itex] is proportional to [itex][\delta E(x)]^2[/itex].
So an error of 10 % made during the estimation of [itex]E(x)[/itex] is an error of only 1 % for the corresponding estimation of [itex]K[/itex].

Homework Equations





The Attempt at a Solution



I tried to write the square of numerator and denominator:

[itex]K + \delta K = \displaystyle \frac{\left[\int_a^b [E(x) + \delta E(x)] e_n(x)dx\right]^2}{\left[\int_a^b [E(x) + \delta E(x)] e_1(x)dx\right]^2} = [/itex]
[itex] \displaystyle = \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2 + 2\int_a^b E(x)e_n(x)dx \int_a^b \delta E(x)e_n(x)dx + \left[\int_a^b \delta E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2 + 2\int_a^b E(x)e_1(x)dx \int_a^b \delta E(x)e_1(x)dx + \left[\int_a^b \delta E(x)e_1(x)dx\right]^2}[/itex]

We can easily substitute the integral expression with letters and write:

[itex]K + \delta K = \displaystyle \frac{a^2 + 2ab + b^2}{c^2 + 2cd + d^2}[/itex]

How could I do now?
Could I neglect the [itex]b^2[/itex] and [itex]d^2[/itex] terms because they are small? If I do this, then I could divide both numerator and denominator by [itex]c^2[/itex] and take the Taylor series expansion of the denominator truncated to the first order, so

[itex]K + \delta K \simeq \frac{\displaystyle \frac{a^2}{c^2} + \displaystyle \frac{2ab}{c^2}}{1 + \displaystyle \frac{2d}{c}} \simeq \left(\displaystyle \frac{a^2}{c^2} + \frac{2ab}{c^2}\right)\left(1 + \displaystyle \frac{2d}{c}\right)[/itex]

But in this way I can't separate yet [itex]a[/itex] and [itex]c[/itex] from [itex]b[/itex] and [itex]d[/itex], and I can't write a term with only [itex]c^2[/itex] or [itex]d^2[/itex]. How can I proceed?
Thank you if you read this post,

Emily

The result you want is false, in general. Let us write [itex] \delta E(x) [/itex] as [itex] r h(x),[/itex] where [itex] h(x) [/itex] is a function (not necessarily small) and [itex] r[/itex] is the perturbation parameter (which we do think of a small). We have
[tex] K = K(r) = \left(\frac{a + br}{c + dr}\right)^2, [/tex] where
[tex] \begin{array}{l}a = \int_a^b e_0(x) E_0(x) \, dx \\
b = \int_a^b e_0(x) h(x) \, dx \\
c = \int_a^b e_n(x) E_0(x) \, dx \\
d = \int_a^b e_n(x) h(x) \, dx \end{array}
[/tex]
Your result requires that the Taylor expansion of K(r) have the form [itex]K(0) + K_2 r^2, [/itex] with no [itex] r^1[/itex] term. This is false: we have
[tex] K'(0) = dK(r)/dr|_{r=0} = \frac{2a}{c^3}(bc - ad), [/tex]
which is nonzero in general.

RGV
 
  • #3
Ray Vickson said:
The result you want is false, in general. Let us write [itex] \delta E(x) [/itex] as [itex] r h(x),[/itex] where [itex] h(x) [/itex] is a function (not necessarily small) and [itex] r[/itex] is the perturbation parameter (which we do think of a small). We have
[tex] K = K(r) = \left(\frac{a + br}{c + dr}\right)^2, [/tex] where
[tex] \begin{array}{l}a = \int_a^b e_0(x) E_0(x) \, dx \\
b = \int_a^b e_0(x) h(x) \, dx \\
c = \int_a^b e_n(x) E_0(x) \, dx \\
d = \int_a^b e_n(x) h(x) \, dx \end{array}
[/tex]
Your result requires that the Taylor expansion of K(r) have the form [itex]K(0) + K_2 r^2, [/itex] with no [itex] r^1[/itex] term. This is false: we have
[tex] K'(0) = dK(r)/dr|_{r=0} = \frac{2a}{c^3}(bc - ad), [/tex]
which is nonzero in general.

RGV

First of all, thank you for your reply!
Maybe you wanted to write:

[tex] \begin{array}{l}a = \int_a^b E_0(x) e_n(x) \, dx \\
b = \int_a^b h(x) e_n(x) \, dx \\
c = \int_a^b E_0(x) e_1(x) \, dx \\
d = \int_a^b h(x) e_1(x) \, dx \end{array}
[/tex]

Substituting:

[tex]bc - ad = 0 \Rightarrow \int_a^b h(x) e_n(x) \, dx \int_a^b E_0(x) e_1(x) \, dx - \int_a^b E_0(x) e_n(x) \, dx \int_a^b h(x) e_1(x) \, dx = 0[/tex]

It seems to be true just if the product of the integrals equals the integrals of the products. Isn't it?
According to my notes, the result about [tex][\delta E(x)]^2[/tex] should be true in general: my professor and another one said that in their lessons, without explaining why :frown:.

Emily
 
  • #4
EmilyRuck said:
First of all, thank you for your reply!
Maybe you wanted to write:

[tex] \begin{array}{l}a = \int_a^b E_0(x) e_n(x) \, dx \\
b = \int_a^b h(x) e_n(x) \, dx \\
c = \int_a^b E_0(x) e_1(x) \, dx \\
d = \int_a^b h(x) e_1(x) \, dx \end{array}
[/tex]

Substituting:

[tex]bc - ad = 0 \Rightarrow \int_a^b h(x) e_n(x) \, dx \int_a^b E_0(x) e_1(x) \, dx - \int_a^b E_0(x) e_n(x) \, dx \int_a^b h(x) e_1(x) \, dx = 0[/tex]

It seems to be true just if the product of the integrals equals the integrals of the products. Isn't it?
According to my notes, the result about [tex][\delta E(x)]^2[/tex] should be true in general: my professor and another one said that in their lessons, without explaining why :frown:.

Emily

Sorry, no. The product b*c involves the integral of e_n * h, while the product a*d involves the integral of e_1 * h. There is no reason why they should cancel. Look at it this way:
[tex]bc-ad = \int_a^b h(x) e_n(x) \, dx \int_a^b E_0(w) e_1(w) \, dw - \int_a^b E_0(w) e_n(w) \, dw \int_a^b h(x) e_1(x) \, dx .[/tex]
Does that look like 0 to you?

RGV
 
Last edited:
  • #5
EmilyRuck said:
First of all, thank you for your reply!
Maybe you wanted to write:

[tex] \begin{array}{l}a = \int_a^b E_0(x) e_n(x) \, dx \\
b = \int_a^b h(x) e_n(x) \, dx \\
c = \int_a^b E_0(x) e_1(x) \, dx \\
d = \int_a^b h(x) e_1(x) \, dx \end{array}
[/tex]

Substituting:

[tex]bc - ad = 0 \Rightarrow \int_a^b h(x) e_n(x) \, dx \int_a^b E_0(x) e_1(x) \, dx - \int_a^b E_0(x) e_n(x) \, dx \int_a^b h(x) e_1(x) \, dx = 0[/tex]

It seems to be true just if the product of the integrals equals the integrals of the products. Isn't it?
According to my notes, the result about [tex][\delta E(x)]^2[/tex] should be true in general: my professor and another one said that in their lessons, without explaining why :frown:.

Emily


To convince you the result is false, let's look at a numerical example. (Of course, the functions you are using in your study may not resemble the ones I use below; it may be that for the special functions you are using, the result could, conceivably, hold---just not for the reasons you claim.) Let's take [itex] E_0(x) = x,\: h(x) = x^2,\: e_n(x) = \sin(\pi x/2), \: e_1(x) = \cos(\pi x/2), \: a = 0, \:b = 1.[/itex] Then
[tex] \begin{array}{rcl}K &=& \frac{\left( \int_0^1 (x + r x^2) \sin(\pi x/2) \, dx \right)^2}{\left( \int_0^1 (x + r x^2) \cos(\pi x/2) \, dx \right)^2}\\
&\doteq& \frac{4(2.283185308\: r + 3.141592654)^2}{(3.586419096+1.869604404\: r)^2} \\
&=&3.069288133 + 1.261227604\: r - 0.527913928\: r^2 + O(r^3).
\end{array}
[/tex]
The term linear in r is not zero.

RGV
 
  • #6
Ray Vickson said:
To convince you the result is false, let's look at a numerical example. (Of course, the functions you are using in your study may not resemble the ones I use below; it may be that for the special functions you are using, the result could, conceivably, hold---just not for the reasons you claim.) Let's take [itex] E_0(x) = x,\: h(x) = x^2,\: e_n(x) = \sin(\pi x/2), \: e_1(x) = \cos(\pi x/2), \: a = 0, \:b = 1.[/itex]

Sorry if I'm late (I didn't receive notifications by e-mail).
I tried to do some numerical examples too, with functions very similar to your ones. In the particular problem, it should be

[itex]e_n(x) = \sin(n \pi x/w)\\
e_1(x) = \sin(\pi x/w)\\
E(x) = \displaystyle \sqrt{(x - a)(b - x)}[/itex]

with [itex]h(x)[/itex] whatever error function and [itex]w[/itex] a numerical positive constant; in my example I chose a sort of Gaussian distribution, [itex]h(x) = e^{-x^2}[/itex]. [itex]E(x)[/itex] should be the estimated function, so it is [itex]E(x) = E_0(x) + rh(x)[/itex] and this is all we know about the function. Don't worry if somewhere [itex]E(x)[/itex] becomes imaginary, it could happen.
But now I wonder why the professor said that . I agree with you, the first order error is nonzero!
Anyway, thank you so much for your calculations and observations, which are all right and useful!

Emily
 
  • #7
With a more accurate example, I tried these realistic values for each integral:

[itex]a = 1.9;\\
b=2.1;\\
w = 4[/itex]

and I had to consider [itex]E_0(x) = \sqrt{(x - a)(b - x)}[/itex] instead of [itex]E(x)[/itex] to make this example (I need an expression for [itex]E_0(x)[/itex]!).

[itex]n = 3, 5[/itex] gave a difference [itex]bc - ad[/itex] which is nonzero only if we consider a [itex]10^{-7}[/itex] precision (now a and b are the integrals, not their extremes!).
[itex]n = 9[/itex] gave a difference [itex]bc - ad[/itex] which is nonzero only if we consider a [itex]10^{-6}[/itex] precision and so on for increasing values of n.
But the contribution of the nth term for increasing [itex]n[/itex] is decreasing, so maybe we can consider in this case [itex]bc - ad \simeq 0[/itex].
I can't say which are the mathematical reasons for this result, but - strictly numerically - it seems to work.

Emily
 
  • #8
Even if in this textbook the calculation are quite different, the results that I should demonstrate are the same: the statement is:
K «is stationary for small arbitrary variations in the electric field distribution about its correct value. It, therefore, follows that a first-order approximation to the electric field distribution will yield a second-order approximation to» the value of K.
(Robert E. Collin, Field Theory of Guided Waves, Ch. 8)
 
  • #9
EmilyRuck said:
Even if in this textbook the calculation are quite different, the results that I should demonstrate are the same: the statement is:
K «is stationary for small arbitrary variations in the electric field distribution about its correct value. It, therefore, follows that a first-order approximation to the electric field distribution will yield a second-order approximation to» the value of K.
(Robert E. Collin, Field Theory of Guided Waves, Ch. 8)

I don't know why you are arguing; we are talking about two different things. The thing you wrote down in your original post was not, in general, stationary, so that is why the first-order differential was nonzero. If you did have a stationary thing then, of course, the first-order differential would be zero BY DEFINITION, and that would mean your deviations would be of second or higher order---no argument there.

RGV
 
  • #10
we are talking about two different things. The thing you wrote down in your original post was not, in general, stationary

Oh, so it had been a misunderstanding. My professor presented the first expression,

[tex]K = \displaystyle \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2}[/tex]

as a variational, stationary expression. This is why I wrote the post.

If you did have a stationary thing then, of course, the first-order differential would be zero BY DEFINITION

So, the [tex]K[/tex] expression is not stationary?
How can I recognize a stationary expression and where I can see that it has zero first-order differential?

Emily
 
  • #11
EmilyRuck said:
Oh, so it had been a misunderstanding. My professor presented the first expression,

[tex]K = \displaystyle \frac{\left[\int_a^b E(x)e_n(x)dx\right]^2}{\left[\int_a^b E(x)e_1(x)dx\right]^2}[/tex]

as a variational, stationary expression. This is why I wrote the post.



So, the [tex]K[/tex] expression is not stationary?
How can I recognize a stationary expression and where I can see that it has zero first-order differential?

Emily

I don't know the background or the context, so I don't know what K is supposed to be, or where it came from. I just took your word for it that K was supposed to be stationary at E = E_0, and I disputed that. However, maybe what you wrote is not what was meant, etc. At this point I give up.

RGV
 

1. What is a variational expression?

A variational expression is a mathematical concept used in the field of calculus of variations. It is an integral expression that represents the difference between a given function and a corresponding function with small variations.

2. How is variational expression used in science?

Variational expression is used in many areas of science, including physics, engineering, and economics. It is used to find the optimal value of a function, which can help scientists make predictions and solve problems in their respective fields.

3. What is the purpose of demonstrating a variational expression?

The purpose of demonstrating a variational expression is to show how it can be used to solve real-world problems. By demonstrating its applications, scientists can better understand the concept and its potential uses in their research.

4. What are some examples of variational expressions?

Some common examples of variational expressions include the Euler-Lagrange equation, the Hamilton's principle, and the Pontryagin's maximum principle. These expressions are used to solve problems related to optimization, control, and dynamics.

5. What are the benefits of using variational expressions in scientific research?

Variational expressions offer a powerful tool for solving complex problems in science. They allow scientists to optimize their models and make accurate predictions, leading to advancements in various fields of study. Additionally, variational expressions provide a deeper understanding of the underlying principles and laws of nature.

Similar threads

  • Calculus and Beyond Homework Help
Replies
13
Views
487
  • Calculus and Beyond Homework Help
Replies
4
Views
741
  • Calculus and Beyond Homework Help
Replies
1
Views
734
  • Calculus and Beyond Homework Help
Replies
12
Views
993
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
563
  • Calculus and Beyond Homework Help
Replies
3
Views
346
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
237
  • Calculus and Beyond Homework Help
Replies
8
Views
763
Back
Top