# User:Mrrmv

## Contents

- 1 Wikiversity additions proposal
- 2 List of polynomial interpolation additions
- 3 Project report
- 4 Lagrange example
- 5 Adding a point
- 6 Lagrange exercise
- 7 Vandermonde example
- 8 Adding a point
- 9 Vandermonde exercise
- 10 Newton form example
- 11 Adding a point
- 12 Newton form exercise
- 13 Polynomial interpolation concept quiz

## Wikiversity additions proposal[edit]

I propose to add to the Interpolation section of the Topic: Numerical Analysis article in Wikiversity. I plan to provide links to all relevant Wikipedia articles on the topic of polynomial interpolation, including but not limited to those on Lagrange interpolation, the Vandermonde matrix, and Newton interpolation. I also plan to search out and add some other relevant links outside of Wikipedia. Furthermore, I will provide an exercise/example for each of the three main types of interpolation. Finally, I plan to write and publish a quiz covering the overall topic. The quiz and the exercises will illustrate the various advantages and disadvantages of each interpolation method.

If another student decides to do the same topic, I can either split the topic with him, or choose another one, my second choice being root-finding methods, and my third choice being numerical differential equations.

## List of polynomial interpolation additions[edit]

The following is a list of the actual additions I made to the interpolation section. All changes pertain to polynomial interpolation.

- Links to Wikipedia pages on polynomial interpolation, the Vandermonde matrix, Lagrange interpolation, the Newton form, divided differences, Neville's algorithm, and a comparison of the three methods.
- An example of polynomial interpolation using the Vandermonde matrix, and then an example of the process of interpolating a new polynomial after a point has been added to the data set.
- An example using the same points as above, but this time interpolating with the Lagrange method.
- An example using the same points as above, but this time interpolating in the Newton form.
- An exercise for each of the three methods, each time using a new set of points.
- A concept quiz that covers uniqueness of the interpolating polynomial and comparisons of the methods pertaining to: ease of use, computational cost, and the best choice of method for some situations.

## Project report[edit]

As a graduate student in Math 544 at Ohio University, my final project required me to contribute to the Topic: Numerical analysis page on Wikiversity. I chose to add to the section on interpolation. Specifically, I decided to contribrute examples, exercises, a quiz, and links pertaining to polynomial interpolation.

Before beginning the final project, I completed several class assignments, some of which involved programming, and some of which involved editing and improving a Wikipedia page. I had chosen to complete my programming assignments in Python, that being the language I am most familiar with. Thus, when the assignment to improve a Wikipedia page came about, I found an opportunity to improve a sample Python code on the page about the Horner Scheme. Specifically, the Python code had no comments and no description. Furthermore, it took an extra, unnecessary input, and had a variable that was redundant, and therefore not necessary. I made the code changes, added a description to the program, and posted my improvements and proposal on the discussion page. I got no responses to my proposal from the community. After I turned in a printout of my post, my instructor stated his approval of my change, so I made the edit to the Wikipedia page. It still stands today.

Towards the end of the quarter, I had to choose my topic for the final project and write a brief proposal on what additions I planned to make to the Wikiversity page. Choosing a topic that needed improvement was simple, because all topics on the page were blank except for one. Thus, my topic choice came down to a matter of personal preference. I had never found differential equations to be one of my strengths, and numerical integration can get a bit too hairy sometimes (especially when I'm typing it out). Thus, I chose to contribute to the interpolation section. What we had covered in class was polynomial interpolation, so I limited myself to that.

When deciding exactly what to add to the interpolation section, I kept in mind the purpose of Wikiversity (as opposed to Wikipedia), and followed the example set forth by the instructor in the numerical linear algebra section of the page. That section had links, examples, exercises, and a quiz. So, my proposal was to add links, examples, exercises, and a quiz. Specifically, I'd decided to focus on the three methods of polynomial interpolation that we'd covered in class: the Vandermonde matrix method, the Lagrange method, and the Newton form. My proposal was to provide relevant links to information about each method and polynomial interpolation as a whole, compose and write an exercise or two for each method, and also to write and post an overall concept quiz.

My actual contributions more or less followed the initial proposal. First, I provided Wikipedia links to the pages I felt relevant to the topic. These included a link to the article on polynomial interpolation in general, the Vandermonde matrix subsection of that page, the Lagrange method, the Newton form, divided differences (relevant to the Newton form), Neville's algorithm (relevant to divided differences as well as polynomial interpolation), and a link to the comparison of the three methods that is located in the Newton form article.

Before adding any exercises, I decided it would be good to add an example problem for each method. Each example provides a set of points, and then demonstrates step-by-step the implementation of its respective method in finding the interpolating polynomial for the given points. Furthermore, each example for each method uses the same points, and thus gives the same interpolating polynomial. This demonstrates the uniqueness of the interpolating polynomial for a given set of points. Finally, after finding the interpolating polynomial, each example features a section about adding an additional point to the data set, and finding a new interpolating polynomial with the expanded data. Therefore, the user can gain further insight on the ease-of-use, or lack thereof, of each particular method.

I also added an exercise for each method. Unlike the examples, the exercises do not show every step of each process. They only provide the solution and the setup to their respective methods. The reason I provided some method-specific setup as part of each solution was because, due to the uniqueness of the interpolating polynomial, a student could be asked to use the Newton form, but still find the right answer using the Lagrange method. Thus, I provided a way for them to check that they are using the proper method correctly, thus encouraging and helping each student to properly use the stated method to find the correct answer.

My final addition was a short concept quiz to tie everything together. It covers ease-of-use and situational applications of the methods as well as computational cost and failure. It also touches on the uniqueness of the interpolating polynomial through a set of points. The concept quiz is intended to be completed by the student only after he has visited and studied the various links, read the examples, and completed the exercises. The examples are especially important, as I designed them with a general outline for the concept quiz in mind. Thus, a student who has studied the examples should, through his own insight, be able to correctly answer about three quarters of the quiz.

In summary, I have expanded upon the interpolation section of the numerical methods page. In the spirit of Wikiversity, I have provided links, original examples and exercises, and an original concept quiz in order to help a student learn and understand the concept of polynomial interpolation, specifically using the Lagrange method, Vandermonde matrix, and Newton form.

## Lagrange example[edit]

We'll find the interpolating polynomial passing through the points , , , using the Lagrange method.

We first use the formula to write the following:

After some simplification, we get:

And our answer:

## Adding a point[edit]

Now we'll add a point to our data set, and find a new interpolating polynomial. Let us add the point to our set. Starting over with the Lagrange formula, we write:

Simplifying, we get:

And our polynomial is:

## Lagrange exercise[edit]

Find the interpolating polynomial passing through the points , , , , using the Lagrange method.

Solution:

## Vandermonde example[edit]

We'll find the interpolating polynomial passing through the points , , , using the Vandermonde matrix.

For our polynomial, we'll take , , and .

Define our interpolating polynomial as:

.

So, to find the coefficients of our polynomial, we solve the system , .

In order to solve the system, we will use an augmented matrix based on the Vandermonde matrix, and solve for the coefficients using Gaussian elimination. Substituting in our and values, our augmented matrix is:

Then, using Gaussian elimination,

Our coefficients are , , and . So, the interpolating polynomial is

.

## Adding a point[edit]

Now we add a point, , to our data set and find a new interpolation polynomial with this method. Our polynomial is , and we get the coefficients by solving the system . Constructing our augmented matrix as before and using Gaussian elimination, we get:

Therefore, our polynomial is:

.

## Vandermonde exercise[edit]

Using a Vandermonde matrix, find the interpolating polynomial that passes through the points , , , . Give both the polynomial, and the augmented matrix you used.

Solution:

The augmented matrix depends on your choice of index for the given points. One possibility is:

The polynomial is:

.

## Newton form example[edit]

We'll find the interpolating polynomial passing through the points , , , using the Newton form of the interpolation polynomial.

The Newton form is given by the formula , where and , with . We start by finding each .

Next, we find the necessary divided differences. First, , , and . For the next level, we have:

Finally, we can find:

.

Now, we can find the coefficients .

Substituting and simplifying, we get our interpolating polynomial:

.

## Adding a point[edit]

Now let's add the point to our data set and find the new polynomial using the same method. Due to the formula for the Newton form, we only have to add the term to our previous interpolating polynomial.

First, we have

.

Now to find we calculate some more divided differences.

So, our new interpolating polynomial is:

.

## Newton form exercise[edit]

Using the Newton form, find the interpolating polynomial passing through the points , , , and . Also give the four coefficients from the formula for the Newton polynomial.

Solution:

The four coefficients are:

.

The polynomial is:

.

## Polynomial interpolation concept quiz[edit]

Choose the best answer for each question: