Let f be a function defined on an interval [a, b] and let the nodes a = xo < x1 < x2 = b be given. A quadratic spline s(x) interpolating function f() consists of the quadratic polynomials
so(x) = ao + bo(x - xo) + co(x - xo)^2 on [xo, x1]
and
s1(x) = a1 + b1(x - x1) + c1(x - x1)^2 on [x1, x2] such that the following conditions are satisfied:
(a) s(xi) = f(xi), for i = 0, 1, 2
(b) so(x1) = s1(x1) (continuity)
(c) s(x1) = s'(x) (smoothness)
(d) one other condition (e.g. boundary condition) that will lead to a unique solution (e.g. s'(xo) = const).
Given the data f(0) = 0, f(1) = 1, and f(2) = 2, determine the quadratic spline that interpolates this data and satisfies s'(0) = 2.