SOLUTION: write the funtion that includes this data set [(1,3),(2,0),(3,3),(4,-6)]

Algebra ->  Algebra  -> Inequalities -> SOLUTION: write the funtion that includes this data set [(1,3),(2,0),(3,3),(4,-6)]       Log On

Ad: Algebra Solved!™: algebra software solves algebra homework problems with step-by-step help!
Ad: Algebrator™ solves your algebra problems and provides step-by-step explanations!

   


Question 25017: write the funtion that includes this data set [(1,3),(2,0),(3,3),(4,-6)]
Answer by kev82(148) About Me  (Show Source):
You can put this solution on YOUR website!
Hi,
I'm guessing that you want a polynomial (or at least continuous) function from the reals to the reals that goes through those data points. If you don't then please write back and explain exactly what you're after.
There are many different ways to do this, but my favourite is Lagrange interpolation, so let's do that. For ease let's call the data points and where ranges from 1 to 4.
Imagine that we can make four functions that are one when and zero when . By multiplying these functions by We have four functions, each correct at one data point and the others are zero at that datapoint, add them up and we're done!
You may worry that this won't produce the same answer as other methods, but there is a very simple proof by contradiction to show any interpolating polynomial of degree given data points will be the same.
So the problem comes down to trying to figure out these functions. Luckily they're quite easy to make. Let's try and make . The first thing we need to do is to make it zero at , , and . Hopefully you can see the obvious choice of . The second property we need to worry about is that the function needs to be one at . Our current function evaluates to when so if we divide by that we're done.

Subbing the numbers in gives

Hopefully you get the idea and can construct the other functions in a similar way. My answers are:



Now all you have to do is multiply by and add everything up. A persom smarter than me would have read the question and realise that you don't need because you're going to multiply it by zero, but never mind :)
This should give the final answer as (with a bit of adding and factoring)

Don't forget to check it works, and you may need to write in the standard form of a cubic.
Hope that helps
Kev