A one dimensional example of divergence: Mystery

In summary, the one-dimensional example of divergence is when the vector field y is towards the right when y is positive, or towards the left when y is negative. The gradient of the vector field is dy/dx, which is divergence.
  • #1
GreenWombat
9
2
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

x -3-2-1-0.500.5123
x^29410.2500.25149
y830-0.75-1-0.75038
Arrow directionRR-LLL-RR
Div y = 2x-6-4-2-101246

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
 
Physics news on Phys.org
  • #2
Imagine the vector field plotted on the x-axis. All the arrows would be overlapping each other, but imagine you can distinguish them. For ##h > 0## the line segment ##[x, x + h]## has an arrow at the lower end and an arrow at the upper end. The sizes of these arrows are ##-1 + x^2## and ##-1 + (x+h)^2##.

There is a net source in the line segment if the arrow at the upper end is more positive (or less negative) than the arrow at the lower end. The average density of the source in the interval is ##\frac{ (-1 + (x+h)^2) - (-1 + x^2)}{h}##. To compute the divergence, you take the limit as ##h \rightarrow 0## and you can see that this amounts to computing the derivative of ## -1 + x^2##.

So for ##x < 0## you need a negative divergence in order to make the arrow on the right of an interval less positive or more negative that the arrow on the left. The fact that arrows may change signs over an interval doesn't, by itself, determine the sign of the divergence. In the case they do change signs, what matters is whether the change from left to right is from positive to negative or vice versa.

If we think of the arrow at the left end of the interval as "given", we can imagine the divergence as some physical phenomenon that causes a change to that arrow as it "passes through" the interval.
 
  • #3
In a mystery, everything becomes suspect and your reply straightened out a few things. Thanks

Various people suggest that you can understand divergence by thinking of the vector field to as the velocity field of flowing gas. I am trying to understand this for myself, and so I can explain it to my daughter, by considering one-dimensional examples.

******* For y = x - c
Div y = 1

For c = 1 we have

. x-3-2-10123
. y-4-3-2-1012
Arrow directionLLLL-RR
Div y1111111
This is uniformly divergent.

The value of c sets the value of x away from which the flow arrows diverge.
The apparent point of divergence is a source, as is every point in the whole field - as shown by div y. (everything expanding - like the big bang)

****** For y = -x + c
Div y = -1

For c = 1 we have y = -x + 1

. x-3-2-10123
. y43210-1-2
Arrow directionRRRR-LL
Div y-1-1-1-1-1-1-1
This is uniformly “negatively divergent” = convergent.

The value of c sets the value of x towards which the flow arrows converge.
The apparent point of convergence is a sink, as is every point in the whole field - as shown by Div y.

******* For y = x^2
Div y = 2x

. x-3-2-10123
. y9410149
Arrow directionRRR-RRR
Div y-6-4-20246
Here, as x increases, the divergence consistently increases from -6 (convergent) to +6 (divergent).These one-dimensional examples (two linear and the two parabolic) would seem to be as simple as you can get.

Understanding divergence via these “flow arrows” is becoming clearer for me in the linear examples - but the parabolic examples are still confusing.

Is there some better way of understanding these flow arrows, or are there better examples.

I have been considering divergence because of Maxwell’s laws. I’ve been hoping for a single simple equation in which there is one point of divergence surrounded by a zero divergence. (This is the opposite of the above examples in which there are points of zero-divergence surrounded by non-zero divergence.) It seems that this is a vain search as the magnitude of an electric field around an electric charge is E = kQ/r^2 and even this equation only applies “around the electric charge”, and not where r = 0, where div E is non-zero.
 
Last edited:

1. What is divergence in the context of a one dimensional example?

Divergence is a mathematical concept that refers to the rate at which a vector field is expanding or contracting at a given point. In a one dimensional example, it represents the change in a single variable as it moves along a one-dimensional line.

2. How is divergence calculated in a one dimensional example?

In a one dimensional example, divergence can be calculated using the derivative of the variable at a specific point. This derivative represents the rate of change or slope of the line at that point, which can indicate whether the variable is expanding or contracting.

3. What does a positive divergence value indicate in a one dimensional example?

A positive divergence value in a one dimensional example indicates that the variable is expanding, meaning that it is increasing in value as it moves along the line. This can also be thought of as a "source" of the vector field, as it is adding to the overall magnitude of the field.

4. How does divergence relate to the overall behavior of a vector field in a one dimensional example?

In a one dimensional example, the divergence value at a given point can indicate the overall behavior of the vector field in that region. A positive divergence value indicates that the field is expanding, while a negative divergence value indicates that the field is contracting. A zero divergence value indicates that the field is neither expanding nor contracting, and is considered to be "conservative."

5. Can divergence be negative in a one dimensional example?

Yes, divergence can be negative in a one dimensional example. This indicates that the variable is contracting or decreasing in value as it moves along the line. This can also be thought of as a "sink" of the vector field, as it is decreasing the overall magnitude of the field.

Similar threads

Replies
3
Views
1K
Replies
4
Views
360
Replies
20
Views
2K
Replies
3
Views
1K
Replies
3
Views
341
Replies
3
Views
1K
Replies
6
Views
1K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
1
Views
1K
Back
Top