OU blog

Personal Blogs

Valentin Fadeev

Self ex-spline-atory

Visible to anyone in the world
Edited by Valentin Fadeev, Thursday, 27 Mar 2014, 10:06

M832 did not really fit in the "big picture" of my study plan this year, not only because I am notoriously bad at numerical calculations. Having invested a lot of effort and sleepless nights in developing intuition for the behaviour of analytic functions I was suddenly confronted by the cubic splines which seemed to have all those properties, that well-mannered functions would be never allowed to possess.

Nicely, but artificially glued together of several pieces of cubics, smooth only up to the second derivative, vanishing on the entire intervals, now this is what seems really counter-intuitive. Be that as it may, the TMA deadlines had to be met.

The following is the kind of problem I got stuck with for a while. Obviously I am not replicating a TMA question here, giving an extended solution to one of the problems from the Course Notes. So the task is to express a function, say f of x equals x squared in terms of cubic B-splines on the entire real axis. I am omitting a lot of background material focusing on one particular idea that arises in the solution.

equation left hand side x squared equals right hand side n ary summation from p equals negative normal infinity to normal infinity over lamda sub p times cap b sub p of x

Since cap b sub p cubed of x has a supporting interval equation left hand side open p comma sum with, 3 , summands p plus three plus one close equals right hand side open p comma p plus four close of length 4 outside which it vanishes, we can start by expressing the function in terms of cap b sub negative three comma cap b sub negative two comma cap b sub negative one comma cap b sub zero on open 0.1 close and then try to extend the result. Calculating the expressions for the splines on open zero comma one close :

cap b sub negative three of x equals negative one divided by 24 times open x minus one close cubed

cap b sub negative two of x equals one divided by 24 times open three times x cubed minus six times x squared plus four close

cap b sub negative one of x equals one divided by 24 times open sum with, 4 , summands negative three times x cubed plus three times x squared plus three times x plus one close

cap b sub zero of x equals one divided by 24 times x cubed

multiplying by the respective coefficients, summing and equating powers of x on each side we arrive at the following system of equations:

case statement case 1column 1 plus plus minus minus plus plus minus minus lamda minus minus three times times three lamda minus minus two times times three lamda minus minus one lamda zero equals equals zero case 2column 1 plus plus minus minus times times three lamda minus minus three times times six lamda minus minus two times times three lamda minus minus one equals equals zero case 3column 1 plus plus minus minus times times three lamda minus minus three times times three lamda minus minus one equals equals 24 case 4column 1 plus plus plus lamda minus minus three times times four lamda minus minus two lamda minus minus one equals equals zero

Having the solution (guaranteed by the Schoenberg-Whitney theorem): equation left hand side open lamda sub negative three comma lamda sub negative two comma lamda sub negative one comma lamda sub zero close equals right hand side open eight divided by three comma negative four divided by three comma eight divided by three comma 44 divided by three close

Now we want to find all coefficients on each of the intervals open xi sub p comma xi sub p plus four close for the points equation left hand side xi sub i equals right hand side i times h semicolon i equals prefix plus minus of one comma prefix plus minus of two full stop full stop full stop full stop . From the general expression for the B-spline it can be deduced that

cap b sub p of xi sub p plus one equals one divided by 24 times h

cap b sub p of xi sub p plus two equals one divided by six times h

cap b sub p of xi sub p plus three equals one divided by 24 times h

which for h equals one leads to the following recurrence relation:

equation left hand side sum with, 3 , summands lamda sub j minus one plus four times lamda sub j minus two plus lamda sub j minus three equals right hand side 24 times j squared

or, after changing the index

sum with, 3 , summands lamda sub j plus four times lamda sub j plus one plus lamda sub j plus two equals 24 left parenthesis j plus three times right parenthesis squared

Now here is the trick that I came up with and that was not (at least not explicitly) described in the Course Notes or the set book. The last expression can be thought of as a "second-order linear inhomogeneous recurrence relation". The advantage of this approach is that the structure of the solution instantly becomes clear.

The general solution of the corresponding homogeneous relation

sum with, 3 , summands lamda sub j plus four times lamda sub j plus one plus lamda sub j plus two equals zero

is derived in the course notes, using the standard method of solving this type of recurrencies and is given by the following expression:

equation left hand side lamda sub j super h equals right hand side alpha times open negative two minus Square root of three close super j plus beta times open negative two plus Square root of three close super j

It can also be found using generating functions. Not surprisingly it depends on 2 arbitary constants, as it takes 2 initial terms, lamda sub zero and lamda sub negative one to reconstruct the whole sequence from the three-term recurrency. Applying the general ideas from the linear systems we deduce that in order to obtain the general solution of the inhomogeneous recurrency we have to add a particular solution to the expression above.

Since the RHS is the quadratic polynomial it makes sence to look for the particular solution in the form:

equation left hand side lamda sub j super p equals right hand side sum with, 3 , summands a times j squared plus b times j plus c

Substituting this into the original recurrency and gatherig together the powers of j we obtain:

equation left hand side sum with, 5 , summands six times a times j squared plus open 12 times a plus six times b close times j plus eight times a plus six times b plus six times c equals right hand side sum with, 3 , summands 24 times j squared plus 144 times j plus 216

which after equating powers gives the solution equation left hand side open a comma b comma c close equals right hand side open four comma 16 comma 44 divided by three close

Thus the general solution of the inhomogeneous equation is given by the following formula:

equation left hand side lamda sub j equals right hand side sum with, 5 , summands alpha times open negative two minus Square root of three close super j plus beta times open negative two plus Square root of three close super j plus four times j squared plus 16 times j plus 44 divided by three

Now we can use the values of lamda sub zero and lamda sub negative one to determine the constants (bearing in mind that equation left hand side open negative two minus Square root of three close times open negative two plus Square root of three close equals right hand side negative one ):

equation left hand side 44 divided by three equals right hand side sum with, 3 , summands alpha plus beta plus 44 divided by three

equation left hand side eight divided by three equals right hand side negative alpha times open negative two plus Square root of three close minus beta times open negative two minus Square root of three close plus eight divided by three

which gives equation sequence alpha equals beta equals zero . Thus finally:

equation left hand side lamda sub j equals right hand side sum with, 3 , summands four times j squared plus 16 times j plus 44 divided by three

which is the solution of the original problem.

Permalink Add your comment
Share post

This blog might contain posts that are only visible to logged-in users, or where only logged-in users can comment. If you have an account on the system, please log in for full access.

Total visits to this blog: 54023