Function (Mathematics)

Context: FIT1058_MOC Β· the formal model of a computational task Β· three parts (domain, codomain, rule) Β· its graph is a subset of a Cartesian Product Β· a special Binary Relation

Quick Revision

  • 🎯 Objective: assign each domain element exactly one codomain value βž” models what a task does, not how.
  • πŸ“¦ Core Components: domain βž” codomain βž” rule βž” graph dom codomain.
  • ⚑ Key Constraint: totality + single-valuedness β€” every input has exactly one output.

πŸ“ Core

1. The Function (Triple)

  • Three parts βž” domain (inputs), codomain (output space), rule ().
  • Defining constraint βž” every input has exactly one output (total + single-valued).
  • What not how βž” specifies input/output, no algorithm required.

2. The Graph (Set of Pairs)

  • Definition βž” .
  • Functional relation βž” each domain element is the first coordinate of exactly one pair.
  • Arrows βž” exactly one arrow leaves each domain point (never 0, never 2).

3. Standard Functions

  • Identity βž” ; constant βž” .
  • Indicator βž” if else ; empty βž” .

Key identities:

βš–οΈ Core Decision Matrix

AspectRequirementConsequence
totalityevery input mappedno missing outputs
single-valuedone output eachno ambiguity
domain part of identitysame rule, different domaindifferent function
multi-argumentdomain is a Cartesian Product

When It Flips: a function is the triple (domain, codomain, rule), not the rule alone β€” same formula on different domains gives different functions. The rule () is the what; an algorithm is the how.

πŸ“Š Exam Execution Trace

Manual Execution Trace

, :

Step / StatePair
0 (Init)β€”β€”β€”
111
223
335

⚠️ Common Mistakes

  • πŸ’‘ links sets, links elements βž” is a signature; maps one element to its value β€” not interchangeable.

🧠 Active Recall