1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Writing a polynomial in terms of other polynomials (Hermite, Legendre, Laguerre)

  1. Apr 2, 2010 #1
    1. The problem statement, all variables and given/known data
    The first 3 parts of this 4 part problem were to derive the first 5 Hermite polynomials (thanks vela), The first 5 Legendre polynomials, and the first 5 Laguerre polynomials. Here is the last part:

    Write the polynomial [tex]2x^4-x^3+3x^2+5x+2[/tex] in terms of each of the sets of orthogonal functions: Legendre polynomials, Hermite polynomials and Laguerre polynomials.

    2. Relevant equations
    Legendre polynomials
    [tex]P_0 = 1[/tex]

    [tex]P_1 = x[/tex]

    [tex]P_2 = \frac{1}{2}(3x^2-1)[/tex]

    [tex]P_3 = \frac{1}{2}(5x^3-3x)[/tex]

    [tex]P_4 = \frac{1}{6}(35x^4-30x^2+3)[/tex]

    Hermite polynomials





    Laguerre polynomials




    3. The attempt at a solution

    I first started with the Laguerre polynomials. I recognized that the 5th Laguerre polynomial was the only one that contained an x^4 term. I then knew that the only way to get an 2x^4 term in the polynomial I am trying to re-write would be to multiply L4 by 48. I then went on to look at the -x^3 term. I realized that since the multiple of L4 (48) couldn't be changed, I would have to multiply L3 by something that would give me the -x^3 term after it was added to the x^3 term in the L4 polynomial. I continued this path until I reached:


    I was not entirely sure what the question was asking so I took my first result to my professor. He said that the method used was correct (as long as my algebra was correct) but that it is not the method he had intended us to use. He said that I needed to use the equation:


    Where phi is either the Legendre, Hermite or Laguerre polynomials.

    I went back through my notes and tutorial and found a way to express the coefficients a_n. However, the method used to find a_n was for periodic functions, namely the example shown was for the orthogonal set of sine and cosine.

    I attempted to model a new solution based on the one for cosine and sine. I do not think that my new attempt is correct because while it yields the correct coefficients (at least for the L0 & L1) of the Laguerre polynomials, it seems a more complicated method then my first attempt. Also, I believe that trying to solve for the coefficients in the way I did is just a re-hashing of deriving the original polynomials.

    What I did was I took the equation:


    and multiplied both sides by phi_m and then integrated both sides. Using orthogonality relationships I came up with:


    For the Laguerre polynomials (normalized to 1)

    Eventually this just boiled down to a similar linear algebra problem that I am supposed to avoid. Does anyone see another way?
  2. jcsd
  3. Apr 3, 2010 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    That's not the correct inner product for the Laguerre polynomials. You need the weighting function w(x)=e-x in there. Other than that detail, though, your method is correct.
  4. Apr 3, 2010 #3
    Thanks for the response.



    For the laguerre polynomials is correct, then does this say:


    I tried the above equation. I ended up having 9 integrals that looked like:


    where c is a constant and the quantity (m+n) is the power of x. Based off of previous results, I used the relationship:


    I input the product of the two polynomials into maple and then applied the above equation for the different values of (m+n) and got back that


    I feel fairly certain that the coefficient of of L4 must be 48.
  5. Apr 3, 2010 #4


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    I just evaluated that integral in Mathematica, and it was equal to 48.

    This is the product of f(x) and L4(x):

    [tex]2-3 x-11 x^2+\frac{2 x^3}{3}+\frac{47 x^4}{4}-\frac{307 x^5}{24}+\frac{163 x^6}{24}-\frac{11 x^7}{8}+\frac{x^8}{12}[/tex]

    so you get

    [tex]2(0!)-3(1!)-11(2!)+\frac{2}{3}(3!)+\frac{47}{4}(4!)-\frac{307}{24}(5!)+\frac{163}{24}(6!)-\frac{11}{8}(7!)+\frac{1}{12}(8!) = 48[/tex]
    Last edited: Apr 3, 2010
  6. Apr 3, 2010 #5


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    It occurs to me you can save yourself quite a bit of work if you just calculate the five integrals

    [tex]I_n = \int_0^\infty x^n f(x) e^{-x} dx[/tex]

    for n=0, 1, 2, 3, 4. Then, for instance,

    [tex]a_4 = \int_0^\infty L_4(x) f(x) e^{-x} dx = \frac{1}{24}(I_4 - 16 I_3 + 72 I_2 - 96 I_1 + 24 I_0) [/tex]
  7. Apr 3, 2010 #6
    Wow. Thanks. I must have made a mistake along the line. I haven't found it yet, but I agree with your post. Thank you for doubling checking and taking the time to evaluate the integral. Thanks again, I seem to make a ton of algebraic / input mistakes.
  8. Apr 3, 2010 #7
    Hey, Vela. When I did the Hermite polynomial, I used
    int ( 2x^4-x^3+3x^2+5x+2) ( 16x^4-48x^2+12) (e^-x^2), -inf, inf to calculate the a4, but I got a different number from linear algebra. (e^-x^2 is the weight function for Hermite polynomial)
  9. Apr 3, 2010 #8


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    You need to take into account how the Hermite polynomials are normalized, namely

    [tex]\int_{-\infty}^\infty H_n(x)H_n(x)e^{-x^2} dx = n!~2^n \sqrt{\pi}[/tex]

    Did you do that?
  10. Apr 3, 2010 #9
    Okay, thanks.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook