1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Cubic interpolation question

  1. Oct 30, 2012 #1
    If a cubic function satisfies f(0) = -32, f(1) = 0, f(3) = 10 and f(4) = 0,
    use cubic interpolation to estimate f(2)

    I'm not sure how to approach this since I have only ever done quadratic interpolation and linear interpolation, is it just an extension of the lagrange interpolating polynomial?

    If so could someone please show me what form to put it in?

    The correct answer is 12, however my attempt at extending lagrange give me nowhere near that?!

    any help would be hugely appreciated!!!!
  2. jcsd
  3. Oct 30, 2012 #2


    User Avatar
    Homework Helper

    could you just start with g(x) = a+bx+cx^2+dx^3 and solve for the constants given the points you have?
  4. Oct 31, 2012 #3


    User Avatar
    Homework Helper

    There are many ways one of which being
    [tex]P(x)=\sum_{i=1}^n \frac{\pi(x)}{\pi\prime(x_k)}\frac{f(x_i)}{x-x_i}[/tex]
    where in this case n=4 and
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook