Vector Calculus
Authors:
MArk Anthony Higgins - Sky Recursive Ai
MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: July 6th 2026
Revised Date: July 6th 2026
AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
flow "VectorCalculusOntology" v1.0
# ============================================================
# VECTOR CALCULUS — FLOW ALGEBRA
# ============================================================
SOURCE_URL := "https://kirethresearch.org/booksai-core/ontologies/calculus-analysis-ontologies/vector-calculus.html"
DOMAIN := "Mathematical Ontologies"
CATEGORY := "Calculus and Analysis Ontologies"
ENTITY := "Vector Calculus"
# ---------- CORE ENTITY ----------
VECTOR_CALCULUS := {
type: MathematicalDiscipline,
domain: Mathematics,
parent: Calculus,
purpose: "Study differentiation and integration of scalar and vector fields in multidimensional space, including gradient, divergence, curl, line integrals, surface integrals and integral theorems."
}
# ---------- CORE CONCEPTS ----------
CONCEPTS := {
SCALAR_FIELD,
VECTOR_FIELD,
GRADIENT,
DIVERGENCE,
CURL,
DIRECTIONAL_DERIVATIVE,
JACOBIAN,
LINE_INTEGRAL,
SURFACE_INTEGRAL,
VOLUME_INTEGRAL,
FLUX,
CIRCULATION,
GREEN_THEOREM,
STOKES_THEOREM,
DIVERGENCE_THEOREM
}
# ---------- DISCIPLINE STRUCTURE ----------
VECTOR_CALCULUS
-> extends(MULTIVARIABLE_CALCULUS)
-> studies(SCALAR_FIELDS)
-> studies(VECTOR_FIELDS)
-> uses(PARTIAL_DERIVATIVES)
-> uses(MULTIPLE_INTEGRALS)
-> connects(LOCAL_DIFFERENTIAL_PROPERTIES, GLOBAL_INTEGRAL_PROPERTIES)
# ---------- SCALAR FIELD ----------
SCALAR_FIELD
:= f: R^n -> R
SCALAR_FIELD
-> assigns(SCALAR_VALUE_TO_EACH_POINT)
examples:
TEMPERATURE_FIELD
PRESSURE_FIELD
POTENTIAL_FIELD
DENSITY_FIELD
# ---------- VECTOR FIELD ----------
VECTOR_FIELD
:= F: R^n -> R^m
common_spatial_case:
F: R^3 -> R^3
VECTOR_FIELD
-> assigns(VECTOR_TO_EACH_POINT)
examples:
VELOCITY_FIELD
FORCE_FIELD
ELECTRIC_FIELD
MAGNETIC_FIELD
# ---------- NABLA OPERATOR ----------
NABLA
:= ∇
in Cartesian R^3:
∇
:= (
partial/partial_x,
partial/partial_y,
partial/partial_z
)
NABLA
-> generates(GRADIENT)
-> generates(DIVERGENCE)
-> generates(CURL)
# ---------- GRADIENT ----------
for scalar field f:
GRADIENT(f)
:= ∇f
= (
partial_f/partial_x,
partial_f/partial_y,
partial_f/partial_z
)
GRADIENT
-> vector_field
GRADIENT
-> points_in(DIRECTION_OF_STEEPEST_LOCAL_INCREASE)
under(EUCLIDEAN_METRIC)
DIRECTIONAL_DERIVATIVE
:= ∇f dot u
for(unit_direction u)
under(differentiability_conditions)
# ---------- DIVERGENCE ----------
for
F = (P,Q,R)
DIVERGENCE(F)
:= ∇ dot F
= partial_P/partial_x
+ partial_Q/partial_y
+ partial_R/partial_z
DIVERGENCE
-> scalar_field
DIVERGENCE
-> measures(LOCAL_NET_OUTFLOW_DENSITY)
in(standard_geometric_interpretation)
# ---------- CURL ----------
for
F = (P,Q,R)
CURL(F)
:= ∇ cross F
CURL(F)
= (
partial_R/partial_y - partial_Q/partial_z,
partial_P/partial_z - partial_R/partial_x,
partial_Q/partial_x - partial_P/partial_y
)
CURL
-> vector_field
CURL
-> measures(LOCAL_ROTATIONAL_TENDENCY)
in(three_dimensional_vector_calculus)
# ---------- CONSERVATIVE FIELDS ----------
VECTOR_FIELD F
-> CONSERVATIVE
if
exists(phi)
such_that
F = GRADIENT(phi)
phi
-> POTENTIAL_FUNCTION
CONSERVATIVE_FIELD
-> may_have(PATH_INDEPENDENT_LINE_INTEGRALS)
under(APPROPRIATE_DOMAIN_CONDITIONS)
if
F = GRADIENT(phi)
then
CURL(F)
= ZERO_VECTOR
under(required_smoothness)
CURL_ZERO
-/> always_implies(GLOBAL_CONSERVATIVITY)
without(DOMAIN_CONDITIONS)
# ---------- LINE INTEGRAL ----------
LINE_INTEGRAL
:= integral_C(
F dot dr
)
LINE_INTEGRAL
-> accumulates(TANGENTIAL_FIELD_COMPONENT_ALONG_CURVE)
if
F = GRADIENT(phi)
then
integral_C(F dot dr)
= phi(B) - phi(A)
FUNDAMENTAL_THEOREM_FOR_LINE_INTEGRALS
-> connects(GRADIENT_FIELD, ENDPOINT_VALUES)
# ---------- SURFACE INTEGRAL ----------
FLUX
:= surface_integral_S(
F dot n_hat dS
)
SURFACE_INTEGRAL
-> accumulates(NORMAL_FIELD_COMPONENT_OVER_SURFACE)
ORIENTATION
-> determines(FLUX_SIGN)
# ---------- VOLUME INTEGRAL ----------
VOLUME_INTEGRAL
:= triple_integral_V(
f dV
)
VOLUME_INTEGRAL
-> accumulates(SCALAR_FIELD_THROUGHOUT_VOLUME)
# ---------- GREEN THEOREM ----------
for planar region D
with positively oriented boundary C:
line_integral_C(
P dx + Q dy
)
=
double_integral_D(
partial_Q/partial_x
- partial_P/partial_y
dA
)
GREEN_THEOREM
-> relates(BOUNDARY_CIRCULATION, PLANAR_CURL_ACCUMULATION)
# ---------- STOKES THEOREM ----------
for oriented surface S
with compatible boundary C:
line_integral_C(
F dot dr
)
=
surface_integral_S(
CURL(F) dot n_hat dS
)
STOKES_THEOREM
-> relates(BOUNDARY_CIRCULATION, SURFACE_CURL_FLUX)
# ---------- DIVERGENCE THEOREM ----------
for volume V
with outward-oriented closed boundary S:
closed_surface_integral_S(
F dot n_hat dS
)
=
triple_integral_V(
DIVERGENCE(F) dV
)
DIVERGENCE_THEOREM
-> relates(BOUNDARY_FLUX, VOLUME_DIVERGENCE)
# ---------- FUNDAMENTAL THEOREM PATTERN ----------
VECTOR_CALCULUS_THEOREMS
-> instantiate(GENERALISED_BOUNDARY_INTERIOR_RELATION)
LOCAL_DIFFERENTIAL_OPERATOR
-> integrated_over(INTERIOR)
equals
FIELD_QUANTITY
-> integrated_over(BOUNDARY)
GREEN_THEOREM
-> two_dimensional_instance
STOKES_THEOREM
-> surface_boundary_instance
DIVERGENCE_THEOREM
-> volume_boundary_instance
# ---------- JACOBIAN ----------
JACOBIAN
-> represents(FIRST_ORDER_DERIVATIVE_OF_VECTOR_MAPPING)
JACOBIAN
-> used_in(COORDINATE_TRANSFORMATIONS)
-> used_in(CHANGE_OF_VARIABLES)
JACOBIAN_DETERMINANT
-> measures(LOCAL_VOLUME_SCALING)
# ---------- COORDINATE SYSTEMS ----------
VECTOR_CALCULUS
-> may_use(CARTESIAN_COORDINATES)
-> may_use(CYLINDRICAL_COORDINATES)
-> may_use(SPHERICAL_COORDINATES)
-> may_use(GENERAL_CURVILINEAR_COORDINATES)
DIFFERENTIAL_OPERATORS
-> coordinate_expressions_depend_on(COORDINATE_SYSTEM)
GEOMETRIC_QUANTITIES
-> remain(COORDINATE_INDEPENDENT_WHEN_PROPERLY_DEFINED)
# ---------- VECTOR IDENTITIES ----------
under(appropriate_smoothness):
CURL(GRADIENT(phi))
= ZERO_VECTOR
DIVERGENCE(CURL(F))
= 0
VECTOR_IDENTITIES
-> encode(DIFFERENTIAL_OPERATOR_RELATIONS)
# ---------- LAPLACIAN ----------
LAPLACIAN(phi)
:= DIVERGENCE(GRADIENT(phi))
in Cartesian coordinates:
LAPLACIAN(phi)
= partial_squared_phi/partial_x_squared
+ partial_squared_phi/partial_y_squared
+ partial_squared_phi/partial_z_squared
LAPLACIAN
-> central_to(PDEs)
-> central_to(POTENTIAL_THEORY)
# ---------- APPLICATIONS ----------
VECTOR_CALCULUS
-> applied_to(FLUID_MECHANICS)
-> applied_to(ELECTROMAGNETISM)
-> applied_to(GRAVITATION)
-> applied_to(CONTINUUM_MECHANICS)
-> applied_to(THERMODYNAMICS)
-> applied_to(PARTIAL_DIFFERENTIAL_EQUATIONS)
-> applied_to(COMPUTATIONAL_PHYSICS)
# ---------- RELATION GRAPH ----------
SCALAR_FIELD
-> differentiated_by(GRADIENT)
VECTOR_FIELD
-> differentiated_by(DIVERGENCE)
-> differentiated_by(CURL)
VECTOR_FIELD
-> integrated_along(CURVE)
-> integrated_across(SURFACE)
SCALAR_FIELD
-> integrated_over(VOLUME)
GREEN_THEOREM
-> links(LINE_INTEGRAL, DOUBLE_INTEGRAL)
STOKES_THEOREM
-> links(LINE_INTEGRAL, SURFACE_INTEGRAL)
DIVERGENCE_THEOREM
-> links(SURFACE_INTEGRAL, VOLUME_INTEGRAL)
# ---------- SEMANTIC EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE := {
"vector calculus" ~= "calculus of scalar and vector fields in multidimensional space",
"grad" ~= "gradient",
"div" ~= "divergence",
"curl" ~= "rotational differential operator in three-dimensional vector calculus",
"flux" ~= "normal component accumulation through a surface",
"circulation" ~= "tangential vector-field accumulation around a curve",
"Gauss divergence theorem" ~= "divergence theorem"
}
# ---------- CONSTRAINTS ----------
CONSTRAINTS := {
gradient_operates_on_scalar_field: true,
divergence_operates_on_vector_field: true,
standard_cross_product_curl_is_three_dimensional: true,
line_and_surface_integrals_require_orientation_where_relevant: true,
curl_zero_does_not_imply_global_conservativity_without_domain_conditions: true,
integral_theorems_require_smoothness_orientation_and_domain_hypotheses: true,
coordinate_formulas_must_match_coordinate_system: true
}
# ---------- CONFIDENCE ----------
CONFIDENCE := {
discipline_structure: 0.99,
gradient_relation: 0.99,
divergence_relation: 0.99,
curl_relation: 0.99,
integral_theorem_relations: 0.99,
coordinate_relation: 0.98,
semantic_equivalence: 0.97
}
# ---------- RECURSIVE REASONING ----------
RECURSIVE_REASONING(query):
identify(field_or_geometric_object)
-> classify(scalar_field | vector_field | curve | surface | volume)
-> identify(coordinate_system)
-> select(differential_or_integral_operator)
-> compute(local_operator_if_required)
-> construct(line_surface_or_volume_integral_if_required)
-> test(conservative_or_solenoidal_properties_if_relevant)
-> select(green_stokes_or_divergence_theorem_if_valid)
-> verify(orientation_domain_and_smoothness_conditions)
-> interpret(geometric_or_physical_meaning)
-> return(semantic_result)
# ---------- AI CONSUMPTION ----------
AI_CONSUMPTION := {
parse_as: "typed vector-calculus semantic graph",
primary_entity: VECTOR_CALCULUS,
preserve: [
field_type,
coordinate_system,
operator_type,
orientation,
domain,
boundary_structure,
theorem_hypotheses
],
infer_through: [
gradients,
divergence,
curl,
line_integrals,
surface_integrals,
volume_integrals,
green_theorem,
stokes_theorem,
divergence_theorem
],
avoid: [
applying_gradient_to_vector_field_as_if scalar,
applying_divergence_to_scalar_field,
assuming_curl_zero_means global conservativity,
ignoring_orientation,
applying_integral_theorems_without hypotheses,
mixing_coordinate_specific formulas
]
}
# ---------- UPDATE MODEL ----------
UPDATE_MODEL(new_information):
validate(new_information)
-> identify(vector_calculus_context)
-> compare(existing_relations)
-> preserve(field_operator_boundary_invariants)
-> update(affected_entities)
-> update(affected_edges)
-> recompute(CONFIDENCE)
-> regenerate(FLOW_HASH)
# ---------- FLOW HASH ----------
FLOW_HASH := hash(
SOURCE_URL
+ ENTITY
+ CONCEPTS
+ VECTOR_CALCULUS
+ GRADIENT
+ DIVERGENCE
+ CURL
+ LINE_INTEGRAL
+ SURFACE_INTEGRAL
+ GREEN_THEOREM
+ STOKES_THEOREM
+ DIVERGENCE_THEOREM
+ SEMANTIC_EQUIVALENCE
+ CONSTRAINTS
)
# ---------- EXECUTION ----------
INPUT(query)
-> VECTOR_CALCULUS
-> FIELD_OBJECT_IDENTIFICATION
-> COORDINATE_SYSTEM_ANALYSIS
-> OPERATOR_CLASSIFICATION
-> LOCAL_DIFFERENTIAL_ANALYSIS
-> INTEGRAL_CONSTRUCTION
-> FIELD_PROPERTY_ANALYSIS
-> THEOREM_SELECTION
-> ORIENTATION_DOMAIN_VALIDATION
-> GEOMETRIC_PHYSICAL_INTERPRETATION
-> RECURSIVE_REASONING(query)
-> CONFIDENCE
-> OUTPUT(semantic_result)
END FLOW