Calculus
Divergence Theorem
Compare the outward flux through a closed surface with the triple integral of the divergence.
divergence_theorem(x, y, z, sphere(0, 0, 0, 1)) compares the outward flux of F = (x, y, z) with the triple integral of div F. The divergence is 3, the volume is 4*pi/3, and both sides equal 4*pi.
The theorem is applied when the field is smooth inside the solid and the boundary orientation is outward. The direct surface integral is still reported. If the two values disagreed, the direct integral would remain the answer.
Equation
divergence_theorem(x, y, z, sphere(0, 0, 0, 1))
How the calculus steps are organized
Calculus in the equation workflow returns the symbolic result and the steps. A derivative applies the relevant rule. An integral looks for an antiderivative, and a definite integral evaluates it on the bounds. A limit simplifies before it substitutes the point when substitution would divide by zero.
Multivariable operations stay symbolic and, when the expression has two variables, DGS can also show the surface. A partial derivative treats the other variables as constants. A tangent plane uses both partials at the chosen point. The page states the command that produces each of those results.
Reading the input
divergence_theorem(x, y, z, sphere(0, 0, 0, 1))— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Edit one number in the field, then use Solve Equation. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.