Interpolation Functions and their derivatives

Click For Summary

Discussion Overview

The discussion revolves around the continuity of the derivative of quadratic interpolation functions, specifically in the context of piecewise-defined functions. Participants explore the conditions under which the derivatives of these functions are continuous at the points where the pieces meet.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant questions whether the derivatives of two quadratic interpolation functions must be equal at the point where they meet for continuity.
  • Another participant asserts that both the function and its derivative are continuous at the meeting point.
  • Some participants discuss the relevance of derivative continuity based on the intended use of the interpolation, noting that "C0-continuous" refers to functions that are continuous but may have discontinuous first derivatives, while "C1-continuous" refers to both the function and its first derivative being continuous.
  • There is a suggestion that if the goal is to ensure smoothness, using quadratic functions is preferable, while piecewise linear functions may suffice if only value matching is needed.
  • A participant references finite element theory and questions why the derivative of a second-order Lagrange interpolation function would not be continuous, seeking clarification on the conditions for derivative continuity.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of derivative continuity in quadratic interpolation, with some arguing for its importance while others suggest it may not be essential depending on the context. The discussion remains unresolved regarding the specific conditions under which the derivatives are continuous.

Contextual Notes

There are references to specific notations for continuity (C0 and C1) and the implications of using different types of interpolation functions, but the discussion does not resolve the mathematical conditions for continuity of derivatives in this context.

bugatti79
Messages
786
Reaction score
4
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
<br /> 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<br /> <br />

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: 431
Physics news on Phys.org
It looks like f and f' are continuous at x1.
 
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".
 
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).
 
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: 514

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
4K
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K