Using Fourier Sine basis to write x(L-x) [0,L]

In summary: It's important to note that the correct definition for the scalar product on the Hilbert space \mathrm{L}^2([-L,L],\mathbb{C}) is\langle f|g \rangle=\int_{-L}^{L} \mathrm{d} x \; f^*(x) g(x).Further the orthonormal function system |e_k \rangle given bye_k(x)=\sqrt{2}{L} \sin \left (\frac{n \pi x}{L} \right)spans all odd functions in this Hilbert space.Now you simply calculate the Fourier coefficients of
  • #1
Hakkinen
42
0

Homework Statement


A function [itex] F(x) = x(L-x) [/itex] between zero and L. Use the basis of the preceding problem to write this vector in terms of its components:
[itex]F(x)= \sum_{n=1}^{\infty}\alpha _{n}\vec{e_{n}}[/itex]
If you take the result of using this basis and write the resulting function outside the interval [itex]0<x<L[/itex], graph the result

Homework Equations


The basis as mentioned above is [itex]\vec{e_{n}}=\sqrt{\frac{2}{L}}\sin {\frac{n\pi x}{L}}[/itex]


The Attempt at a Solution



I don't really know where to start, do I just need to write F(x) as a Fourier series and then compute the coefficients using the standard "trick" to do so, ie sticking F(x) in the integral and so on?

The previous problem was just showing that the basis is orthonormal.
 
Physics news on Phys.org
  • #2
Hakkinen said:

Homework Statement


A function [itex] F(x) = x(L-x) [/itex] between zero and L. Use the basis of the preceding problem to write this vector in terms of its components:
[itex]F(x)= \sum_{n=1}^{\infty}\alpha _{n}\vec{e_{n}}[/itex]
If you take the result of using this basis and write the resulting function outside the interval [itex]0<x<L[/itex], graph the result

Homework Equations


The basis as mentioned above is [itex]\vec{e_{n}}=\sqrt{\frac{2}{L}}\sin {\frac{n\pi x}{L}}[/itex]

The Attempt at a Solution



I don't really know where to start, do I just need to write F(x) as a Fourier series and then compute the coefficients using the standard "trick" to do so, ie sticking F(x) in the integral and so on?

The previous problem was just showing that the basis is orthonormal.

Orthonormal with respect to what inner product? What happens if, in the equation$$
x(L-x)= \sum_{n=1}^{\infty}\alpha _{n}\vec{e_{n}}$$you take the inner product of both sides with ##e_k##? You need to show some work.
 
Last edited:
  • #3
LCKurtz said:
Orthonormal with respect to what inner product? What happens if, in the equation$$
F(x)= \sum_{n=1}^{\infty}\alpha _{n}\vec{e_{n}}$$you take the inner product of both sides with ##e_k##? You need to show some work.
Sorry, it's orthonormal with respect to the inner product defined as [itex] < f^{*},g> = \int_{0}^{L}f^{*}(x)g(x)dx [/itex]

EDIT:

So, taking the inner product of both sides of that equation

[itex]\sqrt{\frac{2}{L}}\int_{0}^{L}x(L-x)\sin {\frac{k\pi x}{L}}dx=\sum_{n=1}^{\infty}a_{n}\delta _{nk}[/itex]
After evaluating the integral I should be able to get the coefficients [itex]a_{n}[/itex] ?
 
Last edited:
  • #4
Hakkinen said:
Sorry, it's orthonormal with respect to the inner product defined as [itex] < f^{*},g> = \int_{0}^{L}f^{*}(x)g(x)dx [/itex]

In response to your question, the RHS should just be zero correct? as you're taking the inner product of two basis vectors that are known to be orthogonal.

Notice I edited my post to put ##x(L-x)## for ##F(x)##. You need to write out the both sides and show me what you get. You have both ##k## and ##n## variables on the RHS.
 
  • #5
Okay, so the RHS should actually just be [itex] a_{k} [/itex] because of the delta term?

Thanks for your help btw, this forum is excellent and it's people like you that make it what it is!
 
  • #6
Yes, so you have a formula you can work out for ##a_k##. So what do you finally get for the answer to your problem?
 
  • #7
Well assuming I integrated everything correctly, I got some nice cancellations and ended up with
[itex] a_{k}=2\sqrt{\frac{2}{L}}(\frac{L}{k\pi})^3\cos \frac{k\pi x}{L} [/itex] all evaluated at L and 0.

I'm unsure of how to proceed and write out the full expression, with the [itex] (\frac{1}{k})^3 [/itex] term in the expression...
 
  • #8
Hakkinen said:
Well assuming I integrated everything correctly, I got some nice cancellations and ended up with
[itex] a_{k}=2\sqrt{\frac{2}{L}}(\frac{L}{k\pi})^3\cos \frac{k\pi x}{L} [/itex] all evaluated at L and 0.

I'm unsure of how to proceed and write out the full expression, with the [itex] (\frac{1}{k})^3 [/itex] term in the expression...

Wouldn't you expect ##a_k## to depend on ##k##? You have to put in the limits 0 and L and simplify it, because you are going eventually to put those ##a_k##'s in the FS for ##x(L-x)##.
 
  • #9
Hakkinen said:
Sorry, it's orthonormal with respect to the inner product defined as [itex] < f^{*},g> = \int_{0}^{L}f^{*}(x)g(x)dx [/itex]

EDIT:

So, taking the inner product of both sides of that equation

[itex]\sqrt{\frac{2}{L}}\int_{0}^{L}x(L-x)\sin {\frac{k\pi x}{L}}dx=\sum_{n=1}^{\infty}a_{n}\delta _{nk}[/itex]
After evaluating the integral I should be able to get the coefficients [itex]a_{n}[/itex] ?

It's important to note that the correct definition for the scalar product on the Hilbert space [itex]\mathrm{L}^2([-L,L],\mathbb{C})[/itex] is
[tex]\langle f|g \rangle=\int_{-L}^{L} \mathrm{d} x \; f^*(x) g(x).[/tex]
Further the orthonormal function system [itex]|e_k \rangle[/itex] given by
[tex]e_k(x)=\sqrt{2}{L} \sin \left (\frac{n \pi x}{L} \right)[/tex]
spans all odd functions in this Hilbert space.

Now you simply calculate the Fourier coefficients of the function which is continued from the interval [itex][0,L][/itex] to the complete interval [itex][-L,L][/itex] as an odd function and evaluate the Fourier coefficients
[tex]F_n=\langle e_n | F \rangle,[/tex]
using the above given definition of the scalar product!
 
  • #10
@vanhees71: While that may all be true, since Hakkineen didn't give any context for his question, how are you to say the question doesn't arise from a Sturm-Liouville problem$$
y'' +\lambda y = 0$$ $$
y(0) = 0,~y(L) = 0$$That gives rise to precisely the given orthonormal set with everything defined only on ##[0,L]##.
 
  • #11
LCKurtz said:
@vanhees71: While that may all be true, since Hakkineen didn't give any context for his question, how are you to say the question doesn't arise from a Sturm-Liouville problem$$
y'' +\lambda y = 0$$ $$
y(0) = 0,~y(L) = 0$$That gives rise to precisely the given orthonormal set with everything defined only on ##[0,L]##.

Thanks for the clarification. The problem didn't really have any context other than what I stated, it's from a math methods book so hopefully when I cover Sturm-Liouville problems soon in my PDE class I can see some relevant examples.


So for the final expression of F(x), I have:
[itex]
F(x)=\sum_{k=1}^{\infty}a_{k}\hat{e}_{k}
[/itex]

where a_k is given by
[itex]
a_{k}=2\sqrt{\frac{2}{L}}(\frac{L}{k\pi })^3[\cos k\pi -1]
[/itex]
Which equals 0 when k is even, and
[itex]
-4\sqrt{\frac{2}{L}}(\frac{L}{k\pi })^3
[/itex] when k is odd.
 
  • #12
That looks OK to me.
 
  • Like
Likes 1 person

Related to Using Fourier Sine basis to write x(L-x) [0,L]

1. What is the Fourier Sine basis?

The Fourier Sine basis is a set of functions that can be used to represent any continuous function on a finite interval. These functions are based on the trigonometric sine function and are orthogonal to each other, making them useful for solving certain types of problems.

2. How is the Fourier Sine basis used to write x(L-x)?

To write x(L-x) using the Fourier Sine basis, we first need to expand the function in terms of the basis functions. This involves finding the coefficients that multiply each basis function to get the original function. In the case of x(L-x), this can be done through integration by parts and solving the resulting system of equations.

3. What is the significance of using x(L-x) in this context?

x(L-x) is a commonly used function in physics and engineering, representing the displacement of a beam under a load. By using the Fourier Sine basis to write this function, we can better understand the behavior of the beam and solve related problems.

4. What are the advantages of using the Fourier Sine basis?

One advantage of using the Fourier Sine basis is that it allows us to represent a wide range of functions using a relatively small number of basis functions. This makes it a powerful tool for solving problems that involve periodic or oscillating phenomena.

5. Are there any limitations to using the Fourier Sine basis?

While the Fourier Sine basis can be very useful in certain situations, it is not always the most appropriate tool for every problem. For example, it may not be suitable for functions that are not periodic or those with discontinuities. In these cases, other methods may be more effective.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
565
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
620
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
571
  • Calculus and Beyond Homework Help
Replies
12
Views
5K
  • Calculus and Beyond Homework Help
Replies
3
Views
703
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
Back
Top