Given $n$ data points. Is it possible to interpolate them by piecewise quadratic polynomials with knots at the given data such that the quadratic interpolant is:
(a) Once continuously differentiable?
(b) Twice continuously differentiable? If it's not possible, what is the maximum number of given data points to meet this requirement?
My Progress By experimenting with different sets of $n$ data points, I realized that for part (a), I can do it since given any 2 points not on the same vertical line, we can always have a quadratic polynomial go through them. Now, for combining all piecewise quadratic polynomial, at each knot $2,3,4,5,..,n-1$, we need to have: $a_i(x_i)^2 + b_ix_i+c_i = a_{i+1}(x_{i})^2 + b_{i+1}x_{i} + c_{i+1}$, $2a_{i}x_i + b_i = 2a_{i+1}x_i+b_{i+1}$ for $i=1,2,...,n-1$. This is possible because we only have 3 unknowns with 2 data points $(x_i, y_i)$ and $(x_{i+1}, y_{i+1})$, so part (a) is done.
For part (b), we need $a_{i}=a_{i+1}$, $2a_{i}x_i + b_i = 2a_{i+1}x_i+b_{i+1}$ and $a_i(x_i)^2 + b_ix_i+c_i = a_{i+1}(x_{i})^2 + b_{i+1}x_{i} + c_{i+1}$ for $i=1,2,...,n-1$. But this is not possible since the only solution is $a_i = a_{i+1}, b_{i}= b_{i+1}$ and $c_{i}=c_{i+1}$.
From this conclusion, we can that the maximum given number of points to satisfy part (b) is $2$, since there is only an unique quadratic polynomials that can go through more than 2 given points, but we assume these $n$ points are randomly positioned for $n\geq 3$, so they can't all be on the same parabola.
Can someone please help review my solution above?