- #1
GreenWombat
- 24
- 9
- TL;DR Summary
- When I draw the vector field of y = -1 + x^2 it seems different from the calculated divergence.
I am trying to understand “divergence” by considering a one-dimensional example of the vector y defined by:
. the parabola: y = -1 + x^2
The direction of the vector y will either be to the right ( R) when y is positive or to the Left (L).
The gradient = dy/dx = Divergence = Div y = 2 x
To see the vector field of y, I drew an arrow for each value of y, in the direction indicated by the sign of y, at the corresponding value of x on a grid.
As suggested by the above table:
. The arrows at x = -1 and -2 point right.
. There is no arrow at x = 1 as y = 0
. The arrows at x = -0.5, 0 and 0.5 point left.
It seems to me that there is a sink at x = 1
Similarly is seems that there is a source at x = 1.
However, Div y indicates:
. for x < 0 all points are sinks and
. for x > 0 all points are sources.
I think I have something wrong here. Can anyone help?
I am trying to create a one-dimensional explanation along the lines of the two-dimensional examples given here.
https://www.khanacademy.org/math/mu...ves/divergence-and-curl-articles/a/divergence
. the parabola: y = -1 + x^2
The direction of the vector y will either be to the right ( R) when y is positive or to the Left (L).
The gradient = dy/dx = Divergence = Div y = 2 x
x | -3 | -2 | -1 | -0.5 | 0 | 0.5 | 1 | 2 | 3 |
x^2 | 9 | 4 | 1 | 0.25 | 0 | 0.25 | 1 | 4 | 9 |
y | 8 | 3 | 0 | -0.75 | -1 | -0.75 | 0 | 3 | 8 |
Arrow direction | R | R | - | L | L | L | - | R | R |
Div y = 2x | -6 | -4 | -2 | -1 | 0 | 1 | 2 | 4 | 6 |
To see the vector field of y, I drew an arrow for each value of y, in the direction indicated by the sign of y, at the corresponding value of x on a grid.
As suggested by the above table:
. The arrows at x = -1 and -2 point right.
. There is no arrow at x = 1 as y = 0
. The arrows at x = -0.5, 0 and 0.5 point left.
It seems to me that there is a sink at x = 1
Similarly is seems that there is a source at x = 1.
However, Div y indicates:
. for x < 0 all points are sinks and
. for x > 0 all points are sources.
I think I have something wrong here. Can anyone help?
I am trying to create a one-dimensional explanation along the lines of the two-dimensional examples given here.
https://www.khanacademy.org/math/mu...ves/divergence-and-curl-articles/a/divergence