Minimum degree of a polynomial passing through points

In summary: RIn summary, the minimum degree of a polynomial passing through four given points is at least two, but could be higher depending on the specific points and their arrangement. However, a cubic polynomial is guaranteed to fit the four points exactly, and any polynomial of lower degree will be a cubic for the purposes of fitting.
  • #1
juantheron
247
1
If p(x) is a polynomial such that p(0)=5 ,p(1)=4 ,p(2)=9,p(3)=20 ,

the minimum degree it can have
 
Mathematics news on Phys.org
  • #2
Re: polynomial

jacks said:
If p(x) is a polynomial such that p(0)=5 ,p(1)=4 ,p(2)=9,p(3)=20 ,

the minimum degree it can have

You have four points, so for them to fit the polynomial exactly, you need it to at least have degree three. Anything more you'll have an infinite number of possibilities that will have all data points fit, and anything less then chances are you'll only be able to get a least squares approximation.
 
  • #3
Re: polynomial

My approach: start with a straight line and see if it fits exactly. If not, try a quadratic. If that doesn't work, try a cubic. As Prove It has pointed out, a cubic (with four arbitrary constants) will definitely work. But you might be able to get by with fewer depending on where the points are.
 
  • #4
Re: polynomial

Hello, jacks!

If [tex]p(x)[/tex] is a polynomial such that: .[tex]p(0) = 5,\;p(1) = 4,\;p(2) = 9,\;p(3) = 20,[/tex]
. . the minimum degree it can have is __.

Plotting the four points, a parabola might pass through them.

The general parabola is: .[tex]p(x) \:=\:ax^2 + bx + c[/tex]Use the four point to construct a system of equations:

[tex]\begin{array}{ccccccc} p(0) = 5: & a(0^2) + b(0) + c &=& 5 \\
p(1) = 4: & a(1^2) + b(1) + c &=& 4 \\
p(2) = 9: & a(2^2)+ b(2) + c &=& 9 \\
p(3) = 20: & a(3^2) + b(3) + c &=& 20 \end{array}[/tex]Solve the system: .[tex]a = 3,\;b = \text{-}4,\;c = 5[/tex]

Hence: .[tex]p(x) \;=\;3x^2 - 4x + 5[/tex]The minimum degree of [tex]p(x)[/tex] is two.
 
  • #5
Re: polynomial

Prove It said:
You have four points, so for them to fit the polynomial exactly, you need it to at least have degree three. Anything more you'll have an infinite number of possibilities that will have all data points fit, and anything less then chances are you'll only be able to get a least squares approximation.
Then polynomial, passing through four given points, will have degree at most three, not "at least". It is quite possible that the four points happen to lie on a parabola (which is apparently the case here) or even on a straight line.
 
  • #6
Re: polynomial

HallsofIvy said:
Then polynomial, passing through four given points, will have degree at most three, not "at least". It is quite possible that the four points happen to lie on a parabola (which is apparently the case here) or even on a straight line.

Really? I would have thought that there would be an infinite number of solutions to, say, four equations in five unknowns, which is what you would get if you substituted the four points into a general polynomial of degree 4...
 
  • #7
Re: polynomial

Prove It said:
Really? I would have thought that there would be an infinite number of solutions to, say, four equations in five unknowns, which is what you would get if you substituted the four points into a general polynomial of degree 4...

Four equations in five unknowns is what you will end up with when you try to fit a quartic, and we know you can always do that but the solution is not unique.

Fitting a cubic \(p(x)=a+bx+cx^2+dx^3\) will give you four equations in four unknowns, and as long as there is no degeneracy will have a solution. In this case the equations are:

\[ \left[\begin{array}{cccc} 1&0&0&0 \\ 1&1&1&1 \\ 1 & 2 & 4 & 8 \\ 1&3&9&27 \end{array} \right] \left[ \begin{array}{c} a \\ b \\ c \\ d \end{array} \right]=\left[ \begin{array}{c} 5 \\ 4 \\ 9 \\ 20 \end{array} \right]\]

Which may be solved using your favourite method of solving linear equations to give:

\[ \left[ \begin{array}{c} a \\ b \\ c \\ d \end{array} \right]=\left[ \begin{array}{c} 5 \\ -4 \\ 3 \\ 0 \end{array} \right]\]

Which corresponds to the polynomial:

\[ p(x)=5-4x+3x^2+0x^3=5-4x+3x^2 \]

We may note that this method would produce the required solution whateve the degree of the ploynomial was. And it works because the fitting cubic is unique and all polynomials of lower degree are cubics for the purposes of fitting to the data.

CB
 
Last edited:

1. What is the minimum degree of a polynomial that can pass through a set of points?

The minimum degree of a polynomial that can pass through a set of points is equal to the number of points minus one. This is known as the "degree of exactness" and is based on the fundamental theorem of algebra.

2. How do you determine the minimum degree of a polynomial passing through points?

To determine the minimum degree of a polynomial passing through points, you need to first plot the points on a graph. Then, you can use the formula (n-1) where n is the number of points, to find the minimum degree. Alternatively, you can also use linear algebra techniques to solve for the coefficients of the polynomial.

3. Can a polynomial with a degree lower than the minimum degree pass through the points?

No, a polynomial with a degree lower than the minimum degree cannot pass through the points. The minimum degree is the lowest possible degree that can pass through the given points exactly. A polynomial with a lower degree will not have enough flexibility to pass through all the points.

4. What happens if there are more points than the minimum degree of the polynomial?

If there are more points than the minimum degree of the polynomial, then the polynomial may not pass through all of the points exactly. It will try to approximate the points as closely as possible, but there may be some error. In this case, a higher degree polynomial may be required to pass through all of the points exactly.

5. Is it possible for a polynomial with a degree higher than the minimum degree to pass through the points?

Yes, it is possible for a polynomial with a degree higher than the minimum degree to pass through the points. This polynomial will have more flexibility and may provide a better fit to the data points. However, it is not necessary to use a polynomial with a higher degree if the minimum degree is sufficient to pass through the points exactly.

Similar threads

  • General Math
Replies
5
Views
977
Replies
8
Views
1K
Replies
1
Views
683
Replies
1
Views
759
  • General Math
Replies
1
Views
758
Replies
3
Views
1K
Replies
1
Views
736
Replies
9
Views
2K
Replies
1
Views
744
Replies
1
Views
892
Back
Top