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

AI Thread Summary
The discussion focuses on expressing the function x^3 as a summation using Legendre polynomials, specifically finding the coefficients c_n. It highlights the challenge posed by Legendre polynomials not forming an orthonormal basis, as their inner product is given by a specific formula. A suggested method for determining the coefficients involves using integrals, specifically c_n = (2n+1)/2 ∫_{-1}^{1} P_n(x)x^3 dx, which is confirmed as correct. Participants also discuss constructing the polynomial by adjusting coefficients a0, a1, a2, and a3 to eliminate unwanted terms and achieve the desired function. The conversation concludes with an affirmation of the integral approach and its effectiveness in finding the coefficients.
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.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
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...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top