Can B-splines cause oscillations in second derivatives?

  • Thread starter Thread starter hunt_mat
  • Start date Start date
  • Tags Tags
    Derivatives
hunt_mat
Homework Helper
Messages
1,798
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.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top