# Natural Cubic Spline S on [0,2]

A Natural Cubic Spline S on $[0,2]$ is defined by:

S(x)= $$S_0(x)=1+2x-x^3 \to 0 \leq x < 1$$ $$S_1(x)=2+b(x-1)+c(x-1)^2+d(x-1)^3 \to 1 \leq x \leq 2$$

Find b,c and d

This question seems simple I am just not sure how to go about it. Can someone please guide me as to how to find the solution

-

Spline of order $k$ should have continuous derivatives up to order $k-1$. In this case,

$$S_0(1) = S_1(1)$$ $$S_0'(1) = S_1'(1)$$ $$S_0''(1) = S_1''(1)$$

Since this is a natural cubic spline, the second derivative at the first node $(x=0)$ and at the last node $(x=2)$ should be $0$.

and then you can solve for $b, c, d$.

-
$S_0(1)=S_1(1)$ Is confusing me since in essence it doesn't really provide any new information – math101 Sep 28 '12 at 16:07
Can you expound a little bit more. I am quite new to this and not exactly sure what to do – math101 Sep 28 '12 at 16:15
From the first derivative i have the following equation $$-1=b+2c+3d$$ and from the second derivative I have $$-6=2c+6d$$ – math101 Sep 28 '12 at 16:18
What would I do next? – math101 Sep 28 '12 at 16:18
@math101 The first derivative gives $b=-1$ and second derivative gives $-6=2c$. The condition at the last node $(x=2)$ gives $2c+6d=0$. – Patrick Li Sep 28 '12 at 16:30