Parameterized derivative
up vote
-1
down vote
favorite
I have 3 data points: $(x_1,y_1), (x_2,y_2), (x_3,y_3)$
$x_1,x_2,x_3$ are fixed values.
$y_1,y_2,y_3$ are all separate functions of a third variable, $t$
So:
$y_1=f_1(x,t)$
$y_2=f_2(x,t)$
$y_3=f_3(x,t)$
At any given $t$, I can fit a curve through these three data points (spline, Bezier or whatever):
$y=f(x)$, so $y$ and $frac{dy}{dx}$ can be calculated for any $x$.
What is $frac{dy}{dt}$ at any value of $x$?
derivatives
|
show 1 more comment
up vote
-1
down vote
favorite
I have 3 data points: $(x_1,y_1), (x_2,y_2), (x_3,y_3)$
$x_1,x_2,x_3$ are fixed values.
$y_1,y_2,y_3$ are all separate functions of a third variable, $t$
So:
$y_1=f_1(x,t)$
$y_2=f_2(x,t)$
$y_3=f_3(x,t)$
At any given $t$, I can fit a curve through these three data points (spline, Bezier or whatever):
$y=f(x)$, so $y$ and $frac{dy}{dx}$ can be calculated for any $x$.
What is $frac{dy}{dt}$ at any value of $x$?
derivatives
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59
|
show 1 more comment
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have 3 data points: $(x_1,y_1), (x_2,y_2), (x_3,y_3)$
$x_1,x_2,x_3$ are fixed values.
$y_1,y_2,y_3$ are all separate functions of a third variable, $t$
So:
$y_1=f_1(x,t)$
$y_2=f_2(x,t)$
$y_3=f_3(x,t)$
At any given $t$, I can fit a curve through these three data points (spline, Bezier or whatever):
$y=f(x)$, so $y$ and $frac{dy}{dx}$ can be calculated for any $x$.
What is $frac{dy}{dt}$ at any value of $x$?
derivatives
I have 3 data points: $(x_1,y_1), (x_2,y_2), (x_3,y_3)$
$x_1,x_2,x_3$ are fixed values.
$y_1,y_2,y_3$ are all separate functions of a third variable, $t$
So:
$y_1=f_1(x,t)$
$y_2=f_2(x,t)$
$y_3=f_3(x,t)$
At any given $t$, I can fit a curve through these three data points (spline, Bezier or whatever):
$y=f(x)$, so $y$ and $frac{dy}{dx}$ can be calculated for any $x$.
What is $frac{dy}{dt}$ at any value of $x$?
derivatives
derivatives
edited Nov 27 at 0:30
asked Nov 25 at 16:47
dacfer
739
739
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59
|
show 1 more comment
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
1
down vote
The simplest way to fit the data through 3 points is to draw a quadratic $$y=ax^2+bx+c$$
In this case, $a$, $b$, and $c$ are also depending on a parameter $t$:
$$y(x,t)=a(t)x^2+b(t)x+c$$
You are not given $a(t)$, $b(t)$, and $c(t)$ directly, so you need to calculate them. What you have is a system of equations:
$$begin{cases}ax_1^2+bx_1+c=y_1=f_1(t)\ax_2^2+bx_2+c=y_1=f_2(t)\ax_3^2+bx_3+c=y_3=f_3(t)end{cases}$$
You can solve this in terms of unknowns $a$, $b$, $c$ using determinants:
$$a(t)=frac{begin{vmatrix}
f_1(t) & x_1 & 1 \
f_2(t) & x_2 & 1 \
f_3(t) & x_3 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}=frac{f_1(t)begin{vmatrix}
x_2 & 1 \
x_3 & 1
end{vmatrix}-f_2(t)begin{vmatrix}
x_1 & 1 \
x_3 & 1
end{vmatrix}+f_3(t)begin{vmatrix}
x_1 & 1 \
x_32 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}$$
You get a similar expression for $b(t)$ and $c(t)$.
Taking derivative with respect to time should be easy now:
$$frac{dy}{dt}=frac{da(t)}{dt}x^2+frac{db(t)}{dt}x+frac{dc(t)}{dt}$$
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The simplest way to fit the data through 3 points is to draw a quadratic $$y=ax^2+bx+c$$
In this case, $a$, $b$, and $c$ are also depending on a parameter $t$:
$$y(x,t)=a(t)x^2+b(t)x+c$$
You are not given $a(t)$, $b(t)$, and $c(t)$ directly, so you need to calculate them. What you have is a system of equations:
$$begin{cases}ax_1^2+bx_1+c=y_1=f_1(t)\ax_2^2+bx_2+c=y_1=f_2(t)\ax_3^2+bx_3+c=y_3=f_3(t)end{cases}$$
You can solve this in terms of unknowns $a$, $b$, $c$ using determinants:
$$a(t)=frac{begin{vmatrix}
f_1(t) & x_1 & 1 \
f_2(t) & x_2 & 1 \
f_3(t) & x_3 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}=frac{f_1(t)begin{vmatrix}
x_2 & 1 \
x_3 & 1
end{vmatrix}-f_2(t)begin{vmatrix}
x_1 & 1 \
x_3 & 1
end{vmatrix}+f_3(t)begin{vmatrix}
x_1 & 1 \
x_32 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}$$
You get a similar expression for $b(t)$ and $c(t)$.
Taking derivative with respect to time should be easy now:
$$frac{dy}{dt}=frac{da(t)}{dt}x^2+frac{db(t)}{dt}x+frac{dc(t)}{dt}$$
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
add a comment |
up vote
1
down vote
The simplest way to fit the data through 3 points is to draw a quadratic $$y=ax^2+bx+c$$
In this case, $a$, $b$, and $c$ are also depending on a parameter $t$:
$$y(x,t)=a(t)x^2+b(t)x+c$$
You are not given $a(t)$, $b(t)$, and $c(t)$ directly, so you need to calculate them. What you have is a system of equations:
$$begin{cases}ax_1^2+bx_1+c=y_1=f_1(t)\ax_2^2+bx_2+c=y_1=f_2(t)\ax_3^2+bx_3+c=y_3=f_3(t)end{cases}$$
You can solve this in terms of unknowns $a$, $b$, $c$ using determinants:
$$a(t)=frac{begin{vmatrix}
f_1(t) & x_1 & 1 \
f_2(t) & x_2 & 1 \
f_3(t) & x_3 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}=frac{f_1(t)begin{vmatrix}
x_2 & 1 \
x_3 & 1
end{vmatrix}-f_2(t)begin{vmatrix}
x_1 & 1 \
x_3 & 1
end{vmatrix}+f_3(t)begin{vmatrix}
x_1 & 1 \
x_32 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}$$
You get a similar expression for $b(t)$ and $c(t)$.
Taking derivative with respect to time should be easy now:
$$frac{dy}{dt}=frac{da(t)}{dt}x^2+frac{db(t)}{dt}x+frac{dc(t)}{dt}$$
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
add a comment |
up vote
1
down vote
up vote
1
down vote
The simplest way to fit the data through 3 points is to draw a quadratic $$y=ax^2+bx+c$$
In this case, $a$, $b$, and $c$ are also depending on a parameter $t$:
$$y(x,t)=a(t)x^2+b(t)x+c$$
You are not given $a(t)$, $b(t)$, and $c(t)$ directly, so you need to calculate them. What you have is a system of equations:
$$begin{cases}ax_1^2+bx_1+c=y_1=f_1(t)\ax_2^2+bx_2+c=y_1=f_2(t)\ax_3^2+bx_3+c=y_3=f_3(t)end{cases}$$
You can solve this in terms of unknowns $a$, $b$, $c$ using determinants:
$$a(t)=frac{begin{vmatrix}
f_1(t) & x_1 & 1 \
f_2(t) & x_2 & 1 \
f_3(t) & x_3 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}=frac{f_1(t)begin{vmatrix}
x_2 & 1 \
x_3 & 1
end{vmatrix}-f_2(t)begin{vmatrix}
x_1 & 1 \
x_3 & 1
end{vmatrix}+f_3(t)begin{vmatrix}
x_1 & 1 \
x_32 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}$$
You get a similar expression for $b(t)$ and $c(t)$.
Taking derivative with respect to time should be easy now:
$$frac{dy}{dt}=frac{da(t)}{dt}x^2+frac{db(t)}{dt}x+frac{dc(t)}{dt}$$
The simplest way to fit the data through 3 points is to draw a quadratic $$y=ax^2+bx+c$$
In this case, $a$, $b$, and $c$ are also depending on a parameter $t$:
$$y(x,t)=a(t)x^2+b(t)x+c$$
You are not given $a(t)$, $b(t)$, and $c(t)$ directly, so you need to calculate them. What you have is a system of equations:
$$begin{cases}ax_1^2+bx_1+c=y_1=f_1(t)\ax_2^2+bx_2+c=y_1=f_2(t)\ax_3^2+bx_3+c=y_3=f_3(t)end{cases}$$
You can solve this in terms of unknowns $a$, $b$, $c$ using determinants:
$$a(t)=frac{begin{vmatrix}
f_1(t) & x_1 & 1 \
f_2(t) & x_2 & 1 \
f_3(t) & x_3 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}=frac{f_1(t)begin{vmatrix}
x_2 & 1 \
x_3 & 1
end{vmatrix}-f_2(t)begin{vmatrix}
x_1 & 1 \
x_3 & 1
end{vmatrix}+f_3(t)begin{vmatrix}
x_1 & 1 \
x_32 & 1
end{vmatrix}}{begin{vmatrix}
x_1^2 & x_1 & 1 \
x_2^2 & x_2 & 1 \
x_3^2 & x_3 & 1
end{vmatrix}}$$
You get a similar expression for $b(t)$ and $c(t)$.
Taking derivative with respect to time should be easy now:
$$frac{dy}{dt}=frac{da(t)}{dt}x^2+frac{db(t)}{dt}x+frac{dc(t)}{dt}$$
answered Nov 27 at 15:56
Andrei
10.6k21025
10.6k21025
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
add a comment |
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
Thanks yes this is a solution. Actually I made an error in simplifying my real world problem. Actually $x$ is a function of $t$, $y$ is not. In the end I formed a 2-d spline and then used the chain rule to get $cfrac{dy}{dt}=frac{frac{dy}{dx}}{frac{dx}{dt}}$
– dacfer
Nov 29 at 20:55
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f3013068%2fparameterized-derivative%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
You don't have enough information, or your problem does not clearly states what you know. What's missing is what's the relationship between $x$ and $f_i$ and $t$.
– Andrei
Nov 25 at 17:17
$x$ is not a function of $t$, it is an independent variable.
– dacfer
Nov 25 at 17:24
Do you know the functions $f_i$? Say $f_i(t)=t^i$. What is supposed to be $y$ in between? Where does this problem comes from?
– Andrei
Nov 25 at 17:32
I do know the functions $f_i$. $y$ in between is calculated from the spline curve fit. The problem is a curve fit of a 2d graph. That works, now I need the derivatives.
– dacfer
Nov 25 at 17:35
@Andrei thanks... a reply to my response above would have been more helpful
– dacfer
Nov 27 at 14:59