Can B-splines cause oscillations in second derivatives?

  • Thread starter Thread starter hunt_mat
  • Start date Start date
  • Tags Tags
    Derivatives
Click For Summary
SUMMARY

The discussion centers on the oscillations observed in the second derivatives of B-splines, particularly when applied to a set of points on an ellipse using a degree 5 B-spline. The user implemented a numerical differentiation scheme on non-uniform grids and found that while the first derivative was accurately approximated, the second derivative exhibited significant oscillations. The user questions whether these oscillations are due to the numerical differentiation method, a manifestation of Runge's phenomenon, or an inherent characteristic of B-splines, especially noting that the issue worsened with a degree 7 B-spline.

PREREQUISITES
  • Understanding of B-splines and their properties, specifically degree and continuity.
  • Familiarity with numerical differentiation techniques, particularly on non-uniform grids.
  • Knowledge of Runge's phenomenon and its implications in numerical analysis.
  • Experience with MATLAB for plotting and analyzing numerical results.
NEXT STEPS
  • Research B-spline properties and their impact on derivative calculations.
  • Learn about numerical differentiation methods and their accuracy, especially for non-uniform grids.
  • Investigate Runge's phenomenon and its effects on polynomial interpolation.
  • Explore advanced B-spline techniques, including higher-degree B-splines and their continuity properties.
USEFUL FOR

Mathematicians, numerical analysts, and computer scientists working with spline interpolation, numerical differentiation, or those seeking to understand the behavior of B-splines in computational applications.

hunt_mat
Homework Helper
Messages
1,816
Reaction score
33
Hi,

I have been playing with B-splines recently and I have had some curious results. As a rest, I had a set of points on the ellipse; \frac{x^{2}}{9}+y^{2}=1. I used the paramatrisation x=3\cos\theta ,\quad y=\sin\theta and I computed the derivatives numerically (I had to come up with a numerical scheme for differentiation using non-uniform grids. It works okay for some simple functions but I am not very familiar with how these things are done)

I found that the first derivative (w.r.t. \theta) was very well approximated (to within 10^-3), plotting it on matlab, you could just about see where they were different. When I calculated the second derivative (w.r.t. \theta) (by applying my derivative formula again), the curves were a poor agreement. There were lots of oscillations in the calculation of the second derivative.

So my question is this:

Are the oscillations just a sign of my poor choice of numerical derivative, this phenomena an example of Runge's phenomena or something which is inherent within B-splines? I was using a degree 5 B-spline, the result was worse for a degree 7 curve.

Any suggestions?
 
Mathematics news on Phys.org
As a general rule, when approximating a function, the derivatives will differ, and each order of derivative is worse.
 
I understand that. The degree of the curve I am using is 5, so that implies C^{3} continuity. What I don't get is HOW they're worse.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
881
  • · Replies 11 ·
Replies
11
Views
3K
Replies
11
Views
2K