Jump to content

Cubic spline interpolation

From Wikibase
Revision as of 19:59, 21 October 2026 by Rongzhou (talk | contribs) (Created page with "'''Cubic spline interpolation''' is the process of finding a '''continuous and differentiable up to second degree''' function $C(x)$ consisting of a series of cubic functions $C_i(x)$ that for a definite set of datapoints $\{(x_i,y_i)| i\in [0,n], i \in N\}$ satisfies $C(x_i)=y_i$. i.e., find $$ C(x)=C_i(x),\, x_i \le x \le x_{i+1} \\ C_i(x)=a_i(x-x_i)^3+b_i(x-x_i)^2+c_i(x-x_i)+d_i,\, \forall i\in [0,n-1], i \in N\ $$ so $$ C(x_i)=y_i,\, \forall \{(x_i,y_i)| i\in [0,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Languages: English · français · Esperanto

Cubic spline interpolation is the process of finding a continuous and differentiable up to second degree function $C(x)$ consisting of a series of cubic functions $C_i(x)$ that for a definite set of datapoints $\{(x_i,y_i)| i\in [0,n], i \in N\}$ satisfies $C(x_i)=y_i$.

i.e., find

$$\begin{gathered} C(x)=C_i(x),\, x_i \le x \le x_{i+1} \\ C_i(x)=a_i(x-x_i)^3+b_i(x-x_i)^2+c_i(x-x_i)+d_i,\, \forall i\in [0,n-1], i \in N\ \end{gathered}$$

so

$$\begin{gather} C(x_i)=y_i,\, \forall \{(x_i,y_i)| i\in [0,n], i \in N\} \tag{1} \\ C_i(x_{i+1})=C_{i+1}(x_{i+1}),\, \forall i \in [0,n-1], i \in N \tag{2} \\ \dot C_i(x_{i+1})=\dot C_{i+1}(x_{i+1}),\, \forall i \in [0,n-2], i \in N \tag{3} \\ \ddot C_i(x_{i+1})=\ddot C_{i+1}(x_{i+1}),\, \forall i \in [0,n-2], i \in N \tag{4} \\ \end{gather}$$

Solution