16.4
All checks were successful
Build / Build-Docker-Image (push) Successful in 37s

This commit is contained in:
2025-04-07 22:57:15 -04:00
parent df47aec31a
commit fcf9333ca3

View File

@@ -0,0 +1,91 @@
[!]
[=post-]
<p>
Welcome back, fair readers! We've only four sections to go, and they're a doozy. Today we're covering three different complex topics: <i>curl</i>, <i>divergence</i>, and <i>Green's theorem</i>.
As you'll see, they're all quite interrelated and quite important, but not without their complexities.
</p>
<p>
The first thing to consider here is <i>curl</i>. This is essentially a measure of how a vector field swirls: if an object placed in a fluid with velocities defined by
the vector field would spin around, that's represented by curl. The easiest way to determine curl of a function `F(x, y, z) = \[P(x, y, z), Q(x, y, z), R(x, y, z)]` is with a slightly munged cross product:
`\[frac {d} {dx}, frac {d} {dy}, frac {d} {dz}] times \[P, Q, R]`. This yields `\[frac {dR} {dy} - frac {dQ} {dz}, frac {dR} {dx} - frac {dP} {dz}, frac {dQ} {dx} - frac {dP} {dy}]`.
The only useful component is actually the `z` component: the magnitude of `curl cdot hat k` is usually what we're talking about when we reference curl.
</p>
<p>
If you're left blinking after that, don't worry, so was I. It's a pretty annoying concept: `frac d {dx}` and co were not meant to be used that way. A much better way to
think of curl is to just memorize that `curl = Q_x - P_y`; or, if you prefer the symmetry, `grad times F = Y_x - X_y`. Finally, the way we usually write curl is important to understand:
`grad times F` means the curl of F, not the gradient of F cross F.
</p>
<p>
Next up is divergence. Divergence is <i>very</i> similar to curl, except rather than the cross product, you use the dot product: `grad cdot F = \[frac {d} {dx}, frac {d} {dy}, frac {d} {dz}] cdot \[P, Q, R]`.
The formula for divergence is simply `P_x + Q_y + R_z`; for memorization ease, I use `X_x + Y_y + Z_z`, although this is not "correct".
</p>
<p>
For both forms, you'll often only have <i>two</i> dimensions: in these cases, simply set the z value to 0 and proceed in 3d.
</p>
<p>
Green's theorem uses both of these to calculate the line integral of a closed path with a double integral. This is oftentimes much easier than parameterizing and substituting.
Green's theorem can only be used if all of these requirements are true:
</p>
<ul>
<li>The path is simply closed. No twists, no holes.</li>
<li>The partial derivatives are continuous over the entire surface enclosed by the path. No holes!</li>
<li>The curve must be smooth. Jagged points are bad!</li>
</ul>
<p>
Additionally, Green's theorem is only useful for nonconservative paths (see the bit on 16.3); regardless of how you calculate it, the line integral of a closed loop through a conservative vector field
is always 0. Finally, while Green's theorem can be applied for any path parallel to the `xy` plane, the path <i>must</i> be parallel to the `xy` plane.
</p>
<p>
<b>It is absolutely critical you understand the above.</b> Green's theorem is not a <i>nice</i> theorem - it has specific requirements, and if they aren't met,
chaos ensues. With that out of the way, here are the formulae:
</p>
<ul>
<li>
For the <i>circulation</i> `int_C F cdot T dL`, Green's theorem says that it's equal to `int int_C grad times F dA`.
</li>
<li>
For the <i>flux</i> `int_C F cdot vec n dL`, Green's theorem says that it's equal to `int int_C grad cdot F dA`.
</li>
</ul>
<p>
Let's do an example of finding both circulation and flux in the nonconservative vortex field `F(x, y) = \[-y, x]`, about the unit circle centered at origin on the `xy` plane.
Step one is, of course, to validate that this complies with Green's theorem requirements:
</p>
<ul>
<li>
The path is simply closed. It's just a circle.
</li>
<li>
The partial derivatives are continuous: calculate them if you must, but it's not too hard to tell just by looking at `F`.
</li>
<li>
The curve is smooth. It's a circle.
</li>
<li>
The path is nonconservative - vortices are like that.
</li>
<li>
The path is parallel to the `xy` plane. It's a circle on the `xy` plane.
</li>
</ul>
<p>
Great, let's start on the actual problem. For circulation, we have `Y_x - X_y = frac d {dx} x - frac d {dx} (-y) = 2` (the P, Q, R version is more accurate, but I prefer `Y_x - X_y` for memorization ease).
We <i>could</i> do this in Cartesian, but why use Cartesian when polar exists? The integral for this is thus, simply, `int_0^{2pi} int_0^1 2r dr d theta` (if you can't see how I got that,
read the bit on spherical and cylindrical coordinates! This is a cylindrical integral without the z-component). Evaluating this is simplicity itself, and we get just `2pi`.
For flux, we have `X_x + Y_y = 0`, meaning the whole thing works out to `0`. Convenient!
</p>
<p>
That was pretty easy- some might say <i>too</i> easy. Doing that without Green's theorem would have required a bunch of trigonometry, but we were able to almost read off the values
this way. Learn it; it's worth it!
</p>
<p>
Expect fewer posts in coming weeks as I've actually caught up with the course and am now learning this material, rather than having already learned it. Also, keep your eyes on the physics section-
I'm going to be working through a bunch of sample problems, and they're bound to annoy me enough to post here. Finally: whenever I get time to write it, a megapost on the math behind basic AI
principles (dense layers, gradient descent, etc) is coming up soon. Stay tuned, and good night!
</p>
[/]
[=title "Multivariable Exam 3 Review: Thomas 16.4"]
[=author "Tyler Clarke"]
[=date "2025-4-7"]
[=subject "Calculus"]
[#post.html]