Rates of Change, Gradient
up vote
1
down vote
favorite
I was just wondering what the differences between gradient and rate of change are. Are they the same thing?
calculus vector-analysis
New contributor
add a comment |
up vote
1
down vote
favorite
I was just wondering what the differences between gradient and rate of change are. Are they the same thing?
calculus vector-analysis
New contributor
betterexplained.com/articles/…
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I was just wondering what the differences between gradient and rate of change are. Are they the same thing?
calculus vector-analysis
New contributor
I was just wondering what the differences between gradient and rate of change are. Are they the same thing?
calculus vector-analysis
calculus vector-analysis
New contributor
New contributor
New contributor
asked yesterday
J. Smith
61
61
New contributor
New contributor
betterexplained.com/articles/…
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday
add a comment |
betterexplained.com/articles/…
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday
betterexplained.com/articles/…
– Matti P.
yesterday
betterexplained.com/articles/…
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
The instantaneous rate of change of a real value function $f:mathbb{R}rightarrowmathbb{R}$ is given by the derivative:
$$frac{df}{dx}(x_0) = lim_{hrightarrow 0}frac{f(x_0 + h) - f(x_0)}{h}$$
From this we find that:
$$f(x_0 + h) approx f(x_0) + frac{df}{dx}(x_0)h ;;(1)$$
Where (1) is a linear function of the form $f(h)= a + sh$.
For a multi-variable function, we can calculate a rate of change as well:
Let $f:mathbb{R}^nrightarrowmathbb{R}$ be multivariable function and, $mathbf{g}:tinmathbb{R}rightarrowmathbb{R}^n$ a line in the n-dimensional space.
$$mathbf{g}(t) = mathbf{x}_0 + mathbf{h}t$$
Then we can take the derivative using one-dimensional calculus, by composing $f$ with $mathbf{g}$:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t};;(2)$$
Where (2) is the instantaneous rate of change of $f$ in the direction of $mathbf{h}$.
Now we can postulate that we have a linear approximation of $f(mathbf{x}_0 + mathbf{h})$ ( a multi-variable linear function ):
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + sum_i s_i h_i = f(mathbf{x}_0) + left<mathbf{s}, mathbf{h}right>$$
Where $mathbf{s}$ will be the generalized gradient and $<.,.>$ is the inner product in $mathbb{R}^n$ (a.k.a the dot product).
To find $mathbf{s}$, just do the following, set $mathbf{h} = hmathbf{e}_i$, where $mathbf{e}_i$ is a vector of the standard $mathbb{R}^n$ basis.
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + hleft <mathbf{s}, mathbf{e}_i right > = f(mathbf{x}_0) + hs_i$$
$$lim_{h rightarrow 0} frac{f(mathbf{x}_0 + hmathbf{e}_i) - f(mathbf{x}_0)}{h} = s_i$$
Basically the left side of the equation is a partial derivative of $f$, hence:
$$s_i = frac{partial f(mathbf{x}_0)}{partial x_i};;(3)$$
$$mathbf{s} = nabla f(mathbf{x}_0)$$
Finally taking (2) and (3), we find that the instantaneous rate of change of $f$ in the $mathbf{h}$ direction is:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t} = lim_{trightarrow 0}frac{f(mathbf{x}_0) + left<nabla f(mathbf{x}_0), mathbf{h}right> t - f(mathbf{x}_0)}{t} $$
$$frac{df circ mathbf{g}}{dt}(0) = left<nabla f(mathbf{x}_0), mathbf{h}right>$$
Conclusion
In order to compute the directional derivative or directional rate of change you need the gradient. That said the gradient can be interpreted as a multi-variable rate of change in the sense that it is a vector with the rates of changes for each coordinate.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The instantaneous rate of change of a real value function $f:mathbb{R}rightarrowmathbb{R}$ is given by the derivative:
$$frac{df}{dx}(x_0) = lim_{hrightarrow 0}frac{f(x_0 + h) - f(x_0)}{h}$$
From this we find that:
$$f(x_0 + h) approx f(x_0) + frac{df}{dx}(x_0)h ;;(1)$$
Where (1) is a linear function of the form $f(h)= a + sh$.
For a multi-variable function, we can calculate a rate of change as well:
Let $f:mathbb{R}^nrightarrowmathbb{R}$ be multivariable function and, $mathbf{g}:tinmathbb{R}rightarrowmathbb{R}^n$ a line in the n-dimensional space.
$$mathbf{g}(t) = mathbf{x}_0 + mathbf{h}t$$
Then we can take the derivative using one-dimensional calculus, by composing $f$ with $mathbf{g}$:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t};;(2)$$
Where (2) is the instantaneous rate of change of $f$ in the direction of $mathbf{h}$.
Now we can postulate that we have a linear approximation of $f(mathbf{x}_0 + mathbf{h})$ ( a multi-variable linear function ):
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + sum_i s_i h_i = f(mathbf{x}_0) + left<mathbf{s}, mathbf{h}right>$$
Where $mathbf{s}$ will be the generalized gradient and $<.,.>$ is the inner product in $mathbb{R}^n$ (a.k.a the dot product).
To find $mathbf{s}$, just do the following, set $mathbf{h} = hmathbf{e}_i$, where $mathbf{e}_i$ is a vector of the standard $mathbb{R}^n$ basis.
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + hleft <mathbf{s}, mathbf{e}_i right > = f(mathbf{x}_0) + hs_i$$
$$lim_{h rightarrow 0} frac{f(mathbf{x}_0 + hmathbf{e}_i) - f(mathbf{x}_0)}{h} = s_i$$
Basically the left side of the equation is a partial derivative of $f$, hence:
$$s_i = frac{partial f(mathbf{x}_0)}{partial x_i};;(3)$$
$$mathbf{s} = nabla f(mathbf{x}_0)$$
Finally taking (2) and (3), we find that the instantaneous rate of change of $f$ in the $mathbf{h}$ direction is:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t} = lim_{trightarrow 0}frac{f(mathbf{x}_0) + left<nabla f(mathbf{x}_0), mathbf{h}right> t - f(mathbf{x}_0)}{t} $$
$$frac{df circ mathbf{g}}{dt}(0) = left<nabla f(mathbf{x}_0), mathbf{h}right>$$
Conclusion
In order to compute the directional derivative or directional rate of change you need the gradient. That said the gradient can be interpreted as a multi-variable rate of change in the sense that it is a vector with the rates of changes for each coordinate.
add a comment |
up vote
0
down vote
The instantaneous rate of change of a real value function $f:mathbb{R}rightarrowmathbb{R}$ is given by the derivative:
$$frac{df}{dx}(x_0) = lim_{hrightarrow 0}frac{f(x_0 + h) - f(x_0)}{h}$$
From this we find that:
$$f(x_0 + h) approx f(x_0) + frac{df}{dx}(x_0)h ;;(1)$$
Where (1) is a linear function of the form $f(h)= a + sh$.
For a multi-variable function, we can calculate a rate of change as well:
Let $f:mathbb{R}^nrightarrowmathbb{R}$ be multivariable function and, $mathbf{g}:tinmathbb{R}rightarrowmathbb{R}^n$ a line in the n-dimensional space.
$$mathbf{g}(t) = mathbf{x}_0 + mathbf{h}t$$
Then we can take the derivative using one-dimensional calculus, by composing $f$ with $mathbf{g}$:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t};;(2)$$
Where (2) is the instantaneous rate of change of $f$ in the direction of $mathbf{h}$.
Now we can postulate that we have a linear approximation of $f(mathbf{x}_0 + mathbf{h})$ ( a multi-variable linear function ):
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + sum_i s_i h_i = f(mathbf{x}_0) + left<mathbf{s}, mathbf{h}right>$$
Where $mathbf{s}$ will be the generalized gradient and $<.,.>$ is the inner product in $mathbb{R}^n$ (a.k.a the dot product).
To find $mathbf{s}$, just do the following, set $mathbf{h} = hmathbf{e}_i$, where $mathbf{e}_i$ is a vector of the standard $mathbb{R}^n$ basis.
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + hleft <mathbf{s}, mathbf{e}_i right > = f(mathbf{x}_0) + hs_i$$
$$lim_{h rightarrow 0} frac{f(mathbf{x}_0 + hmathbf{e}_i) - f(mathbf{x}_0)}{h} = s_i$$
Basically the left side of the equation is a partial derivative of $f$, hence:
$$s_i = frac{partial f(mathbf{x}_0)}{partial x_i};;(3)$$
$$mathbf{s} = nabla f(mathbf{x}_0)$$
Finally taking (2) and (3), we find that the instantaneous rate of change of $f$ in the $mathbf{h}$ direction is:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t} = lim_{trightarrow 0}frac{f(mathbf{x}_0) + left<nabla f(mathbf{x}_0), mathbf{h}right> t - f(mathbf{x}_0)}{t} $$
$$frac{df circ mathbf{g}}{dt}(0) = left<nabla f(mathbf{x}_0), mathbf{h}right>$$
Conclusion
In order to compute the directional derivative or directional rate of change you need the gradient. That said the gradient can be interpreted as a multi-variable rate of change in the sense that it is a vector with the rates of changes for each coordinate.
add a comment |
up vote
0
down vote
up vote
0
down vote
The instantaneous rate of change of a real value function $f:mathbb{R}rightarrowmathbb{R}$ is given by the derivative:
$$frac{df}{dx}(x_0) = lim_{hrightarrow 0}frac{f(x_0 + h) - f(x_0)}{h}$$
From this we find that:
$$f(x_0 + h) approx f(x_0) + frac{df}{dx}(x_0)h ;;(1)$$
Where (1) is a linear function of the form $f(h)= a + sh$.
For a multi-variable function, we can calculate a rate of change as well:
Let $f:mathbb{R}^nrightarrowmathbb{R}$ be multivariable function and, $mathbf{g}:tinmathbb{R}rightarrowmathbb{R}^n$ a line in the n-dimensional space.
$$mathbf{g}(t) = mathbf{x}_0 + mathbf{h}t$$
Then we can take the derivative using one-dimensional calculus, by composing $f$ with $mathbf{g}$:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t};;(2)$$
Where (2) is the instantaneous rate of change of $f$ in the direction of $mathbf{h}$.
Now we can postulate that we have a linear approximation of $f(mathbf{x}_0 + mathbf{h})$ ( a multi-variable linear function ):
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + sum_i s_i h_i = f(mathbf{x}_0) + left<mathbf{s}, mathbf{h}right>$$
Where $mathbf{s}$ will be the generalized gradient and $<.,.>$ is the inner product in $mathbb{R}^n$ (a.k.a the dot product).
To find $mathbf{s}$, just do the following, set $mathbf{h} = hmathbf{e}_i$, where $mathbf{e}_i$ is a vector of the standard $mathbb{R}^n$ basis.
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + hleft <mathbf{s}, mathbf{e}_i right > = f(mathbf{x}_0) + hs_i$$
$$lim_{h rightarrow 0} frac{f(mathbf{x}_0 + hmathbf{e}_i) - f(mathbf{x}_0)}{h} = s_i$$
Basically the left side of the equation is a partial derivative of $f$, hence:
$$s_i = frac{partial f(mathbf{x}_0)}{partial x_i};;(3)$$
$$mathbf{s} = nabla f(mathbf{x}_0)$$
Finally taking (2) and (3), we find that the instantaneous rate of change of $f$ in the $mathbf{h}$ direction is:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t} = lim_{trightarrow 0}frac{f(mathbf{x}_0) + left<nabla f(mathbf{x}_0), mathbf{h}right> t - f(mathbf{x}_0)}{t} $$
$$frac{df circ mathbf{g}}{dt}(0) = left<nabla f(mathbf{x}_0), mathbf{h}right>$$
Conclusion
In order to compute the directional derivative or directional rate of change you need the gradient. That said the gradient can be interpreted as a multi-variable rate of change in the sense that it is a vector with the rates of changes for each coordinate.
The instantaneous rate of change of a real value function $f:mathbb{R}rightarrowmathbb{R}$ is given by the derivative:
$$frac{df}{dx}(x_0) = lim_{hrightarrow 0}frac{f(x_0 + h) - f(x_0)}{h}$$
From this we find that:
$$f(x_0 + h) approx f(x_0) + frac{df}{dx}(x_0)h ;;(1)$$
Where (1) is a linear function of the form $f(h)= a + sh$.
For a multi-variable function, we can calculate a rate of change as well:
Let $f:mathbb{R}^nrightarrowmathbb{R}$ be multivariable function and, $mathbf{g}:tinmathbb{R}rightarrowmathbb{R}^n$ a line in the n-dimensional space.
$$mathbf{g}(t) = mathbf{x}_0 + mathbf{h}t$$
Then we can take the derivative using one-dimensional calculus, by composing $f$ with $mathbf{g}$:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t};;(2)$$
Where (2) is the instantaneous rate of change of $f$ in the direction of $mathbf{h}$.
Now we can postulate that we have a linear approximation of $f(mathbf{x}_0 + mathbf{h})$ ( a multi-variable linear function ):
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + sum_i s_i h_i = f(mathbf{x}_0) + left<mathbf{s}, mathbf{h}right>$$
Where $mathbf{s}$ will be the generalized gradient and $<.,.>$ is the inner product in $mathbb{R}^n$ (a.k.a the dot product).
To find $mathbf{s}$, just do the following, set $mathbf{h} = hmathbf{e}_i$, where $mathbf{e}_i$ is a vector of the standard $mathbb{R}^n$ basis.
$$f(mathbf{x}_0 + mathbf{h})approx f(mathbf{x}_0) + hleft <mathbf{s}, mathbf{e}_i right > = f(mathbf{x}_0) + hs_i$$
$$lim_{h rightarrow 0} frac{f(mathbf{x}_0 + hmathbf{e}_i) - f(mathbf{x}_0)}{h} = s_i$$
Basically the left side of the equation is a partial derivative of $f$, hence:
$$s_i = frac{partial f(mathbf{x}_0)}{partial x_i};;(3)$$
$$mathbf{s} = nabla f(mathbf{x}_0)$$
Finally taking (2) and (3), we find that the instantaneous rate of change of $f$ in the $mathbf{h}$ direction is:
$$frac{df circ mathbf{g}}{dt}(0) = lim_{trightarrow 0}frac{f(mathbf{x}_0 + mathbf{h}t) - f(mathbf{x}_0)}{t} = lim_{trightarrow 0}frac{f(mathbf{x}_0) + left<nabla f(mathbf{x}_0), mathbf{h}right> t - f(mathbf{x}_0)}{t} $$
$$frac{df circ mathbf{g}}{dt}(0) = left<nabla f(mathbf{x}_0), mathbf{h}right>$$
Conclusion
In order to compute the directional derivative or directional rate of change you need the gradient. That said the gradient can be interpreted as a multi-variable rate of change in the sense that it is a vector with the rates of changes for each coordinate.
edited 20 hours ago
answered yesterday
pedroth
345
345
add a comment |
add a comment |
J. Smith is a new contributor. Be nice, and check out our Code of Conduct.
J. Smith is a new contributor. Be nice, and check out our Code of Conduct.
J. Smith is a new contributor. Be nice, and check out our Code of Conduct.
J. Smith is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3007446%2frates-of-change-gradient%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
betterexplained.com/articles/…
– Matti P.
yesterday
In short: Rate of change (derivative) is a scalar, but gradient is a vector that contains the directional rates of change.
– Matti P.
yesterday