Vector field (source code)

= Vector field
{wiki}

On an <open set> $U\subset\mathbb R^n$, a <vector field> assigns a <vector> $X(x)\in\mathbb R^n$ to each point $x\in U$. Its components are scalar <functions>. For a <smooth manifold> $M$, the corresponding definition requires $X(p)\in T_pM$: the <vector> belongs to the <tangent space> at its base point. A smooth <vector field> is a smooth section of the <tangent bundle>.<Calculus Volume 3 by Gilbert Strang and others>[section6.1, Vector Fields, planar and spatial definitions]{ref}

For example, $X(x,y)=(-y,x)$ is tangent to circles centred at the origin. Its <integral curves> solve $\dot x=-y$, $\dot y=x$, so $x(t)^2+y(t)^2$ is constant. This distinguishes the field, which assigns a direction and magnitude at every point, from any one trajectory following it. A fluid <velocity> is a physical <vector field>; its <divergence> measures local expansion, while its <curl> measures local rotation in three dimensions.