Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.4: Polynomial Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

Data from experiments (and their related functions) are often described as being linear, parabolic, hyperbolic, polynomial, harmonic (sines and cosines), exponential, or logarithmic either because their graphs have some resemblance to the corresponding geometric object or because equations describing their related functions use the corresponding expressions. In this section we extend linear and quadratic equations to more general polynomial functions.

Definition 2.3.1 Polynomial

For n a positive integer or zero, a polynomial of degree n is a function, P defined by an equation of the form

P(x)=a0+a1x+a2x2+a3x3++anxn

where a0,a1,a2,a3,,an are numbers, independent of x, called the coefficients of p, and if n>0 an0.

Functions of the form

P(x)=Cwhere C is a number

are said to be constant functions and also polynomials of degree zero. Functions defined by equations

P(x)=a+bx and P(x)=a+bx+cx2

are linear and quadratic polynomials, respectively, and are polynomials of degree one and degree two. The equation

P(x)=3+5x+2x2+(4)x3

is a polynomial of degree 3 with coefficients 3, 5, 2, and -4 and is said to be a cubic polynomial.

Polynomials are important for four reasons:

  1. Polynomials can be computed using only the arithmetic operations of addition, subtraction, and multiplication.
  2. Most functions used in science have polynomials “close” to them over finite intervals. See Figure 2.4, Example 2.5.2, and Exercise 2.5.3.
  3. The sum of two polynomials is a polynomial, the product of two polynomials is a polynomial, and the composition of two polynomials is a polynomial.
  4. Polynomials are ‘linear’ in their coefficients, a fact which makes them suitable for least squares ‘fit’ to data.

Reason 1 is obvious, but even the meaning of Reason 2 is opaque. An illustration of Reason 2 follows, and we return to the question in Chapter 12. Sum, product, and composition of two functions are described in Section 2.6. Reason 4 is illustrated in Example 2.4.1.

A tangent to a graph is a polynomial of degree one ”close to” the graph. The graph of F(x)=2x and the tangent

P1(x)=1+0.69315x1x2

at (0,1) are shown in Figure 2.4.1(a). The graph of the cubic polynomial

P3(x)=1+0.69315x+0.24023x2+0.05550x31x2

shown in Figure 2.4.1(b) is even closer to the graph of F(x)=2x. These graphs are hardly distinguishable on 1x1 and only clearly separate at about x=1.5. The function F(x)=2x is difficult to evaluate (without a calculator) except at integer values of x, but P3(x) can be evaluated with just multiplication and addition. For x=0.5,F(0.5)=20.5=2=1.41421 and P3(0.5)=1.41375. The relative error in using P3(0.5) as an approximation to 2 is

 Relative Error =|P3(0.5)F(0.5)F(0.5)|=|1.413751.414211.41421|=0.00033

The relative error is less than 0.04 percent.

2-4.JPG

Figure 2.4.1: A. Graph of y=2x and its tangent at (0,1), P1(x)=1+0.69315x. B. Graph of y=2x and the cubic, P3(x)=1+0.69315x+0.24023x2+0.05550x3.

The tangent P1(x) is a good approximation to F(x)=2x near the point of tangency (0,1) and the cubic polynomial P3(x) is an even better approximation. The coefficients 0.69135, 0.24023, and 0.05550 are presented here as Lightning Bolts Out of the Blue. A well defined procedure for selecting the coefficients is defined in Chapter 12.

Explore 2.4.1 Find the relative error in using the tangent approximation, P1(0.5)=1+0.69315×0.5 as an approximation to F(0.5)=20.5.

Example 2.4.1 Problem. Show that polynomials are linear in their coefficients. This means that

  • The sum of two polynomials is obtained by adding ’corresponding’ coefficients (add the constant terms, add the coefficients of x, add the coefficients of x2 , · · · ).
  • The product of a constant, K, and a polynomial, P(x), is the polynomial whose coefficients are the coefficients of P(x) each multiplied by K.

Consider the following.

 Let P(x)=73x+5x2, and Q(x)=2+4xx2+6x3 . P(x)+Q(x)=(73x+5x2)+(2+4xx2+6x3)=(72)+(3+4)x+(51)x2+(0+6)x3=5+x+4x2+6x3

Thus P(x)+Q(x) is simply the polynomial obtained by adding corresponding coefficients in P(x) and Q(x). Furthermore,

13P(x)=13(73x+5x2)=137133x+135x2=9139x+65x2

Thus 13P(x) is simply the polynomial obtained by multiplying each coefficient of P(x) by 13. On the other hand, for

P(x)=5sin3x,Q(x)=6sin4xP(x)+Q(x)=5sin3x+6sin4x(5+6)sin((3+4)x)=11sin7x

The sine functions are not linear in their coefficients.

 

Exercises for Section 2.4 Polynomial functions.

Exercise 2.4.1 Technology. Let \(F(x) = \sqrt{x}\). The polynomials

P2(x)=34+38x164x2 and P3(x)=58+1532x5128x2+1512x3

closely approximate F near the point (4,2) of F.

  1. Draw the graphs of F and P2 on the range 1x8.
  2. Compute the relative error in P2(2) as an approximation to F(2)=2.
  3. Draw the graphs of F and P3(x) on the range 1x8.
  4. Compute the relative error in P3(2) as an approximation to F(2)=2.

Exercise 2.4.2 Technology. Let F(x)=3x. The polynomials

P2(x)=59+59x19x2 and P3(x)=P2(x)+581(x1)3

closely approximate F near the point (1,1) of F

  1. Draw the graphs of F and P2 on the range 0x3.
  2. Compute the relative error in P2(2) as an approximation to \(F(2) = \sqrt[3]{2}).
  3. Draw the graphs of F and P3 on the range 1x3.
  4. Compute the relative error in P3(2) as an approximation to F(2)=32.

2.4: Polynomial Functions is shared under a CC BY-NC-ND license and was authored, remixed, and/or curated by LibreTexts.

Support Center

How can we help?