Writing [itex]x^3[/itex] in Legendre base

Msilva
Messages
5
Reaction score
0
Hello friends. I need help to write the function x^3 as a somatory using the Legendre polinomials as base. Something like:
f(x)=\sum^{\infty}_{n=0}c_{n}P_{n}(x)

Basically is to find the terms c_{n}.
But, the problem is that Legendre polinomials does't form a orthonormal base: \langle P_{m}|P_{n}\rangle=\delta_{mn}\frac{2}{2n+1}, and I don't know how exactly to use this information.

May I use c_n=\frac{2n+1}{2}\int_{-1}^{-1}P_n(x)x^3\,dx? Is that right?
 
Mathematics news on Phys.org
You can do this problem without doing all the integrals. I am writing the first three Legendre polynomials below:

P0 = 1
P1 = x
P2 = (3x2 - 1)/2
P3 = (5x3 - 3x)/2

You want to write:

x3 = a0P0 + a1P1 + a2P2 + a3P3

I took only up to P3 because I have x3 on the left.

Now just look at the Legendre polynomials listed above, and keep adjusting the coefficients a0 .. etc. until you get what you want. For example, since I want x3, and there is a coefficient of 5/2 in front of x3 in P3, I can choose a3 = 2/5, so that a3 P3 yields x3. But this also gives me an extra term in x. So now adjust the coefficient a1 so that a1 P1 cancels out that extra term in x, and you are left with exactly what you want. The rest of the coefficients a0, a2, and then a4, a5... are all zeroes.[/SUB][/SUB]

If you are fond of doing integrals, you can also use the result that you wrote for each cn. It is correct.
 
  • Like
Likes Msilva
Actualy x^3 is an aleatory function that I wrote here just to ilustrate my question, but you helped me a lot.

With these integrals the coefficients are exactly those expected by your arguments. This is a hint that the logic of the integral is right.

Thank you for your suport, Prayaga.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top