Legendre Polynomials

Download as PDF

Ever heard of polynomials that are 'perpendicular' to each other? Welcome to the world of Legendre Polynomials! They are a special sequence of functions that help solve complex problems in physics and engineering, and understanding them starts with simple algebra you already know.

Legendre Polynomials — an original Algebra911 reference diagram defining legendre polynomials with its key formula and a worked example.
A Beginner's Guide to Legendre Polynomials

What Are Legendre Polynomials?

Legendre Polynomials are a special sequence of polynomials, denoted as Pn(x), that have unique properties making them extremely useful for solving problems in science and engineering. You're already familiar with regular polynomials like x2+3x5. Legendre polynomials look similar, but they are part of a specific, ordered set, where each one is defined by its degree n, which must be a non-negative integer (0,1,2,3,...).

Each polynomial in the sequence is named after its degree. The first few are:

  • P0(x)=1 (a constant function)
  • P1(x)=x (a simple linear function)
  • P2(x)=12(3x21) (a quadratic function)
  • P3(x)=12(5x33x) (a cubic function)

At first glance, the coefficients (the numbers in front of the variables) might seem random, but there is a precise formula that generates every single one. These polynomials are famous because they are the solutions to an important equation in physics called Legendre's differential equation. While you don't need to understand that advanced equation now, you can learn how to generate and use these powerful mathematical tools with just your algebra and pre-calculus skills.

How Do You Find Legendre Polynomials? The Rodrigues' Formula Recipe

So where do these specific polynomials come from? There's a fantastic 'recipe' for cooking up any Legendre polynomial you want. It's called Rodrigues' Formula, and it's the key to unlocking the entire sequence.

Pn(x)=12nn!dndxn(x21)n

This formula might look intimidating, but let's break it down into simple parts:

  • n: This is the degree of the polynomial you want to find. If you want P2(x), you set n=2.
  • n!: This is 'n factorial', which means you multiply n by every whole number smaller than it, down to 1. For example, 3!=3×2×1=6.
  • 12nn!: This is just a constant number that scales the polynomial correctly. You calculate this first and set it aside.
  • (x21)n: This is the core polynomial part. You take the expression x21 and raise it to the power of n.
  • dndxn: This is the most complex part. It means 'take the derivative with respect to x, n times'. If you haven't learned calculus yet, don't worry! For polynomials, there's a simple rule called the Power Rule. The derivative of xk is kxk1. You just bring the exponent down as a multiplier and subtract one from the exponent. The derivative of a constant is 0. You just apply this rule over and over, n times.

Let's find P2(x) using this recipe to see it in action.

Example 1

Find the Legendre Polynomial P2(x) using Rodrigues' Formula.

Step 1: Identify n and calculate the constant.
For P2(x), we have n=2. The constant part is 12nn!.
1222!=14×(2×1)=14×2=18

Step 2: Work on the polynomial part.
We need to find (x21)n, which is (x21)2.
(x21)2=(x21)(x21)=x42x2+1

Step 3: Take the derivative n times.
We need to take the derivative of x42x2+1 two times (since n=2).
First derivative:
ddx(x42x2+1)=4x32(2x1)+0=4x34x
Second derivative:
ddx(4x34x)=4(3x2)4(1x0)=12x24

Step 4: Combine the constant and the final polynomial.
Now we multiply our result from Step 1 and Step 3.
P2(x)=18(12x24)
We can simplify this by distributing the 18:
P2(x)=128x248=32x212
This can also be written as P2(x)=12(3x21), which matches the known formula!

Worked Example: How to Calculate P₃(x)

Practice makes perfect. Let's follow the same steps to calculate the next polynomial in the sequence, P3(x). This will involve a bit more algebra, but the process is identical.

Example 2

Find the Legendre Polynomial P3(x) using Rodrigues' Formula.

Step 1: Identify n and calculate the constant.
For P3(x), we have n=3. The constant is 12nn!.
1233!=18×(3×2×1)=18×6=148

Step 2: Work on the polynomial part.
We need to find (x21)n, which is (x21)3.
(x21)3=(x21)(x21)(x21)
First, (x21)2=x42x2+1. Now multiply by (x21) again:
(x42x2+1)(x21)=x2(x42x2+1)1(x42x2+1)
=(x62x4+x2)(x42x2+1)
=x63x4+3x21

Step 3: Take the derivative n times.
We need to take the derivative of x63x4+3x21 three times (since n=3).
First derivative:
ddx(x63x4+3x21)=6x512x3+6x
Second derivative:
ddx(6x512x3+6x)=30x436x2+6
Third derivative:
ddx(30x436x2+6)=120x372x

Step 4: Combine the constant and the final polynomial.
Multiply the results from Step 1 and Step 3.
P3(x)=148(120x372x)
Distribute the 148:
P3(x)=12048x37248x
Now, simplify the fractions. Both 120 and 72 are divisible by 24. 120/24=5 and 72/24=3. Also, 48/24=2.
P3(x)=52x332x
This is commonly written as P3(x)=12(5x33x). We did it!

What Makes Legendre Polynomials Special? The Idea of Orthogonality

The main reason Legendre polynomials are so important isn't their formula, but a property called orthogonality. In geometry, 'orthogonal' is a fancy word for perpendicular. Two lines are orthogonal if they meet at a right angle (90). Functions can be orthogonal too, but it's a bit more abstract.

Two Legendre polynomials Pm(x) and Pn(x) are orthogonal if their degrees m and n are different. This property is defined over a specific interval on the x-axis: from 1 to 1. Mathematically, it looks like this:

11Pm(x)Pn(x)dx=0whenever mn

Let's unpack that. The 11 symbol represents an integral, which is a tool from calculus for finding the total area under a curve. This formula says that if you take any two different Legendre polynomials, multiply them together, and then calculate the total signed area under the resulting curve between x=1 and x=1, the answer will always be exactly zero. The areas above the x-axis perfectly cancel out the areas below it.

Why is this useful? This property allows scientists and engineers to break down very complex functions or signals into a sum of simpler Legendre polynomials. It's like having a special set of building blocks (the Pn(x)) that can be used to construct almost any other function. This process, called a Legendre series, is crucial for solving problems involving gravity, electricity, heat flow, and more.

Visualizing the Polynomials: A Look at Their Graphs and Properties

Graphing the first few Legendre polynomials reveals some interesting patterns. They all pass through the point (1,1), and they become increasingly 'wiggly' as the degree n increases. All of their roots (the points where they cross the x-axis) are real numbers and always lie strictly between 1 and 1.

  • P0(x)=1 is a simple horizontal line.
  • P1(x)=x is a straight line passing through the origin.
  • P2(x)=12(3x21) is an upward-opening parabola.
  • P3(x)=12(5x33x) is a cubic curve with a classic 'S' shape.

Another key feature is their symmetry. Polynomials with an even degree (P0,P2,P4,...) are even functions, meaning their graphs are symmetric with respect to the y-axis. Polynomials with an odd degree (P1,P3,P5,...) are odd functions, meaning their graphs have rotational symmetry about the origin.

Here is a table summarizing these properties:

PolynomialFormulaDegree (n)Value at x=1Symmetry
P0(x)101Even
P1(x)x11Odd
P2(x)12(3x21)21Even
P3(x)12(5x33x)31Odd
P4(x)18(35x430x2+3)41Even
Example 3

Verify the property that Pn(1)=1 for the case of P3(x).

Step 1: Write down the formula for P3(x).
From our previous work, we know:
P3(x)=12(5x33x)

Step 2: Substitute x=1 into the formula.
We replace every x with the number 1.
P3(1)=12(5(1)33(1))

Step 3: Evaluate the expression.
First, calculate the powers of 1. Since 13=1, this is simple.
P3(1)=12(5(1)3(1))
P3(1)=12(53)
P3(1)=12(2)
P3(1)=1

The property holds true! This is a great way to check your work after using Rodrigues' formula. If you don't get 1 when you plug in x=1, you likely made a calculation error somewhere.

Key formulas for legendre polynomials by Algebra911.
Key formulas for legendre polynomials by Algebra911.

Where Are These Used in the Real World?

Legendre polynomials might seem like an abstract math topic, but they are essential tools in many fields of science and technology. Their unique orthogonality property makes them perfect for modeling and approximating real-world phenomena.

Here are a few examples:

  1. Physics and Astronomy: When calculating the gravitational field of a planet like Earth, which isn't a perfect sphere, physicists use Legendre polynomials to describe the complex shape of the field. They are also fundamental in quantum mechanics for describing the wave functions of atoms, and in electromagnetism for calculating the electric potential around charged objects.
  2. Engineering: In thermal engineering, Legendre polynomials help solve problems related to heat conduction in different shapes, like spheres and cylinders. They can describe how temperature is distributed throughout an object when it's heated or cooled.
  3. Computer Graphics and Data Science: In computer modeling, complex surfaces can be approximated by a series of Legendre polynomials. This allows for efficient storage and rendering of smooth, organic shapes. In data analysis, they can be used to fit a curve to a set of data points, a process known as polynomial regression.

Essentially, anywhere a problem involves spheres or spherical coordinates and needs to be broken down into simpler parts, Legendre polynomials are likely to be involved. They are a bridge between pure mathematics and practical application.

Common Mistakes to Avoid

When first working with Legendre polynomials, a few common pitfalls can trip you up. Being aware of them can help you avoid errors in your calculations.

  • Forgetting the Constant: The 12nn! part of Rodrigues' formula is easy to forget, but it's crucial for making the polynomials 'normalized' so that Pn(1)=1. Always calculate it first.
  • Binomial Expansion Errors: When calculating (x21)n for larger n, it's easy to make a mistake. Write out your steps carefully or use the Binomial Theorem if you know it.
  • Derivative Mistakes: Taking the derivative many times can be tedious. A small error in one step will throw off the entire final answer. Go one step at a time and double-check your application of the power rule.
  • Mixing up n and x: Remember that n is the fixed degree for the polynomial you are calculating, while x is the variable. Don't mix them up during differentiation.
  • Misunderstanding Orthogonality: The orthogonality property only works on the specific interval from 1 to 1. It does not apply over other intervals, like 0 to 1.

Quick Reference Guide

Here is a quick summary of the most important formulas and facts about Legendre Polynomials.

Rodrigues' Formula
The master formula to generate any Pn(x).

Pn(x)=12nn!dndxn(x21)n

The First Five Legendre Polynomials

  • P0(x)=1
  • P1(x)=x
  • P2(x)=12(3x21)
  • P3(x)=12(5x33x)
  • P4(x)=18(35x430x2+3)

Key Properties

  • Orthogonality: 11Pm(x)Pn(x)dx=0 for mn.
  • Value at x=1: Pn(1)=1 for all n.
  • Value at x=-1: Pn(1)=(1)n. (It's 1 for even n and 1 for odd n).
  • Symmetry: Pn(x) is an even function if n is even, and an odd function if n is odd.

Frequently Asked Questions

What's the difference between a regular polynomial and a Legendre polynomial?

A regular polynomial can have any coefficients, like 5x2x+10. Legendre polynomials are a specific set of polynomials where the coefficients are precisely defined by a formula to ensure they have special properties, like being orthogonal on the interval [1,1].

Do I need to know calculus to find Legendre polynomials?

Rodrigues' formula uses derivatives, which is a calculus concept. However, for polynomials, the process is just a simple rule (the power rule) applied repeatedly. You can learn and apply this rule without needing a full calculus course.

Why is the interval always [-1, 1] for their special properties?

The interval [1,1] is fundamental to the definition of Legendre polynomials. They are defined as solutions to a specific equation that 'works' over this range. While you can scale them to other intervals, their natural and simplest properties, like orthogonality, are expressed on [1,1].

What does the 'P' and the subscript 'n' in P_n(x) mean?

The 'P' stands for 'Polynomial', and it's used by convention for Legendre polynomials. The subscript 'n' is called the index or order, and it simply tells you the degree of the polynomial in the sequence. For example, P5(x) is the 5th-degree Legendre polynomial.

Are there other types of special polynomials like these?

Yes, many! Mathematicians have discovered other sets of orthogonal polynomials that are useful for different problems. Some famous examples include Hermite polynomials (used in quantum mechanics), Laguerre polynomials (for the hydrogen atom), and Chebyshev polynomials (used in approximation theory).

Where will I see Legendre polynomials in future studies?

If you continue studying physics, engineering, or applied mathematics in college, you will almost certainly encounter them. They appear in courses on electricity and magnetism, quantum mechanics, differential equations, and numerical analysis.

Is P_4(x) always a 4th-degree polynomial?

Yes, exactly. The index n in Pn(x) always corresponds to the degree of the polynomial. This means Pn(x) will always have an xn term as its highest power and will not have any powers higher than n.

Can I use a computer or calculator to find them?

Absolutely. Computer algebra systems like WolframAlpha, Mathematica, or Python libraries like SciPy can calculate Legendre polynomials instantly. While it's important to learn the process by hand first, these tools are great for checking your work or finding higher-order polynomials quickly.