Lesson 10 of 15

The Lie Bracket

The Lie Bracket

Two vector fields VV and WW can be applied in sequence to a function ff: first apply WW to get W[f]W[f], then apply VV to get V[W[f]]V[W[f]]. In general, the result depends on the order:

V[W[f]]W[V[f]]V[W[f]] \neq W[V[f]]

The Lie bracket [V,W][V, W] measures this failure to commute:

[V,W][f]=V[W[f]]W[V[f]][V, W][f] = V[W[f]] - W[V[f]]

The Lie bracket is itself a vector field! This is a fundamental result: the space of vector fields is closed under the Lie bracket.

In Coordinates

For V=ViiV = V^i \partial_i and W=WjjW = W^j \partial_j:

[V,W]k=ViiWkWiiVk[V, W]^k = V^i \partial_i W^k - W^i \partial_i V^k

Geometric Meaning

The Lie bracket measures the obstruction to commutativity of flows. If you flow along VV for time ϵ\epsilon, then along WW for ϵ\epsilon, then back along VV for ϵ\epsilon, then back along WW for ϵ\epsilon, you end up displaced by ϵ2[V,W]\epsilon^2 [V, W] from where you started.

Examples

VVWW[V,W][V, W]
/x\partial/\partial x/y\partial/\partial y00 (commute)
y/xy\partial/\partial xx/yx\partial/\partial yy/yx/xy\partial/\partial y - x\partial/\partial x

Your Task

Implement lie_bracket(V, W) where VV and WW are vector fields (as built by vector_field). Return the Lie bracket [V,W][V, W] as a vector field.

Python runtime loading...
Loading...
Click "Run" to execute your code.