r/MathHelp • • Oct 01 '20

Polynomials confusion?

Hi guys,

I've been studying Algebra I and II and at the moment I'm on the topic of polynomials but I have a couple of questions on them.

  1. Obviously a Polynomial means many, so a polynomial has many terms but why are polynomials so important and where do they appear in real life or what are the applications of polynomials?

  2. as a number represents a physical object or even a virtual object (object on a computer) how do you represent a polynomial, are they a collection of objects?

  3. why are polynomials so important?

  4. How important is ordering? for example most people say to order them with the highest degree (ie 3x^4 ) to the lowest degree (ie 5), and why is this done?

*edit

5 : can a whole number be a polynomial for example 2005 which would be 2x10^3 + 0x10^2 + 0x10^1 + 5

because x^3 + x^2 + x + 5 is a polynomial so if we sub in 10 we get the number 2005

Thanks :)

10 Upvotes

11 comments sorted by

6

u/ddavid8888 Oct 01 '20

4. Order is no issue, but it easier to read an follow.

5. Every number is a polynomial I.e. 2005 = 2005x0

1

u/Adam20188 Oct 01 '20

thanks David :)

2

u/FutureRocker Oct 01 '20

Nice questions. I'm not sure I can do justice to numbers 1 and 3 because the applications of polynomials are many - maybe someone else can give a better answer for how they appear in the real world. However, one of the reasons they are important is because they're very good at approximating other functions. You'll learn in Calculus that any (infinitely) differentiable function can be approximated with a polynomial with very little error. This is also true for data interpolation - there is something called the Langrange interpolation that can make a polynomial function that goes through any finite number of points you request (as long as you don't give two points with the same x-values). There are other more stable forms of polynomial interpolation that attempt to fit data without necessarily passing through every point.

2) There are many ways to think of polynomials, even within mathematics. Like you already noticed, polynomial means many terms. So yes, one way to think of them is as a collection of different terms: e.g. the x^2 term can't be combined with x or x^3, so it stays by itself in the sum of the monomials.

As for representing this in a computer, one way to do that is a list. You can think of a polynomial as a list of numbers (the coefficients) where the n^th number in the list is the coefficient of x^n. So the polynomial 1 - 2x + 3x^2 -32.4x^3 + x^5 could be written as [1, -2, 3, -32.4, 0, 1]. Note that I changed the order here so that the powers of x were ascending, not decreasing. This answers another question of yours - order of the terms within a polynomial doesn't matter at all. That's because the coefficient stays attached to its term. So even if I put -32.4x^3 at the start of the polynomial, the power still tells us "-32.4" should be the 3rd number in the list.

Everything I've been saying so far is treating x simply as a placeholder. This is a very algebraic way of thinking of polynomials - the x's do nothing but keep the coefficients apart (and put an order on our list). There's an analytic way of thinking of functions, which is probably more what you're used to: x^2 literally means square a number. So x isn't just a placeholder, it is an input and the polynomial gives you a rule for calculating numbers. Still, order doesn't matter, because addition and multiplication are commutative.

This also touches on question number 5. Yes, you can think of decimal numbers (or in fact numbers in any base) as the result of special polynomials. In the case of decimal numbers, you'll notice that your coefficients all have to be positive digits between 0 and 9 (you can't write down a decimal number where the 4th digit is 187 or -2 or 5.2, right?). This can be a useful way of representing numbers when you want to prove things about them. In math we don't often think of these as polynomials (we still think of them as decimal numbers), but you may find yourself using factoring techniques or polynomial theorems to prove things about decimal numbers when you write them in this form.

2

u/Adam20188 Oct 01 '20

Thank you :) really interesting insight, I've came across polynomials before but never really dove deep into them,

I am guessing you have done (or still do) data analytics? and if so I'm guessing you would use Python?

1

u/FutureRocker Oct 01 '20

Not really, I have done computer science and plenty of math classes and understand some statistics. I mentioned data in the most general sense - I was actually thinking of points in the Cartesian plane. If I had to guess if data analysts used polynomials a lot, I’d guess yes just because at the very least lines must be important for them haha

1

u/salfkvoje Oct 02 '20 edited Oct 02 '20

The biggest reason polynomials are so important, at least in your setting, is that they can approximate most functions. A ball thrown up in the air and landing will roughly be a parabola (x2, well -x2 ). You could also throw a bunch of points on the plane and there is some polynomial which hits every one of them.

Later in calc, you will see that most functions can be represented by a sum of infinite terms... or you can use something less than infinite terms to get a polynomial that roughly approximates the function.

Very useful for computer programs which do not have infinite time or memory! Or in a physics setting, where the reality of a combustion engine or whatever doesn't need infinite or even more than 4 or 5 terms to be accurate enough for the constraints of the system.

Here We have a sine wave in black, which you may have been exposed to in trig topics, but basically it goes between -1 and 1, over and over forever. (There are countless examples of periodic behavior that this is used for, from day/ night cycles, to seasons, to sound vibration, etc).

In different colors we have different polynomial approximations to the sine. The simplest is the red line, which would be x0 = 1. The purple is the closest approximation, and it is a 13th degree polynomial. A 500th degree polynomial would fit even better, and at the limit, as you'll find in calc, summing infinite terms of a certain pattern will exactly give you the sine wave.

2

u/Adam20188 Oct 02 '20

that's really interesting :) in the last example and excuse my ignorance on the subject ( I'm still in my math infancy haha) but what is meant by " different polynomial approximations to the sine"

thanks :)

1

u/salfkvoje Oct 03 '20

Look at these graphs, each one is sin(x) along with a polynomial which is an increasingly better fit for approximating sin(x):

Here is x, it's not a very good fit.

Here is x - x3/6, looks a bit better.

Here is x - x3/6 + x5/120 even better!

Here is x - x3/6 + x5/120 - x7/5040 Better still.

Here is all that... + x9/362880

So we can keep adding terms (of a certain pattern) to get a closer and closer approximation to sin(x). And, if we add infinite terms, we get exactly sin(x).

But, if we don't need that kind of precision (and don't have all of infinity to add terms...) it can be "good enough" in certain settings, to use the first couple terms of this polynomial approximation.

1

u/AutoModerator Oct 01 '20

Reminder:

  • What have you tried so far? (See Rule #2)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

(Note that this is an automatic message posted on every submission by default.)

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BootyIsAsBootyDo Oct 01 '20

In regards to a real life example, one of the most direct ways you seem them is in physics. If you have constant velocity, you can use a first degree (linear) polynomial to describe movement. If you have constant acceleration, you can use a second degree (quadratic) polynomial to describe movement.

This is just one example that jumps out, but polynomials truly are everywhere. Like any function, they don't usually describe one singular object but rather a relationship between quantities, such as the aforementioned relationship between position and time for moving objects.

Moreover, the above is just the "concrete" ways we use polynomials. There are more abstract ways in which understanding polynomials becomes indispensable, such as in differential equations or elliptic curves (used in encrypting information).