Visualize 2D vector fields interactively. Plot gradient fields, divergence, curl, and streamline flows with this powerful visualization tool.
A vector field assigns a vector to each point in space. In 2D, it can be represented as F(x,y) = (P(x,y), Q(x,y)), where P and Q are scalar functions.
Mathematical Definition:
For a 2D vector field F: ℝ² → ℝ²:
F(x,y) = P(x,y)î + Q(x,y)ĵ
where î and ĵ are unit vectors in the x and y directions respectively.
| Property | Formula | Physical Meaning | Example |
|---|---|---|---|
| Divergence (∇·F) | ∂P/∂x + ∂Q/∂y | Measures source/sink strength | Positive = source, Negative = sink |
| Curl (∇×F) | ∂Q/∂x - ∂P/∂y | Measures rotation strength | Positive = CCW rotation, Negative = CW rotation |
| Gradient Field | F = ∇φ | Conservative field, path-independent | Gravitational, electrostatic fields |
| Streamlines | dy/dx = Q/P | Curves tangent to vector field | Flow lines in fluid dynamics |
| Potential Function | ∇φ = F | Scalar function for conservative fields | φ such that ∂φ/∂x = P, ∂φ/∂y = Q |
Radial Fields: Vectors point directly away from or toward a central point. Example: F(x,y) = (x, y) points outward; F(x,y) = (-x/(x²+y²)³/², -y/(x²+y²)³/²) is gravitational attraction.
Rotational Fields: Vectors rotate around a central point. Example: F(x,y) = (-y, x) rotates counterclockwise around the origin.
Shear Fields: Vectors slide layers relative to each other. Example: F(x,y) = (y, 0) represents horizontal shear.
Gradient Fields: Vector field is the gradient of a scalar potential function. Example: F(x,y) = (2x, 2y) is the gradient of φ(x,y) = x² + y².
Plotter Features:
(-y, x)
Rotation Field
(x, y)
Radial Outward
(x, -y)
Saddle Field
(1, 0)
Uniform Right
(y, x)
Shear Field
(sin(x), cos(y))
Periodic Field