<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>7670</id>
  <path>/www/nrich/html/content/id/7670/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>0000-00-00T00:00:00</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;p&gt;Often you&amp;#39;ll be given a polynomial and are asked to find what its value is at some values of $x$. In this problem, we&amp;#39;ll ask you to go the other way around: we give you a set of co-ordinates with distinct $x$ values, and you try to find a polynomial that goes through all of them.&lt;/p&gt;
&lt;p&gt;First you will prove that such a polynomial exists, then you&amp;#39;ll prove some results about the uniqueness of that polynomial.&lt;/p&gt;
&lt;h3 id=&quot;existence&quot;&gt;Existence&lt;/h3&gt;
&lt;p&gt;First, draw some points on a graph to convince yourself of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;for any two points, you can draw a straight line between them.&lt;/li&gt;
&lt;li&gt;for three points, you can&amp;#39;t always fit them on a straight line, but you might be able to fit them to a quadratic.&lt;/li&gt;
&lt;li&gt;you can draw four points that a quadratic couldn&amp;#39;t possibly fit, but maybe a cubic would do.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now for the algebra: if I give you two points $(x_1,y_1)$ and $(x_2,y_2)$ with $x_1\not=x_2$, you should be able to find the equation of a straight line going through both. The standard way of doing this is to state that the equation of a straight line is $y=mx+c$, calculate $m$ via the formula \[m=\frac{y_2-y_1}{x_2-x_1}\] then calculate $c$ via \[c=y_1-mx_1\] and you&amp;#39;re done. &lt;em&gt;(Why is it
important that $x_1\not=x_2$?)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t like this method, because it doesn&amp;#39;t give me any clues as to how I might fit a curve to three points, or four points, or anything else. Here&amp;#39;s an alternative way of thinking about the problem:&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal&quot;&gt;
&lt;li&gt;
&lt;p&gt;Find an equation that will fit the first point. The most obvious such would be $y=y_1$.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now, find out by how much you miss the second point, say $d=y_2-y_1$.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;How can you modify your existing equation so that it hits the second point, without ruining the fact it goes through the first point? Well, if you add any equation to yours which is &lt;em&gt;zero at $x_1$&lt;/em&gt;, then the result will have the same value at $x_1$, but may be different elsewhere.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Straight lines that are zero at $x_1$ are of the form $m(x-x_1)$. What value of $m$ do we need? Well, take $m=1$ and see what happens at $x_2$: our graph has moved by $D=x_2-x_1$. Clearly if we take $m=2$ it&amp;#39;ll move by $2D$, or $m=\frac{1}{2}$ would move it by $\frac{1}{2}D$. We want to move it by $d$, so we take $m=\frac{d}{D}$. We then have $y=y_1+\frac{d}{D}(x-x_1)$, which we can expand and
simplify if we so wish, and we&amp;#39;re done.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Can you generalise this approach to find a quadratic that goes through (1,0), (4,6), and (2,-2)? Can you find a cubic that goes through these points and (0,-2)?&lt;/p&gt;
&lt;p&gt;Can you find a general procedure for fitting $n$ co-ordinates? What kind of graph will you need to use?&lt;/p&gt;
&lt;h3 id=&quot;uniqueness&quot;&gt;Uniqueness&lt;/h3&gt;
&lt;p&gt;Draw some graphs of some quadratics to convince yourself that if a quadratic is zero in three places, it must be zero everywhere (equivalently, no quadratic crosses the $x$-axis three times). Then, using the Factor Theorem or otherwise, prove it. (Here by quadratic we just mean $y=ax^2+bx+c$ where any of $a$, $b$ or $c$ may be zero).&lt;/p&gt;
&lt;p&gt;Hence prove that if two quadratic curves are equal in three places, they must be equal everywhere. So the quadratic you found that went through (1,0), (4,6), and (2,-2) is the &lt;em&gt;only&lt;/em&gt; quadratic that does so.&lt;/p&gt;
&lt;p&gt;Generalise your results to polynomials of any degree.&lt;/p&gt;

&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;span class=&quot;editorial&quot;&gt;This problem required making logical arguments that come together to form a proof. It can be hard to put all the steps in the right place but we received great solutions from Michael from the UK, Kaan from the G&lt;/span&gt;&lt;span class=&quot;editorial&quot;&gt;erman Highschool, Istanbul, Turkey and&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;Alex from England. They all used very similar ideas and Michael
produced a very well written and formatted word document explaining the ideas. The full solution is in PDF format at the following link: &lt;a href=&quot;/content/id/7670/Interpolating%20Polynomials%20Soln1.pdf&quot;&gt;Interpolating Polynomials Soln1.pdf&lt;/a&gt; &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Thanks for the fantastic ideas you sent in!&lt;/span&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;This problem is an extension of secondary ideas, intended primarily for the keen and those considering mathematics at university.&lt;/p&gt;
&lt;p&gt;There are many applications of the idea of interpolating polynomials, but this problem is more about presenting the ideas of existence and uniqueness proofs, as well as giving students an intuition for the different ways graphs can be manipulated.&lt;/p&gt;
&lt;h3 id=&quot;related-resources&quot;&gt;Related resources&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;If students struggle manipulating graphs, there are some simpler problems in that area: &lt;a href=&quot;/773&quot;&gt;Parabolic Patterns&lt;/a&gt;, &lt;a href=&quot;/791&quot;&gt;Parabolas Again&lt;/a&gt;, &lt;a href=&quot;/802&quot;&gt;Cubics&lt;/a&gt;, &lt;a href=&quot;/6481&quot;&gt;Tangled Trig Graphs&lt;/a&gt;, &lt;a href=&quot;/7120&quot;&gt;Quadratic Transformations&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;discussion-ideas&quot;&gt;Discussion ideas&lt;/h3&gt;
&lt;p&gt;You can also discuss how a polynomial of degree $n$ can be defined in two different ways – either as the $n+1$ coefficients of powers of $x$, or the values of the polynomial at $n+1$ distinct inputs. In linear algebra terminology, such polynomials belong to an &lt;em&gt;$n+1$-dimensional vector space&lt;/em&gt;. A more intuitive notion of dimension that may be more suitable at this level is a measure of
&quot;free&quot;-ness: add a dimension for each (real-valued) free variable and subtract one for each constraint.&lt;/p&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;p&gt;To find four points that a quadratic couldn&amp;#39;t possibly fit, remember that quadratics only have one turning point.&lt;/p&gt;
&lt;p&gt;To find the quadratic that fits three points, make sure you understand how you can add and subtract graphs, and what happens to the result. Don&amp;#39;t try to fit all three points at once &amp;amp;ndash; fit two and then &amp;amp;ldquo;fix&amp;amp;rdquo; your line to fit the third.&lt;/p&gt;
&lt;p&gt;Uniqueness: The Factor Theorem states that if $p$ is a polynomial and $p(a) = 0$, then there is a polynomial $q$ such that $p(x) = (x-a)q(x)$. What does this mean about the degrees of $p$ and $q$?&lt;/p&gt;
&lt;p&gt;Finally, to prove two polynomials are equal, try proving their difference is zero.&lt;/p&gt;

&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;h3 id=&quot;existence&quot;&gt;Existence&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The quadratic method is essentially the same as the linear method; join two of the points by a line and then use $m(x-1)(x-4)$ for varying values of $m$ to hit the third. The quadratic that goes through (1,0), (4,6), and (2,-2) is \[y=2x^2-8x+6\] The cubic that goes through those points and (0,-2) is \[y=x^3-5x^2+6x-2\]&lt;/li&gt;
&lt;li&gt;You need a polynomial of degree $n-1$. The general procedure is by induction: assume you have $(x_1,y_1)\dots(x_n,y_n)$, and that you can produce a degree $n-2$ polynomial $p$ that fits the first $n-1$ points. Then let $q(x)=\Pi_{k=1}^{n-1}(x-x_k)$, and the polynomial \[p(x)+q(x)\frac{y_n-p(x_n)}{q(x_n)}\] is degree $n-1$ and fits all $n$ points.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;uniqueness&quot;&gt;Uniqueness&lt;/h3&gt;
&lt;p&gt;Suppose $p(x)$ is a polynomial of degree $n$ which is zero on $n+1$ distinct points $x_1\dots x_{n+1}$. The Factor Theorem states that $p(x)=(x-x_1)\dots(x-x_{n+1})q(x)$ for some polynomial $q$. But this has degree $\ge n+1$ unless $q$ is zero, so $p$ is zero.&lt;/p&gt;
&lt;p&gt;Suppose $r$ and $s$ are polynomials of degree n, and $r(x_i)=s(x_i)$ for $i=1\dots n+1$, $x_i$ distinct. Then $r(x)-s(x)$ is a polynomial degree $n$ which is zero in $n+1$ places, so it is zero, so $r=s$.&lt;/p&gt;

&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>5</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Interpolating polynomials</title>
  <description>Given a set of points (x,y) with distinct x values, find a polynomial that goes through all of them, then prove some results about the existence and uniqueness of these polynomials.</description>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Working systematically</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Generalising</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Mathematical reasoning &amp; proof</specifier>
  </spec_group>
  <spec_group>Advanced Algebra
    <specifier>Polynomials</specifier>
  </spec_group>
  <spec_group>Advanced Algebra
    <specifier>Remainder Theorem</specifier>
  </spec_group>
  <spec_group>Advanced Algebra
    <specifier>Roots of polynomial equations</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Curve Fitting</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Graphs</specifier>
  </spec_group>
  <spec_group>Algebra
    <specifier>Manipulating algebraic expressions/formulae</specifier>
  </spec_group>
  <spec_group>sfh10
    <specifier>Live - Stage 5</specifier>
  </spec_group>
</resource>