Monotonic and smooth interpolation between three points
up vote
0
down vote
favorite
The problem I have is the following:
Given three $x,y$ points, $(-1, -y_{0})$, $(0,0)$ and $(1,y_{2})$, where $y_{0} geq 0$ and $y_2 geq 0$, I want to interpolate smoothly between them with a function or spline that is monotonic, has continuous first and second derivatives, and with the following conditions imposed on the derivatives at the end points: $f'(-1) = y_{0}$, $f'(+1) = y_{2}$, $f''(-1) = f''(1) = 0$. In other words I have two lines $y=mx$, with in general different gradients, one defined for $x < 1$ and the other for $x > 1$, which need to be smoothly joined in the intermediate region, like in this sketch.
I suspect this can be solved with splines of a sufficiently high order, but so far I've not been able find an example in the literature which clearly covers the case with all of the monotonicity, continuous 1st/2nd derivatives and the end-point conditions imposed.
Grateful for a solution or even a pointer in the right direction - I don't come from a very mathematical background so a more explicit solution would certainly be appreciated.
interpolation spline
add a comment |
up vote
0
down vote
favorite
The problem I have is the following:
Given three $x,y$ points, $(-1, -y_{0})$, $(0,0)$ and $(1,y_{2})$, where $y_{0} geq 0$ and $y_2 geq 0$, I want to interpolate smoothly between them with a function or spline that is monotonic, has continuous first and second derivatives, and with the following conditions imposed on the derivatives at the end points: $f'(-1) = y_{0}$, $f'(+1) = y_{2}$, $f''(-1) = f''(1) = 0$. In other words I have two lines $y=mx$, with in general different gradients, one defined for $x < 1$ and the other for $x > 1$, which need to be smoothly joined in the intermediate region, like in this sketch.
I suspect this can be solved with splines of a sufficiently high order, but so far I've not been able find an example in the literature which clearly covers the case with all of the monotonicity, continuous 1st/2nd derivatives and the end-point conditions imposed.
Grateful for a solution or even a pointer in the right direction - I don't come from a very mathematical background so a more explicit solution would certainly be appreciated.
interpolation spline
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The problem I have is the following:
Given three $x,y$ points, $(-1, -y_{0})$, $(0,0)$ and $(1,y_{2})$, where $y_{0} geq 0$ and $y_2 geq 0$, I want to interpolate smoothly between them with a function or spline that is monotonic, has continuous first and second derivatives, and with the following conditions imposed on the derivatives at the end points: $f'(-1) = y_{0}$, $f'(+1) = y_{2}$, $f''(-1) = f''(1) = 0$. In other words I have two lines $y=mx$, with in general different gradients, one defined for $x < 1$ and the other for $x > 1$, which need to be smoothly joined in the intermediate region, like in this sketch.
I suspect this can be solved with splines of a sufficiently high order, but so far I've not been able find an example in the literature which clearly covers the case with all of the monotonicity, continuous 1st/2nd derivatives and the end-point conditions imposed.
Grateful for a solution or even a pointer in the right direction - I don't come from a very mathematical background so a more explicit solution would certainly be appreciated.
interpolation spline
The problem I have is the following:
Given three $x,y$ points, $(-1, -y_{0})$, $(0,0)$ and $(1,y_{2})$, where $y_{0} geq 0$ and $y_2 geq 0$, I want to interpolate smoothly between them with a function or spline that is monotonic, has continuous first and second derivatives, and with the following conditions imposed on the derivatives at the end points: $f'(-1) = y_{0}$, $f'(+1) = y_{2}$, $f''(-1) = f''(1) = 0$. In other words I have two lines $y=mx$, with in general different gradients, one defined for $x < 1$ and the other for $x > 1$, which need to be smoothly joined in the intermediate region, like in this sketch.
I suspect this can be solved with splines of a sufficiently high order, but so far I've not been able find an example in the literature which clearly covers the case with all of the monotonicity, continuous 1st/2nd derivatives and the end-point conditions imposed.
Grateful for a solution or even a pointer in the right direction - I don't come from a very mathematical background so a more explicit solution would certainly be appreciated.
interpolation spline
interpolation spline
asked Nov 16 at 17:33
A. Gilbert
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3001414%2fmonotonic-and-smooth-interpolation-between-three-points%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown