Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...
Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...
Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6.3. B SPLINES 85<br />
Exercises<br />
(6.1) Is the following function a linear spline on [0, 4]? Why or why not?<br />
{<br />
3x + 2 : 0 ≤ x < 1<br />
S(x) =<br />
−2x + 4 : 1 ≤ x ≤ 4<br />
(6.2) Is the following function a linear spline on [0, 2]? Why or why not?<br />
{<br />
x + 3 : 0 ≤ x < 1<br />
S(x) =<br />
3 : 1 ≤ x ≤ 2<br />
(6.3) Is the following function a linear spline on [0, 4]? Why or why not?<br />
{<br />
x 2 + 3 : 0 ≤ x < 3<br />
S(x) =<br />
5x − 6 : 3 ≤ x ≤ 4<br />
(6.4) Find constants, α, β such that the following is a linear spline on [0, 5].<br />
⎧<br />
⎪⎨ 4x − 2 : 0 ≤ x < 1<br />
S(x) = αx + β : 1 ≤ x < 3<br />
⎪⎩<br />
−2x + 10 : 3 ≤ x ≤ 5<br />
(6.5) Is the following function a quadratic spline on [0, 4]? Why or why not?<br />
{<br />
x 2 + 3 : 0 ≤ x < 3<br />
Q(x) =<br />
5x − 6 : 3 ≤ x ≤ 4<br />
(6.6) Is the following function a quadratic spline on [0, 2]? Why or why not?<br />
{<br />
x 2 + 3x + 2 : 0 ≤ x < 1<br />
Q(x) =<br />
2x 2 + x + 3 : 1 ≤ x ≤ 2<br />
(6.7) Find constants, α, β, γ such that the following is a quadratic spline on [0, 5].<br />
⎧<br />
1<br />
⎪⎨ 2 x2 + 2x + 3 2<br />
: 0 ≤ x < 1<br />
Q(x) = αx<br />
⎪⎩<br />
2 + βx + γ : 1 ≤ x < 3<br />
3x 2 − 7x + 12 : 3 ≤ x ≤ 5<br />
(6.8) Find the quadratic spline that interpolates the following data:<br />
t 0 1 4<br />
y 1 −2 1<br />
To resolve the single degree of freedom, assume that Q ′ (0) = −Q ′ (4). Assume your solution<br />
takes the form<br />
{<br />
α 1 (x − 1) 2 + β 1 (x − 1) − 2 : 0 ≤ x < 1<br />
Q(x) =<br />
α 2 (x − 1) 2 + β 2 (x − 1) − 2 : 1 ≤ x ≤ 4<br />
Find the constants α 1 , β 1 , α 2 , β 2 .