AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Directional Derivative Ontology
VERSION: 1.0
DOMAIN: Mathematical Entities / Calculus and Analysis Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/calculus-and-analysis-entities/directional-derivative-ontology-2.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
1. ONTOLOGY PURPOSE
Represent the directional derivative as a typed mathematical entity, specifying its operands, existence conditions, algebraic properties, geometric interpretation, relations to partial derivatives and gradients, and machine-checkable inference constraints.
2. ENTITY TYPES
ENTITY Function: mapping from a domain in a normed vector space to a scalar or vector codomain.
ENTITY DomainPoint: point x in the domain of Function.
ENTITY DirectionVector: nonzero vector v specifying a direction.
ENTITY UnitDirection: vector u with norm(u) = 1.
ENTITY DirectionalDerivative: limit of a difference quotient along a specified direction.
ENTITY PartialDerivative: directional derivative along a coordinate basis vector when defined.
ENTITY Gradient: vector of first-order partial derivatives for scalar-valued functions on Euclidean space.
ENTITY FrechetDerivative: bounded linear map giving a first-order approximation.
ENTITY GateauxDerivative: directional limit, not necessarily linear in direction.
ENTITY TangentDirection: admissible infinitesimal direction in a constrained domain.
3. SIGNATURES AND TYPED RELATIONSHIPS
FUNCTION f: U subset R^n -> R^m
POINT x: U
DIRECTION v: R^n, v != 0
RELATION has_domain(f,U)
RELATION evaluated_at(D_v f,x)
RELATION along_direction(D_v f,v)
RELATION exists_at(D_v f,x)
RELATION equals_partial(D_ei f,partial_i f)
RELATION induced_by_frechet(D_v f,Df(x))
RELATION gradient_represents(Df(x),grad f(x)) [scalar Euclidean case]
4. FORMAL DEFINITION
D_v f(x) := lim_{t -> 0} [f(x + t v) - f(x)] / t,
provided x + t v belongs to U for all sufficiently small positive and negative t, and the finite limit exists.
For one-sided feasible directions use D_v^+ f(x) := lim_{t -> 0+} [f(x+t v)-f(x)]/t, with an explicit one-sided qualifier.
NORMALISATION: D_u denotes rate per unit distance only when ||u||=1. Scaling the direction changes the derivative magnitude.
5. AXIOMS AND CONDITIONAL RULES
RULE R01 [LINEARITY_IN_FUNCTION]: If D_v f(x) and D_v g(x) exist, D_v(af+bg)(x) = a D_v f(x) + b D_v g(x).
RULE R02 [SCALING_DIRECTION]: For nonzero scalar c, D_(cv) f(x) = c D_v f(x) whenever the relevant two-sided directional limit exists.
RULE R03 [PARTIAL_SPECIAL_CASE]: D_ei f(x) = partial_i f(x) when the coordinate-direction limit exists.
RULE R04 [FRECHET_IMPLICATION]: If f is Frechet differentiable at x, D_v f(x) = Df(x)[v] for every v.
RULE R05 [GRADIENT_DOT_PRODUCT]: For differentiable scalar f on Euclidean R^n, D_u f(x) = grad f(x) dot u.
RULE R06 [MAXIMAL_DIRECTION]: For differentiable scalar f and grad f(x) != 0, the greatest derivative over unit vectors equals ||grad f(x)|| and occurs at u = grad f(x)/||grad f(x)||.
RULE R07 [ZERO_GRADIENT]: If f is differentiable and grad f(x)=0, every directional derivative equals zero; this does not imply a local extremum.
RULE R08 [CHAIN_RULE]: If f is Frechet differentiable at x and g at f(x), D_v(g compose f)(x) = Dg(f(x))[Df(x)[v]].
RULE R09 [PRODUCT_RULE]: For differentiable scalar f,g, D_v(fg)(x) = f(x) D_v g(x) + g(x) D_v f(x).
RULE R10 [NONCONVERSE]: Existence of all directional derivatives alone does not imply continuity, Frechet differentiability, or linearity of v -> D_v f(x).
6. EXAMPLES AND COUNTEREXAMPLES
EXAMPLE A: f(x,y)=x^2+3xy, grad f=(2x+3y,3x); at (1,2), D_(1,0) f=8, D_(0,1) f=3, and D_(3/5,4/5) f=36/5.
EXAMPLE B: f(x,y)=sqrt(x^2+y^2) at (0,0) has one-sided derivatives along every direction, but the two-sided directional derivative for any nonzero direction fails to exist.
COUNTEREXAMPLE C: f(x,y)=x^2*y/(x^4+y^2) away from (0,0), and f(0,0)=0. Every straight-line directional derivative at the origin exists and equals zero, yet f is not continuous at the origin (along y=x^2 it approaches 1/2).
7. VALIDATION MODEL
CHECK V01: Domain and codomain types are declared.
CHECK V02: Direction is nonzero; unit-length assumption is explicit where used.
CHECK V03: Two-sided versus one-sided limits are distinguished.
CHECK V04: The domain admits the limit path x+t v.
CHECK V05: Gradient identities require differentiability, not merely existing partial derivatives.
CHECK V06: Units of D_v f depend on scaling and units of v; use unit directions for spatial rate interpretations.
CHECK V07: Undefined limits must not be assigned numeric values.
CHECK V08: Nonconverse implications are not promoted to equivalences.
8. SEMANTIC EQUIVALENCE AND DISTINCTIONS
EQUIVALENT: directional derivative / derivative along a direction, under the same limit convention.
RELATED_NOT_EQUIVALENT: directional derivative and partial derivative; partial derivative is coordinate-aligned.
RELATED_NOT_EQUIVALENT: Gateaux differentiability and Frechet differentiability; the latter is stronger in general.
RELATED_NOT_EQUIVALENT: directional derivative and gradient; one is a direction-dependent value, the other a vector representation under appropriate hypotheses.
RELATED_NOT_EQUIVALENT: directional derivative and total derivative; the latter is a linear map under stronger conditions.
9. INFERENCE AND AI CONSUMPTION
INPUT: function expression or callable, domain, point, direction, limit convention, differentiability evidence.
PROCESS: validate types -> check path feasibility -> compute or prove limit -> identify assumptions -> apply justified inference rules -> return result with provenance.
OUTPUT: derivative expression/value, existence status, direction normalisation, applicable theorems, confidence and supporting evidence.
CONFIDENCE: 1.0 only for formally verified claims under explicit assumptions; otherwise state estimated confidence and uncertainty.
PROVENANCE: record source definitions, transformation steps, assumption set, version and verification status.
UPDATE_MODEL: recompute dependent conclusions whenever function, point, domain, direction, or assumptions change.
FLOW_HASH: compute a deterministic cryptographic digest of the canonical UTF-8 representation when implementing this flow; no hash is claimed here.
10. INTEGRATION LINKS
PARENT: Calculus and Analysis Entities
RELATED: Derivative Ontology; Partial Derivative Ontology; Limit Ontology; Continuity Ontology; Vector Space Entity Ontology; Gradient Ontology; Jacobian Ontology; Differential Geometry.
END FLOW ALGEBRA