Facebook Pixel
Mathos AI logo

Polynomial Modeling

Polynomial Modeling

Polynomial modeling is the process of finding a polynomial function that closely fits a set of real-world data. By creating these mathematical models, we can identify trends, make predictions, and optimize outcomes.

Selecting the Appropriate Degree

The first step in modeling is determining the degree of the polynomial (linear, quadratic, cubic, etc.). For evenly spaced xx-values, you can use the method of finite differences:

  • If the first differences in yy-values are constant, the data is linear (degree 1).
  • If the second differences are constant, the data is quadratic (degree 2).
  • If the third differences are constant, the data is cubic (degree 3).

Example: Finding a Model from Data

Suppose a dataset shows the following values:

  • x=0,1,2,3,4x = 0, 1, 2, 3, 4
  • y=2,5,14,29,50y = 2, 5, 14, 29, 50

Let's find the differences between consecutive yy-values:

  1. First differences: 52=35-2 = 3, 145=914-5 = 9, 2914=1529-14 = 15, 5029=2150-29 = 21
  2. Second differences: 93=69-3 = 6, 159=615-9 = 6, 2115=621-15 = 6

Since the second differences are constant, a quadratic model (y=ax2+bx+cy = ax^2 + bx + c) is perfect for this data.

To find the exact equation, use the data points:

  • At x=0x = 0, y=2y = 2, so c=2c = 2.
  • At x=1x = 1, y=5y = 5, so a(1)2+b(1)+2=5    a+b=3a(1)^2 + b(1) + 2 = 5 \implies a + b = 3.
  • At x=2x = 2, y=14y = 14, so a(2)2+b(2)+2=14    4a+2b=12    2a+b=6a(2)^2 + b(2) + 2 = 14 \implies 4a + 2b = 12 \implies 2a + b = 6.

Subtracting the two equations gives a=3a = 3. Substituting a=3a = 3 back in gives b=0b = 0.

The polynomial model is: y=3x2+2y = 3x^2 + 2

Regression and Technology

Real-world data is rarely perfect. When finite differences aren't exactly constant, we use polynomial regression via graphing calculators or software. These tools use a method called "least squares" to find the curve of best fit.

When using technology, visually inspect a scatter plot of your data. If the data has one turning point (a single peak or valley), a quadratic model (degree 2) is usually best. If it has two turning points, try a cubic model (degree 3).

Interpreting the Model and Domain

A mathematical model is only useful within a logical context. The valid domain restricts the xx-values to those that make sense in the real world (e.g., time and physical quantities cannot usually be negative).

Example: Optimizing Revenue

Consider a factory where the revenue based on production level xx (in thousands of units) is modeled by: R(x)=2x3+15x2+12xR(x) = -2x^3 + 15x^2 + 12x

To find the production level that maximizes revenue, we need to find the local maximum of this cubic function. In Grade 11, you can find this by graphing the function and locating the peak (the turning point).

Using a graphing tool, the highest point on the graph occurs at approximately x5.37x \approx 5.37.

Interpretation:

  • The factory should produce about 5,3705,370 units to maximize revenue.
  • The valid domain for this model is x0x \ge 0, because producing negative units is impossible.
  • Extrapolation warning: If we look too far to the right on the graph, R(x)R(x) eventually becomes negative. The model is only valid up to the point where revenue drops to zero.