Setting up the three terms (x0=1,y0=2; x1=3,y1=10; x2=4,y2=17; evaluating at x=2)
Term 1: y0(x0−x1)(x0−x2)(x−x1)(x−x2)=2⋅(1−3)(1−4)(2−3)(2−4)=2⋅(−2)(−3)(−1)(−2)=2⋅62=32
Term 2: y1(x1−x0)(x1−x2)(x−x0)(x−x2)=10⋅(3−1)(3−4)(2−1)(2−4)=10⋅(2)(−1)(1)(−2)=10⋅−2−2=10
Term 3: y2(x2−x0)(x2−x1)(x−x0)(x−x1)=17⋅(4−1)(4−3)(2−1)(2−3)=17⋅(3)(1)(1)(−1)=−317
Summing …