Interpolation Functions and their derivatives

In summary, the question is whether the derivative of a quadratic interpolation function is continuous or discontinuous and whether this depends on the purpose of the interpolation. It is common to use the notation "C0-continuous" for continuous functions with discontinuous first derivatives and "C1-continuous" for functions with continuous first derivatives. In the context of finite element theory, the author's comment suggests that the derivative of a second order Lagrange interpolation function may not always be continuous, but it may depend on the specific purpose and application of the interpolation.
  • #1
bugatti79
794
1
Folks,

How do determine whether the derivative of a quadratic interpolation function ##ax^2+bx+c## is continous/discontinous in the context of the following

We have a a true solution approximated by 2 quadratic interpolation functions ie,

The approximation function
[itex]
f_1(x)=ax^2+bx+c, g \le x \le x_1\\ f_1(x)=dx^2+ex+f, x_1 \le x \le h

[/itex]

See attached my sketch.

Would'nt ##f_1(x)=f_2(x)## and ##f'_1(x)=f'_2(x)## at ##x_1## for the approximation function to be continous?
 

Attachments

  • IMAG0063.jpg
    IMAG0063.jpg
    13.1 KB · Views: 370
Mathematics news on Phys.org
  • #2
It looks like f and f' are continuous at x1.
 
  • #3
Whether or not you want or need the first deriviative to be continuous depends what the interpolation is used for.

A common notation is "C0-continuous" if the function is continuous but the first derivative is not (except by accident in a special case), and "C1-continuous" if the function and its first derivative are both continuous.

The word "continuous" on its own means "C0-continuous".
 
  • #4
AlephZero said:
Whether or not you want or need the first deriviative to be continuous depends what the interpolation is used for.
True but there would be little point in using a quadratic to interpolate if we don't want the first derivative to be continuous. The point is that for f(x)= ax^2+ bx+ c, f'(x)= 2ax+b, f''(x)= 2a, a constant. If we only want to match values and don't need "smoothness", we would use piecewise linear functions. If we want to match up second derivatives, we should use piecewise cubics (cubic splines).
 
  • #5
AlephZero said:
Whether or not you want or need the first deriviative to be continuous depends what the interpolation is used for.

A common notation is "C0-continuous" if the function is continuous but the first derivative is not (except by accident in a special case), and "C1-continuous" if the function and its first derivative are both continuous.

The word "continuous" on its own means "C0-continuous".

Well I am referring back to the finite element theory. My query is based on the authors comment as attached.
Why wouldn't the derivative of a second order lagrange interpolation function be continuous as I have shown in my original sketch.

In other words, would'nt ##f'_1(x_1)=f'_2(x_1)## hold and thus the derivatuve is continuous...?

HallsofIvy said:
True but there would be little point in using a quadratic to interpolate if we don't want the first derivative to be continuous. The point is that for f(x)= ax^2+ bx+ c, f'(x)= 2ax+b, f''(x)= 2a, a constant. If we only want to match values and don't need "smoothness", we would use piecewise linear functions. If we want to match up second derivatives, we should use piecewise cubics (cubic splines).
 

Attachments

  • Derivative of Solution.jpg
    Derivative of Solution.jpg
    11.7 KB · Views: 451

Related to Interpolation Functions and their derivatives

1. What is an interpolation function?

An interpolation function is a mathematical tool used to estimate values between known data points. It is used to fill in the gaps between data points in order to create a smooth curve or function.

2. How is an interpolation function different from an extrapolation function?

An interpolation function is used to estimate values within the range of known data points, while an extrapolation function is used to estimate values beyond the range of known data points. Interpolation is considered more reliable than extrapolation.

3. What is the purpose of using interpolation functions in scientific research?

Interpolation functions are commonly used in data analysis and modeling to create a smooth and continuous representation of data. This allows for easier analysis and prediction of trends or patterns in the data.

4. How are derivatives of interpolation functions calculated?

The derivatives of an interpolation function can be calculated using various methods, such as finite difference approximations or analytical differentiation. These methods use the known data points to estimate the slope of the function at a given point.

5. What are some real-world applications of interpolation functions and their derivatives?

Interpolation functions and their derivatives are used in a variety of fields, including engineering, physics, economics, and computer graphics. They can be used to predict future trends, create accurate models and simulations, and improve data analysis techniques.

Similar threads

Replies
5
Views
859
Replies
6
Views
972
  • General Math
Replies
6
Views
1K
  • General Math
Replies
7
Views
907
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
687
  • General Math
Replies
4
Views
2K
  • General Math
Replies
4
Views
2K
  • General Math
Replies
3
Views
2K
  • General Math
Replies
2
Views
1K
Back
Top