Gelfand: Chunk 17 - Polynomial (and Linear) Interpolation

March 9, 2017

Where Next? Points on a Line

The next section of Gelfand Section 38 launches straight in, and it can take a while to figure out where things are going and what the point is.

I’ve discovered as I’ve been trying to make full and proper sense of all thisTo assist in my chunking as much as anything else. that Gelfand frequantly assumes you’ve got a dictionary to hand; sometimes the signal of where you’re going is as slight as a word in a section title. The key term here? “Interpolation”.

So what is interpolation? I’d suggest you take a break to glance at the wikipedia page. Just a glance though, as the stuff that’s about to come from Gelfand will give you the tools to deeply grok the contents within.

For those who don’t want to take a look, Interpolation is defined on the page above as

“a method of constructing new data points within the range of a discrete set of known data points”.

An Excuse

With this in mind, you’ve now got a small sense of the point of the mass of problems that will be coming at you. I’m going to jump on quite rapidlyThough I suggest you don’t. Working through these helped me a great deal. I’m just letting myself do soWith minimal commentary so as not to confuse matters.

Here Be Patterns; Patterns within Polynomials

The first few problems Problems 155 - 158 are just leading you by the hand to the realisation that there are some more patterns hidden inside polynomials, and that those patterns depend upon the polynomial’s degree.Glance back at Chunk 14 - Polynomial Division if you want a quick reminder.

Once we’ve done this (and had an encounter with Euler) Gelfand poses the question upon which he spends the rest of the section, and I’ll spend the rest of this chunk exploring.

What can be said about a polynomial if we have some information about it’s values?

This is the interpolation we mentioned above.

But before we get to the values and the interpolation Gelfand gives us another thought toolNot really a trick so I’m not flagging it as such which helps our abstract understanding of polynomials. I’m going to try and re-explain it in my own words.Primarily because writing these things ensures they are concretely embedded in my mind before proceeding. You might find Gelfand’s explanation better. It’s incredibly likely.

The first point he is making is that given the information on the degree of a polynomial that is in one degree (that’s important) we can then make a lot of statements which are guaranteed to be true. The second point is that if we know some of these key facts, and also the vaules we get out when we put in known values, then we can do a lot of detective work to deduce the polynomial itself, even if we don’t know it.

Patterns in Degrees

This is currently all very abstract; so let’s look at a few examples. First up is degrees. Remember that the degree of a polynomial is related to it’s “first degree”. So if a polynomial has a degree of it will be in the general form:

This means that it will definitely have an element in the form and may have an element in the form . That’s it. But we can simplify. Remember from Chunk 14 that .

But I said “may” for the -element. How so? Technically it will always be there, but if then it’ll be irrelevant. Why does this not happen for -elements? Because if the above had then (as Gelfand states) we’d end up instead with the zero-polynomial which has an undefined value.

Let’s step up our game one more notch. What about a second-degree polynomial? You guessed it, it must have an element in the form and may have elements in the form and . The may bit is again down to whether and are equal to zero or not.

We can keep this pattern going ad-infinitum. But rather than that, let’s bring it back to Gelfand so we’re all happy we linked back up after diverging explanations. Let’s re-state it one more time; we can write all our second-degree polynomials in as follows:

Which can be simplified to the general form as follows

Which is where we find Gelfand, waiting patiently for us.

Deplying Our New-Found Powers (and Point Two)

I mentioned a few paragraphs above that there were two points. We’re about to see the second. Gelfand now gives us some problems, assumes we’re going to use the pattern we just learned, and some other basic skills he’s taught us, and is hoping we easily arrive at the answer.

Problem 160

First thing we need to see with this problem is that when Gelfand states

is a polynomial of degree not exceeding

we need to immediately think

“that means it has the general form ”.

With this in mind, he then gives us a pair of inputs and outputs - the latter being the “values” he mentioned and which we are calling “point two”. We can lay these out as follows:

He then asks us to find which really means “find the values of and and state in the form of a first-degree polynomial.”

Let’s plug our inputs in and see what we can glean:

The difference between these two is one , or which is . If we plug in this, then we can find easily.

We can check thisAs I’m making us go painfully slow to make sure this is 100% clear by putting our -value into the second formula to check all is good.

W00t!

So to bring it all to a close, we can state as follows

Bringing his worked example to a close, Gelfand points out what he’s hoped we’d notice - that you can use this trick for any polynomial of degree not exceeding one, given two values of .

It’s Just Lines!

There has been a dearth of good ‘ole simple lines in Gelfand for a good while. We’re suddenly about to bring them back. Gelfand next makes sure we’ve well and truly cottoned-on to the significance of what we just found. He gives us the formula for the graph of a straight line, , and then prods us to realise that this is exactly the same as our first-degree polynomial formula. No wonder we can reverse-engineer things for this polynomial-class with two values. That’s how many you need to figure out all the values on a straight line - something which takes in two points.

Now we begin to see why Gelfand used the “regression” word in the title of this section…

A Simple But Subtle Point - Too Many Zeros

Next up is Problem 161. I’d missed the significance of this at the first pass. We’re staying with at-most-first-degree polynomials for now. Gelfand has given us two inputs ( and ) to an undisclosed polynomial , both of which give a result of . He has also informed us that the polynomial is in at most the first degree. That means it is in the general form .

The problem is to prove that the result is for any . You can perhaps guess how this miht be the case without putting in the graft of working out and , but’s let’s show it for clarity.

first

Then

Therefore, putting them together

Which means that

Therefore

And from this it is clear to see that no matter what is, the result will always be . To bring it back to lines, represents a straight horizontal one.

A Further Subtle Point - How Many is “Too Many”?

For a not-greater-than-first-degree polynomial, two zero results was “too many”. But is this the case for a not-greater-than-second-degree polynomial. It is in Problem 162 that we’re asked to tackle this.

As in Problem 161 Gelfand gives us two zero results: and . He then asks if (i.e. are all forms of this polynomial zero). His solution is a nice one. Given that we already have two zeros, he first shows us how it is two thirds of the way to being factored:

The first two factors are simply derived from and . But what is ? It’s the last factor. Factors are polynomials, and because we know that has a maximum degree of 2, that must come from (spot the ?) which means must be a zero-degree polynomial, aka a number. And this means that while this number could be zero, (meaning all results of would be zero, it could just as easily be any number, which means we cannot say given when we know from our stated facts ( and ) that is always going to be zero.

Problem 163 then takes just this scenario and gets us to work things through, where has become in .

The second solution to this problem is incredibly useful. As is frequently the case in Gelfand, you need to not just look at what he does, but also how he does it.

So what does he do? He gets meta. He knows what the polynomials are as pure symbols, and also as the detailed internals. He then simply does maths on them, as if they were any other number or expression. I found his wording a little dense, so yet again I’m going to write out the last steps symbolically to make it super-clear

Once you know what is, you can calculate

And then, finally,

Not all Lines are Straight Lines

Again, with little pause for breath, Gelfand marches us onward.

Are we approaching a universal axiom? Do we only need input-output value pairs to be able to reverse-engineer a polynomial of degree-not-exceeding ? If first-degree polynomials are represented by straight lines, what do other polynomials look like in line form?

Gelfand gets on to all this lines-stuff laterWhich I’ll get to in another chunk. but for now be satisfied that yes, polynomials do represent lines, and that these can get pretty complicated unless they are always equal to zeroAs we discovered above. in which case they are just horizontal at .

In Problem 164 Gelfand breaks out the meta again, asking us to

prove that a polynomial of degree not exceeding is defined uniquely by three of its values.

He gives us a bit of a starter, but I’m going to take my usual tack of working through Gelfand’s solution in far-far finer-grained detail.

First up are the simple parts; grokking exactly what he’s asking - when he says “uniquely defined by three of its values” he means that if two polynomials are defined by the same three values, then they too are the same. He then takes this, and writes it with symbols rather than words; a trick we’re slowy getting used to.

and represent our two polynmomials. Gelfand represents their having the same output values given the same inputs by saying , and . To be clear, he lets on that , and are three different values of . And that if these three circumstances hold true, then , which is to say, they are equal.

With all this in mind Gelfand then breaks out another proof-trick we’ve not seen beforeAt least I don’t think so. He introduces a third polynomial . Why? Let’s rewind a step.

Gelfand is taking advantage of a property of polynomial roots which I’d forgotten about - this property is that a polynomial of a degree not exceeding 2 can have at most two roots, unless it is equal to zeroWhich is what we saw in Problem 161 above. It’s the bit in italics that is being used here because he’s going to use it to show that all other polynomials which support these input-output pairs are equal to zero. Let’s see how.

Gelfand next brings in something else fundamental, but this time also blindingly obvious: that if two things are the same, then one minus the other gives you zero. I.e. .

When he combines the two, we get our proof. We need to have a symbol to represent the outcome of subtracting one polynomial from another and that is . The following should now make more sense

and

because extrapolating what we had previously

therefore

Which means that so they are the same, so therefore “a polynomial of degree not exceeding is defined uniquely by three of it’s values.”

A Confession

I’ll admit I would have never got here on my own. I’m sure that’s why its a problem with a solution. We’re supposed to realise that the tricks just performed before our eyes are permissable. That means there are some new tricks to be gleaned.

Tricks Arising

Flip It

Gelfand didn’t attack this proof head on. He came round the back. He didn’t try and prove there was only on polynomial for the given values, and instead took another route of treating himself to two, and then proving that they were in fact the same, single thing.

Go Back to the Fundamentals

The proving they were in fact the same thing but just with two different symbols attached used a very primitive method (and I mean that in the pureset sense, in that is something you know at age five or earlier). I hadn’t grokked the fact that we can use this at a meta-level.

It makes you wonder what else we can go-meta with…

So is This a General Rule?

It seems like we’re on the brink of discovering a general rule about polynomials, roots and interpolation. Getting our specifics to something more wide-ranging is the point of Problem 166. It’s also going to be the last part of this post.

Problem 166 - Uniquely Defining n-degree Polynomials

Gelfand gives us a massive tip here - we need to take the solution to Problem 164The one we worked through slowly above. and generalise it. Let’s move step by step and see if we can.

Note, I’ve ended up following Durham incredibly closely here. His explanation is as clear as I could make it so there seems like no point avoiding the fact.

First let’s have our two polynomials and , but let’s say they are degree , not degree as we had previously.

Then let’s have a bunch of values of ( of them in fact)

And subsequently let’s state that in all cases,

Then again let

Which means

So that means are roots of .

But can have at most roots, or it is identically equal to zero for all therefore

Or stated another way, for all .

In other words, as Durham crisply concludes,

whenever two degree polynomials are equal on or more points, they are the same polynomial.

Break-Time

There is a lot more gold buried in the various Problems and Solutions Or lack thereof that comprise the remainder of this section. I’m going to tackle them in a separate post however.

This one has run on long enough.

Gelfand: Chunk 17 - Polynomial (and Linear) Interpolation - March 9, 2017 - {"name"=>"Andrew Harmel-Law", "github"=>"andrewharmellaw", "twitter"=>"al94781"}