Search code examples
matlabnumerical-methodsnumerical-analysisnumerical-computing

I can't determine the polynomial interpolation with the minumum grade


I have to restrict it with the folowings: P(-1) = f(-1), P(0)=f(0), P(1)=f(1), P'(1)=f'(1)


Solution

  • Let the polynomial be

    ax³ + bx² + cx + d
    

    By the given equations,

    - a + b - c + d = f(-1)
                  d = f(0)
      a + b + c + d = f(1)
     3a +2b + c     = f'(1)
    

    You should be able to solve.