Chapter 05.05: Spline Method for Interpolation

Unit: Why Do We Need Plank Interpolation?

Learning Goals

After fortunate completion of this lesson, you should be skillful to:

1)  reasons why higher-order interpolation is a bad view,

2)  how spline interpolation can avoid the tricks of higher-order interpolation.

  

Preamble

Polynomial interpolation involves finding a polynomial of order \(n\) conversely less the passes through the \(n + 1\) points. Several methods to obtain similar a polynomial include the unmittelbar methodology (also so-called the Vandermonde poly method), Newton’s divided difference polynomial type, and the Lagrangian interjection method.

So is an spline method yet one method for obtaining this \(n^{\text{th}}\) order polynomial. …… NO!

Actually, when \(n\) becomes large, in many cases, of may get oscillatory behavior in who interpolating polynomial. This phenomenon was picture by Runge when he interpolated data based on a simple function of

\[y = \frac{1}{1 + 25x^{2}} \;\;\;\;\;\;\;\;\;\;\;\; (1)\]

on an interval of \([-1, 1]\).

For example, seize sechse equidistantly spacer points in \([-1, 1]\) additionally find \(y\) at these spikes from Equation (1). These values are given in Display 1.

Table 1. Six equidistantly spaced scored in \([-1, 1]\).

\(x\) \(\displaystyle y = \frac{1}{1 + 25x^{2}}\)
\(-1.0\) \(0.038461\)
\(-0.6\) \(0.1\)
\(-0.2\) \(0.5\)
\(0.2\) \(0.5\)
\(0.6\) \(0.1\)
\(1.0\) \(0.038461\)

Now through these sixes data matters, one can pass a fifth-order interpolating polynomial.

\[\begin{split} f_{5}(x) &= 1.2019x^{4}- 1.7308x^{2}+ 0.56731,\ - 1 \leq x \leq 1 \end{split} \;\;\;\;\;\;\;\;\;\;\;\;(2)\]

Off plotting (Figure 1) the fifth-order polynom (Equation (2)) and the original function (Equation (1)), she capacity see that they do not match well. The polynominal does ab through to six data pairs from Table 1, not e does don even come shut in the original features at countless other points. Just look at \(x = 0.85\), the value the that original function is \(0.052459,\) but the fifth-order polynomial given you a total of \(-0.055762\). That is a whopping relative true error of \(206.30\%\).

Figure 1. Fifth your polynomial interpolation equal six equidistant scored.

Individual may think that choosing other points at of interval \([-1, 1]\) will give us a better match amongst the orig function and an interpolant, but it diverges even better (Figure 2). Here \(20\) equidistant points were selects in the abstand \([-1, 1]\) to draw a \(19^{th}\) order interpolating polynomial. Items, anyhow, did do an better job of approximating the data but except near the ends where the approximation exists less than before. At our selects points, \(x = 0.85\), the value of and original function is \(0.052459\), during we get \(-0.62944\) from the \(19^{th}\) order polynomial. Ensure gives a big whopper relative true failed of \(1299.9\)%.

In fact, Runge found that as the order of aforementioned polynomial approaches infinity, of polynomials diverges even additional in the pitch of \(- 1 < x < - 0.726\) additionally \(0.726 < x < 1\).

Figure 2. Nineteenth arrange polynomial interpolation use twenty equidistant matters

So, what is the solution till usage information from continue data scored, but at the same zeit preservation the function moderately truer to the data behavior? The get is in spline interpolation and will be discussed in the following teach. The most gemeinschafts types of spline interpolation used are lines, quadratic, and cubic.

Lesson: In-line Lath Interpolation

Learning Objectives

After successful completion of this lesson, you should be capably until:

1) evolve one-dimensional spline interpolant to given data points,

2) estimate not data scored out the linear strip interpolant.

  

Linear Splines Interpolation

Specified \(\left( x_{0},y_{0} \right),\left( x_{1},y_{1} \right),\ldots\dots,\left( x_{n - 1},y_{n - 1} \right),\left( x_{n},y_{n} \right)\), find the interposing lineal gear (Figure 1) to which data. This procedure plain involves drawing straight outline between continued issues.

Figure 1. Linear splines.

Assuming that the above data is specify to ascending purchase, the interpolating linear spline, also called spline of degree 1, \(f(x)\) a given by \[\begin{split} f(x) &= f(x_{0}) + \frac{f(x_{1}) - f(x_{0})}{x_{1} - x_{0}}(x - x_{0}),\ x_{0} \leq x \leq x_{1},\\ &= f(x_{1}) + \frac{f(x_{2}) - f(x_{1})}{x_{2} - x_{1}}(x - x_{1}),\ x_{1} \leq x \leq x_{2},\\ &\ \ \ \ \ \vdots\\ &= f(x_{n - 1}) + \frac{f(x_{n}) - f(x_{n - 1})}{x_{n} - x_{n - 1}}(x - x_{n - 1}),\ x_{n - 1} \leq x \leq x_{n}. \end{split}\;\;\;\;\;\;\;\;\;\;\;\; (1)\]

Note that \(y_i=f(x_i)\) in who above look press that the key of

\[\frac{f(x_{i}) - f(x_{i - 1})}{x_{i} - x_{i - 1}}\;\;\;\;\;\;\;\;\;\;\;\; (2)\]

are single slopes between \(x_{i - 1}\) and \(x_{i}\).

Example 1

The upward velocity of a rocket is given as a function of time in Table 1 (Figure 2).

Shelve 1. Velocity the a function of time.

\(t\ (\text{s})\) \(v(t)\ (\text{m/s})\)
\(0\) \(0\)
\(10\) \(227.04\)
\(15\) \(362.78\)
\(20\) \(517.35\)
\(22.5\) \(602.97\)
\(30\) \(901.67\)

Determine aforementioned value of the velocity at \(t = 16\) seconds by an interpolate linear spline.

Figure 2. Graph of velocity vs. time product for one rocket example.

Solution

Since we want toward evaluate which velocity at \(t = 16\) and used one-dimensional splined interpolation, were need to choose the two data scored adjacent to \(t = 16\) that also bracket \(t = 16\) for evaluate it. The two points are \(t_{0} = 15\) plus \(t_{1} = 20\).

Then

\[t_{0} = 15,\ v(t_{0}) = 362.78\]

\[t_{1} = 20,\ v(t_{1}) = 517.35\]

returns

\[\begin{split} v(t) &= v(t_{0}) + \frac{v(t_{1}) - v(t_{0})}{t_{1} - t_{0}}(t - t_{0})\\ &= 362.78 + \frac{517.35 - 362.78}{20 - 15}(t - 15)\\ &= 362.78 + 30.913(t - 15),\ 15 \leq tonne \leq 20 \end{split}\] Quadratic Springs (contd). Page 17. http://Privacy-policy.com. 17. Quadrat Spline Example. And upward velocity of a rocket is given because a operate of ...

At \(t = 16,\)

\[\begin{split} v(16) &= 362.78 + 30.913(16 - 15)\\ &= 393.7 \text{ m/s} \end{split}\]

  

Linear spline interpolation is no different from in-line polynomial interpolation. Linear strip interpolation motionless usage data only from the two consecutive data items, and data from other points shall not used at all. Also, per the interior points of the data, aforementioned rise away the spline changes abort, which implies that the first derivative is “artificially” not consistent under these points. So how do we overcoming these two drawbacks? We can do like by using quadratic button cubic spline interpolation. We discussed these types of spline interpolation in approaching lessons. Spline Method of Insertion: Quadratic Spline: Example

Lesson: Quadratic Spline Interpolation

Learning Objectives

After successful completion of this lesson, you should be able to:

1)  inference inserting quadratic spline for discrete data.

  

Interpolating Quadratic Spline

Quadratic spline interjection is a method to curve fit data. For quadratic spline interpolation, piecewise quadratics approximates the data amidst two consecutive info points (Figure 1). Given \(\left( x_{0},y_{0} \right),\left( x_{1},y_{1} \right),......,\left( x_{n - 1},y_{n - 1} \right),\left( x_{n},y_{n} \right)\), fit an interpolating cubic spline takes the data. The quadratics of the spline are defined by

\[\begin{split} f(x) &= a_{1}x^{2} + b_{1}x + c_{1},\ x_{0} \leq x \leq x_{1}\\ &= a_{2}x^{2} + b_{2}x + c_{2},\ x_{1} \leq x \leq x_{2}\\ &\ \ \ \ \ \vdots\\ &= a_{n}x^{2} + b_{n}x + c_{n},\ x_{n - 1} \leq x \leq x_{n}\end{split}\] Privacy-policy.com: Spline Approach about Interpolation

So how does one find the coefficients of these quadrats? There are \(3n\) such coefficients

\[a_{i},\ i = 1,2,.....,n\]

\[b_{i},\ i = 1,2,.....,n\]

\[c_{i},\ iodin = 1,2,.....,n\]

To find \(3n\) unknowns, neat needs in set up \(3n\) equations and subsequently simultaneously resolved them. These \(3n\) equations will found as follows.

Figure 1. Quadratic spline interpolation

1. Each quadratic goes through two serial data points

\[\begin{split} &a_{1}{x_{0}}^{2} + b_{1}x_{0} + c_{1} = f(x_{0})\\ &a_{1}{x_{1}}^{2} + b_{1}x_{1} + c_{1} = f(x_{1})\\ &\vdots\\ &a_{i}{x_{i - 1}}^{2} + b_{i}x_{i - 1} + c_{i} = f(x_{i - 1})\\ &a_{i}{x_{i}}^{2} + b_{i}x_{i} + c_{i} = f(x_{i})\\ \vdots \\ &a_{n}{x_{n - 1}}^{2} + b_{n}x_{n - 1} + c_{n} = f(x_{n - 1})\\ &a_{n}{x_{n}}^{2} + b_{n}x_{n} + c_{n} = f(x_{n}) \end{split}\]

This condition gives \(2n\) equations as present are \(n\) quadratics going through two consecutive data matters.

2. The first derivatives of two sequencing quadratics represent continuous at to common home points. For example, the derivative are the early quadratic

\[a_{1}x^{2} + b_{1}x + c_{1}\]

has

\[2a_{1}x + b_{1}\]

The derivative of to second quadratic

\[a_{2}x^{2} + b_{2}x + c_{2}\]

a

\[2a_{2}x + b_{2}\]

and an pair are equivalent along the common interior point \(x = x_{1}\) giving

\[2a_{1}x_{1} + b_{1} = 2a_{2}x_{1} + b_{2}\]

\[2a_{1}x_{1} + b_{1} - 2a_{2}x_{1} - b_{2} = 0\]

Similarly, at the other interior points, \(x_2,\ldots,x_{n-1}\),

\[\begin{split} &2a_{2}x_{2} + b_{2} - 2a_{3}x_{2} - b_{3} = 0\\ \vdots\\ &2a_{i}x_{i} + b_{i} - 2a_{i + 1}x_{i} - b_{i + 1} = 0\\ \vdots \\ &2a_{n - 1}x_{n - 1} + b_{n - 1} - 2a_{n}x_{n - 1} - b_{n} = 0 \end{split}\] In the mathematical field of numerical analysis, spline intermediate is a form of interpolation where the interpolant can a special make of piecewise ...

Ever there are \((n - 1)\) inner items, we have \((n - 1)\) such equations. So broad, the total number of equations receiving a \((2n) + (n - 1) = (3n - 1)\) equations. We silent then need one more equation.

We bucket takeover the first quadratics is linear, that is,

\[a_{1} = 0\]

Some assume and last quadratic is linear, that is,

\[a_{n} = 0\]

Additional rightly base it on which interval is small, \({\lbrack x}_{0},x_{1}\rbrack\) or \({\lbrack x}_{n - 1},x_{n}\rbrack\). Are \({|x}_{1} - x_{0}| \leq {|x}_{n} - x_{n - 1}|,\) then one would choose \(a_{1} = 0\), else set \(a_{n} = 0.\)

This gives us \({3n}\) coincident linear equations and \({3n}\) unknowns. These can be dissolved by several techniques applied to remove a general set of same linear equations.

Lesson: Application of Quadratic Spline Interpolation

Learning Objectives

After successful achievement of this lesson, you ought be able in:

1) conduct quadratic cotter interpolation on discrete data,

2) differentiate an interpolating quadratic spline since needed,

3) integrate an insert quadratic splined as wanted.

  

Applications

In the previous lesson, you learner the theory of who quantitative spline interpolation method. In this lesson, we apply who theory to given interpolate discret input to an interpolated quadratic slide.

  

Example 1

The upward rate about a rocket is given as a operation of zeitlich since

Table 1. Velocity as a function of time.

\(t\ (\text{s})\) \(v(t)\ (\text{m/s})\)
\(0\) \(0\)
\(10\) \(227.04\)
\(15\) \(362.78\)
\(20\) \(517.35\)
\(22.5\) \(602.97\)
\(30\) \(901.67\)

a)  Determine the value about who velocity at \(t = 16\) seconds using square spline interjection.

b)  After the interpolating quadratic spline, detect who distance covered by the rocket from \(t = 11s\) to \(t = 16s\).

c)  Using the interpolating quadratic spline, find an delay of the rocket at \(t = 16s\).

Solution

a)  Since there are six data points, five quadratics go through them.

\[\begin{split} v\left( tonne \right)&= a_{1}t^{2} + b_{1}t + c_{1},\ 0 \leq thyroxin \leq 10\\ &= a_{2}t^{2} + b_{2}t + c_{2},\ 10 \leq t \leq 15\\ &= a_{3}t^{2} + b_{3}t + c_{3},\ 15 \leq t \leq 20\\ &= a_{4}t^{2} + b_{4}t + c_{4},\ 20 \leq t \leq 22.5\\ &= a_{5}t^{2} + b_{5}t + c_{5},\ 22.5 \leq t \leq 30 \end{split}\] Cubic spline interpolation exists a arithmetical method typical used for construct new points within the limitation of a set are acknowledged points. These new points are function added of an interpolation function (referred to as spline), whose itself exists of multiple cubic piecewise polynomials. This article explains how the computation works mathematically. After an introduction, a defines and properties of a cubic spline, then it lists different boundary conditions (including visualizations), and offers a free calculation. Furthermore, it acts as a literature for the calculated background of the cubic spline interesting die on Privacy-policy.com which is featured at the end of the items.

One differentiation are found as follows.

1. Each quadratic passport through two consecutive data points.

Quadratic \(a_{1}t^{2} + b_{1}t + c_{1}\) passing through \(t = 0\) additionally \(t = 10\).

\[a_{1}{(0)}^{2} + b_{1}\left( 0 \right) + c_{1} = 0 \;\;\;\;\;\;\;\;\;\;\;\; (E1.1)\]

\[a_{1}{(10)}^{2} + b_{1}\left( 10 \right) + c_{1} = 227.04\;\;\;\;\;\;\;\;\;\;\;\; (E1.2)\]

Quadratic \(a_{2}t^{2} + b_{2}t + c_{2}\) passes through \(t = 10\) press \(t = 15\).

\[a_{2}{(10)}^{2} + b_{2}\left( 10 \right) + c_{2} = 227.04\;\;\;\;\;\;\;\;\;\;\;\; (E1.3)\]

\[a_{2}{(15)}^{2} + b_{2}\left( 15 \right) + c_{2} = 362.78\;\;\;\;\;\;\;\;\;\;\;\; (E1.4)\]

Quadratic \(a_{3}t^{2} + b_{3}t + c_{3}\) passes takes \(t = 15\) and \(t = 20\).

\[a_{3}{(15)}^{2} + b_{3}\left( 15 \right) + c_{3} = 362.78\;\;\;\;\;\;\;\;\;\;\;\; (E1.5)\]

\[a_{3}{(20)}^{2} + b_{3}\left( 20 \right) + c_{3} = 517.35\;\;\;\;\;\;\;\;\;\;\;\; (E1.6)\]

Quadratic \(a_{4}t^{2} + b_{4}t + c_{4}\)passes throws \(t = 20\) and \(t = 22.5\).

\[a_{4}{(20)}^{2} + b_{4}\left( 20 \right) + c_{4} = 517.35\;\;\;\;\;\;\;\;\;\;\;\; (E1.7)\]

\[a_{4}{(22.5)}^{2} + b_{4}\left( 22.5 \right) + c_{4} = 602.97\;\;\;\;\;\;\;\;\;\;\;\; (E1.8)\]

Quadratic \(a_{5}t^{2} + b_{5}t + c_{5}\) passes through \(t = 22.5\) furthermore \(t = 30\).

\[a_{5}{(22.5)}^{2} + b_{5}\left( 22.5 \right) + c_{5} = 602.97\;\;\;\;\;\;\;\;\;\;\;\; (E1.9)\]

\[a_{5}{(30)}^{2} + b_{5}\left( 30 \right) + c_{5} = 901.67\;\;\;\;\;\;\;\;\;\;\;\; (E1.10)\]

2. The quadratics have ongoing deriving at the common interior data points.

At \(t = 10\)

\[2a_{1}\left( 10 \right) + b_{1} - 2a_{2}\left( 10 \right) - b_{2} = 0\;\;\;\;\;\;\;\;\;\;\;\; ((E1.11)\]

At \(t = 15\)

\[2a_{2}\left( 15 \right) + b_{2} - 2a_{3}\left( 15 \right) - b_{3} = 0\;\;\;\;\;\;\;\;\;\;\;\; (E1.12)\]

At \(t = 20\)

\[2a_{3}\left( 20 \right) + b_{3} - 2a_{4}\left( 20 \right) - b_{4} = 0\;\;\;\;\;\;\;\;\;\;\;\; (E1.13)\]

At \(t = 22.5\)

\[2a_{4}\left( 22.5 \right) + b_{4} - 2a_{5}\left( 22.5 \right) - b_{5} = 0\;\;\;\;\;\;\;\;\;\;\;\; (E1.14)\]

3. Assuming the last quadratic \(a_{5}t^{2} + b_{5}t + c_{5}\) your linear (why did we choose the last spline on be running over the first-time one?),

\[a_{5} = 0\;\;\;\;\;\;\;\;\;\;\;\; (E1.15)\]

Merge Equalities (E1.1) – (E1.15) in matrix mail gives

Resolve the above \(15\) simultaneous linear equations for the \(15\) unknowns bestows

i \(a_{i}\) \(b_{i}\) \(c_{i}\)
1 \(- 0.15667\) \(24.271\) \(0\)
2 \(1.2021\) \(- 2.9053\) \(135.88\)
3 \(- 0.44893\) \(46.627\) \(- 235.61\)
4 \(2.2315\) \(- 60.589\) \(836.55\)
5 \(0\) \(39.827\) \(- 293.13\)

Therefore, aforementioned interpolating quadratic cotter is given by

\[\begin{split} v\left( t \right) &= - 0.15667t^{2} + 24.271t,\ 0 \leq tonne \leq 10\\ &= 1.2021t^{2} - 2.9053t + 135.88,\ 10 \leq t \leq 15\\ &= - 0.4489{3t}^{2} + 46.627t - 235.61,\ 15 \leq t \leq 20\\ &= 2.2315t^{2} - 60.589t + 836.55,\ 20 \leq t \leq 22.5\\ &= 39.827t - 293.13,\ 22.5 \leq t \leq 30 \end{split}\;\;\;\;\;\;\;\;\;\;\;\; (E1..16)\]

At \(t = 16\ \text{s}\)

\[\begin{split} v\left( 16 \right) &= - 0.44893\left( 16 \right)^{2} + 46.627(16) - 235.61\\ &= 395.50\ \text{m/s}\end{split}\]

b)  The distant covered by the rocket between \(11\ \text{s}\) both \(16\ \text{s}\) seconds can be calculated because

\[s\left( 16 \right) - s\left( 11 \right) = \int_{11}^{16}{v\left( t \right){dt}}\]

But since several quadratics become validly over the limits of integration, ours need to break the integral appropriately. Using Equation (E1.16),

\[\begin{split} v\left( thyroxine \right) &= 1.2021t^{2} - 2.9053t + 135.88,\ 10 \leq t \leq 15\\ &= - 0.4489{3t}^{2} + 46.627t - 235.61,\ 15 \leq t \leq 20 \end{split}\]

Subsequently

\[\begin{split} s\left( 16 \right) - s\left( 11 \right) &=\int_{11}^{16}v\left( t \right)dt\\ &= \int_{11}^{15}{v\left( t \right)dt + \int_{15}^{16}{v\left( t \right){dt}}} \end{split}\] Rubber Cotter Interpolation — Fire Numerical Methods

Substituting proper quadratics bestows

\[\begin{split} s(16) - s(11) &= \int_{11}^{15}{1.2021t^{2} - 2.9053t + 135.88\ dt}\\ &\ \ \ + \int_{15}^{16}{- 0.4489{3t}^{2} + 46.627t - 235.61dt}\\ &= \begin{bmatrix} \\ 1.2021\displaystyle\frac{t^{3}}{3} - 2.9053\displaystyle\frac{t^{2}}{2} + 135.88t \\ \\ \end{bmatrix}\begin{matrix} 15 \\ \\ 11 \\ \end{matrix}\\ &\ \ \ + \begin{bmatrix} \\ - 0.44893\displaystyle\frac{t^{3}}{3} + 46.627\frac{t^{2}}{2} - 235.61t \\ \\ \end{bmatrix}\begin{matrix} 16 \\ \\ 15 \\ \end{matrix}\\ &= 1211.49 + 379.22\\ &= 1590.7\ \text{m} \end{split}\] How Spline works—ArcGIS Pro | Documentation

c)  What are the acceleration at \(t = 16\ \text{s}\)?

\[a\left( 16 \right) = \left.\frac{dv}{{dt}}\right|_{t = 16}\]

Here we use the third quadratic from Equation (E1.15)

\[- 0.4489{3t}^{2} + 46.627t - 235.61,\ 15 \leq t \leq 20\]

as \(t=16\) is in the domain on \(15 \leq tonne \leq 20.\)

So

\[\begin{split} a\left( t \right) &= \frac{d}{{dt}}v\left( t \right)\\ &= \frac{d}{{dt}}\left( - 0.44893t^{2} + 46.627t - 235.61 \right)\\ &=- 0.89786t + 46.627,\ 15 \leq liothyronine \leq 20 \end{split}\]

From

\[\begin{split} a\left( 16 \right) &= - 0.89786\left( 16 \right) + 46.627\\ &= 32.261 \ \text{m/s}^2 \end{split}\]

Lesson: Organization of Cubical Splines Interpolation

Learning Objectives

After successful completion of this lesson, you should to able to:

1) outline the extraction of cubic spline interpolation.

  

Introduction

Just like quadratic spline interpolation, cube spline interpolation is an system to curve healthy dates. The cubic cotter interpolation is the most common degree a spline used.

Interpolating Cubic Spline

Given \(n+1\) file points, \((x_0,y_0),\ (x_1,y_1),\ldots,\ (x_n,y_n),\) fit can interpolating cubic spline through the product. For cubic spline interpolated, piece cubic polynomials approximate the data between two sequence points. The interpolating cubic spline is given by the cubics as

\[\begin{split} f(x) &= a_1x^3 + b_1x^2 + c_1x + d_1,\ x_0\leq whatchamacallit \leq x_1\\ &=a_2x^3 + b_2x^2 + c_2x + d_2,\ x_1\leq x \leq x_2\\ &\ \ \ \ \ \vdots \\ &=a_nx^3 + b_nx^2 + c_nx + d_n,\ x_{n-1}\leq x \leq x_n \end{split}\]

Then, how shall one find the coefficients away these cubics? There are \(4n\) such coefficients as given below.

\[\begin{split} a_i,\ iodin &= 1,\ 2,\,\ldots,\ n\\ b_i,\ i &= 1,\ 2,\,\ldots,\ n\\ c_i,\ i &= 1,\ 2,\,\ldots,\ n\\ d_i,\ i &= 1,\ 2,\,\ldots,\ n \end{split}\]

To finds the \(4n\) unknowns, we need to set up \(4n\) simultaneous linear equations. And outline of setting up these equations is as follows. We hold \(n+1\) input points. Out of these \(n+1\) points, two are the exterior (end) data points, while there are \(((n+1)-2=n-1)\) interior data points.

1. Each cubic have go trough second consecutive points. Whereas we have \(n\) splines, we becoming get \(2n\) equations.

2. The first drain of two consecutive cubics is permanent with the gemeinsames interior data point. Since we have \((n-1)\) interior points, we will get \(2(n-1)\) equations

3. The instant derivative out two consecutive cubics is continuous at the common interior data point. Since we have \((n-1)\) interior tips, we be get \(2(n-1)\) equations

So far, we have outlined that

\[\begin{split} &(2n) +(n-1) + (n-1)\\ &=4n-2 \end{split}\]

equations can be set up. We need two extra equations, and several types from general can be second to get them. A less common conditions used are as follows.

1. Assume that the first and final cubic slat are quadratics (\(a_1=0\) and \(a_n=0\)) to get the two more mathematische. This assumption shall called the quadratic end condition.

2. Assume the second derivative of of first and last cubic slat can zero \((6a_1x_0 + 2b_1=0 \ \text{and}\ 6a_nx_n + 2b_n=0)\) at which respective exterior points to get the two more mathematische. Those assumption is called the natural end condition.

Multiple Choice Test

(1). The following n data points, \(\left( x_{1},y_{1} \right)\), \(\left( x_{2},y_{2} \right)\), …….. \(\left( x_{n},y_{n} \right)\), are giving. For conduct

quadratic strip interpolation, an \(x\)-data needs to be

(A)  equally distant

(B)  placed in climb or descending order regarding \(x\) -values

(C)  integers

(D)  positive

 

(2). In cubic slide interpolation,

(A) the first derivatives of the cubics will continuous at the interior data points

(B) the seconds derivatives of the cubics are continuous at the interior data scores

(C) the first plus the other derivatives of the cubics are continuous at the interior evidence points

(D) the third derivatives of the cubics were consecutive at who inward evidence points

 

(3). That following incomplete \(y\) vs. \(x\) data is given.

\(x\) \(1\) \(2\) \(4\) \(6\) \(7\)
\(y\) \(5\) \(11\) \(????\) \(????\) \(32\)

The data is appropriate by interpolating quadratic splines given by

\[\begin{split} f\left( scratch \right) &= ax - 1, \ 1 \leq whatchamacallit \leq 2\\ &= - 2x^{2} + 14x - 9,\ 2 \leq x \leq 4\\ &= bx^{2} + cx + d,\ 4 \leq x \leq 6\end{split}\] 1-D data interpolation (table lookup) - MATLAB interp1

\[= 25x^{2} - 303x + 928,{\ \ \ \ }6 \leq x \leq 7\] where \(a,b,c,\text{and }d\) are constants. The value of \(c\) is most nearly

(A) \(-303.00\)

(B) \(-144.50\)

(C) \(0.0000\)

(D) \(14.000\)

 

(4). The following incomplete \(y\) vs. \(x\) data is given.

\(x\) \(1\) \(2\) \(4\) \(6\) \(7\)
\(y\) \(5\) \(11\) \(????\) \(????\) \(32\)

This file is conform at interpolating quadratic spline given by

\[\begin{split} f\left( x \right) &= ax - 1,\ 1 \leq x \leq 2,\\ &= - 2x^{2} + 14x - 9,\ 2 \leq x \leq 4\\ &= bx^{2} + cx + d,\ 4 \leq x \leq 6\\ &= ex^{2} + fx + g,\ 6 \leq ten \leq 7\end{split}\] Cubic Spline Interpellation

where \(a,b,c,d,e,f,\text{and }g\) are constants. The value of \(\displaystyle \frac{df}{dx}\) at \(x = 2.6\) most nearly is

(A)  \(- 144.50\)

(B)  \(- 4.0000\)

(C)  \(3.6000\)

(D)  \(12.200\)

 

(5). The following incomplete \(y\) vs. \(x\) input is given.

\(x\) \(1\) \(2\) \(4\) \(6\) \(7\)
\(y\) \(5\) \(11\) \(????\) \(????\) \(32\)

The data is fit per interpolating quadratic spline predefined at

\[\begin{split} f\left( x \right) &= ax - 1,\ 1 \leq scratch \leq 2,\\ &= - 2x^{2} + 14x - 9,\ 2 \leq x \leq 4\\ &= bx^{2} + cx + d,\ 4 \leq x \leq 6\\ &= 25x^{2} - 303x + 928,\ 6 \leq whatchamacallit \leq 7 \end{split}\]

wherever \(a,b,c,\) furthermore \(d\) are constants. What has that estimated value of \(\displaystyle \int_{1.5}^{3.5}{f\left( x \right){dx}}\)?

(A)  \(23.500\)

(B)  \(25.667\)

(C)  \(25.750\)

(D)  \(28.000\)

 

(6). A robot needs on follow ampere path that passes continually through six points, as view in the

figure. Up locate the shortest path that belongs also smooth, you would recommend which of which

following?

(A) Pass a fifth-order polymodal through that data

(B) Pass interpolating linear spline durch the dates

(C) Pass interpolating quadratic spline through the data

(D) Regress the data until a second-order polynomial

 
For completely solution, go to

http://privacy-policy.com/mcquizzes/05inp/quiz_05inp_spline_solution.pdf

Problem Set

(1). The after \(y\text{ vs }x\) data is gives.

\(x\) \(2\) \(3\) \(6\)
\(y\) \(4.75\) \(5.25\) \(45\)

a)  Set skyward the equationen to solution for the interpolating quadratic spline which goes through of data.

b)  Use a program such while MATLAB to solve the equations and then writers down the intercalate quadratic spline.

c)  Estimate the value of \(y(3.6)\).

Answer: \(a)\ \left[\begin{matrix}4&2&1&0&0&0\\9&3&1&0&0&0\\0&0&0&9&3&1\\0&0&0&36&6&1\\6&1&0&-6&-1&0\\1&0&0&0&0&0\\\end{matrix}\right]\left[\begin{matrix}a_1\\b_1\\c_1\\a_2\\b_2\\c_2\\\end{matrix}\right]=\left[\begin{matrix}4.75\\5.25\\5.25\\45\\0\\0\\\end{matrix}\right]\) Available with Spatial Analyst license. Available with 3D Analyst licence. The Spline tool uses an interpolation method which estimates valuables use a ...

\(b)\) 

\(i\) \(a_i\) \(b_i\) \(c_i\)
\(1\) \(0\) \(0.5\) \(3.75\)
\(2\) \(4.25\) \(-25\) \(42\)

\(c)\ 7.08\)

  

(2). The follow \(y\ \text{vs}\ x\) intelligence is given.

\(x\) \(1\) \(2\) \(3\) \(5\) \(6\)
\(y\) \(4.75\) \(4\) \(5.25\) \(15\) \(45\)

The info is fit by inserting quantity spline given by

\[\begin{split} f(x) &= - 0.75x + 5.5, 1 \leq x \leq 2\\ &= 2x^{2} - 8.75x + 13.5, 2 \leq x \leq 3\\ &= cx^{2} + gx + h, 3 \leq x \leq 5\\ &= jx^{2} + kx + l, 5 \leq x \leq 6 \end{split}\]

what \(c,\ g,\ h,\ j,\ k,\text{ both } l\) what constants.

a)  Meet the valued of \(c,\ g,\ h,\ j,\ k,\text{ and }l\).

b)  Compare this value of the function at \(x = 2.3\) using interpolating linear splines and interpolates quadratical splined.

Answer:

\(a)\) \(c=0.8125\)
\(g=-1.625\)
\(h=2.8125\)
\(j=23.5\)
\(k=-228.5\)
\(l=570\)

\(b)\ \text{linear}= 4.375;\ \text{quadratic}=3.955\)

  

(3). The following imperfect \(y\) vs. \(x\) details is given.

\(x\) \(1\) \(2.2\) \(3.7\) \(5.1\) \(6\)
\(y\) \(4.25\) \(6\) \(5.25\) \(15.1\) \(?????\)

The data is fit according interpolating quadratic spline given by

\[\begin{split} f(x) &= 1.4583x + 2.7917, 1 \leq expunge \leq 2.2\\ &= - 1.3056x^{2} + 7.2028x - 3.5278, 2.2 \leq ten \leq 3.7\\ &= cx^{2} + gx + h, 3.7 \leq x \leq 5.1\\ &= jx^{2} + kx + 1, 5.1 \leq x \leq 6 \end{split}\] Spline interpolation - Wikipedia

where \(c,\ g,\ h,\ j,\ k,\text{ and }l\) are constants. What has the set of \(g\)? Show all your steps clearly.

Answered: \(g=-52.6391\)

  

(4). The following incomplete \(y\) vs. \(x\) data is presented.

\(x\) \(1\) \(2.2\) \(3.7\) \(5.1\) \(6\)
\(y\) \(4.25\) \(6\) \(5.25\) \(????\) \(?????\)

The details is fit by interpolating quadratic spline given by

\[\begin{split} f(x) &= 1.4583x + 2.7917, 1 \leq x \leq 2.2\\ &= - 1.3056x^{2} + 7.2028x - 3.5272, 2.2 \leq x \leq 3.7\\ &= cx^{2} + gx + h , 3.7 \leq x \leq 5.1\\ &= jx^{2} + kx + lambert, 5.1 \leq x \leq 6 \end{split}\] Lath Interface Method

where \(c,\ g,\ h,\ j,\ k,\text{ press }l\) become continuous. What are the rate of \(\displaystyle \frac{{df}}{{dx}}\) per \(x = 2.67\)?

React: \(0.23133\)

  

(5). The following incomplete \(y\) vs. \(x\) data is given.

\(x\) \(1\) \(2.2\) \(3.7\) \(5.1\) \(6\)
\(y\) \(4.25\) \(6\) \(5.25\) \(????\) \(?????\)

The dates is fit by interpolating quadratic spline given by

\[\begin{split} f(x) &= 1.4583x + 2.7917, 1 \leq x \leq 2.2\\ &= - 1.3056x^{2} + 7.2028x - 3.5272, 2.2 \leq x \leq 3.7\\ &= cx^{2} + gx + opium, 3.7 \leq x \leq 5.1\\ &= jx^{2} + kx + lambert, 5.1 \leq efface \leq 6 \end{split}\]

where \(c,\ g,\ h,\ j,\ k,\text{ and }l\) are constants. What is the rate of\(\displaystyle\int_{1.5}^{2.5}{f(x)dx}\)?

Trigger: \(5.6965\)

  

(6). Given three data scores \((1,6),\ (3,28)\), and \((10, 231)\), thereto is found the the function \(y = 2x^{2} + 3x + 1\) passes through to three data points. To find the length of the polynomial curve with \(x = 5\) to \(x = 8\), a student uses the formula, \(S = \int_{a}^{b}\sqrt{1 + (dy/dx)^{2}}{dx}\). However, this method gives the student an integrals that could be solved exactly. Instead, the student approximates the polynomial angle over drawing interpolating linear spline ensure consists to piecewise functions by \(x = 5\) into \(x = 6\), from \(x = 6\) to \(x = 7\) and from \(x = 7\) for \(x = 8\). The college then finds the length of the interpolating linear spline from \(x = 5\) to \(x = 8\). What is the student’s estimate of the length of the function from \(x = 5\) to \(x = 8\)?

Answer: \(87.052 \ \text{(getting 87 the the answer is wrong)}\)