Domain: D00 — Financial Mathematics, Statistics, and Data Foundations
Family: D00-F01 — Mathematical Language and Quantitative Reasoning
Audience: a curious beginner who may not have studied finance or programming
Delivery: plain-language lesson, hand-worked arithmetic, and a small interactive lab
The one-sentence idea
See a function as a rule that turns an allowed input into one output.
Why this matters in money
A fee, tax, price conversion, or risk score is often a rule: give it an input and it gives you an output. Domain and range language helps you spot when a rule is being used outside the situation it describes.
What you will be able to do
- name an input and an output
- identify which inputs a rule allows
- read a simple graph as a collection of input-output pairs
What you need first
- A01 variables and expressions
- the idea that a graph places inputs on the horizontal axis and outputs on the vertical axis
You do not need to program for this lesson. We use ordinary words and small numbers first. Later domains may show implementation details after the idea is comfortable.
Words to know
| Term | In simple words |
|---|---|
| Function | A rule that gives one output for each allowed input. |
| Domain | The set of inputs the rule is allowed to receive. |
| Range | The outputs the rule can produce from those inputs. |
| Graph | A picture of input-output pairs, often with input left-to-right and output bottom-to-top. |
Scope and simple boundary
We use a straight-line fee rule. Curves, probability functions, and statistical models are later lessons.
Definition contract
| Decision | Our simple choice | What we do not claim | Check |
|---|---|---|---|
| One input, one output | The same input has one defined output in this lesson. | A table with two different outputs for the same input is not this function. | Input-output table and graph points agree. |
| Domain | Transaction amount cannot be negative. | A mathematical line may extend to negative numbers, but a money rule may not. | The playground blocks negative amounts. |
| Units | The amount and fee keep their own units. | Do not add SAR to a percentage without converting it. | The worked example labels SAR and percent separately. |
Input contract
| Name | Kind | Unit | Empty? | Meaning |
|---|---|---|---|---|
| amount | money | SAR | No | A non-negative transaction amount. |
| fixed_fee | money | SAR | No | The same small fee for each transaction. |
| rate | rate | % | No | A non-negative percentage of the amount. |
All values in one example must use the same time period, currency, and scale unless the lesson explicitly shows a conversion. A missing or impossible input is a question to resolve, not a number to guess.
Output contract
| Output | Kind | Unit | Meaning | Safety rule |
|---|---|---|---|---|
| fee | money | SAR | Fixed fee plus the percentage fee. | One output for each allowed amount. |
| domain | set | SAR >= 0 | Allowed transaction amounts. | Negative amounts are outside scope. |
| range | set | SAR | Fee values reached by the chosen domain. | Cannot be below the fixed fee when rate is non-negative. |
The rule in everyday language
fee(amount) = fixed fee + (rate / 100) × amount
Think of the rule as a sentence. Say what each number means before you put it into the sentence.
Symbol table
| Name | Meaning | Unit |
|---|---|---|
| amount | transaction amount | SAR |
| fixed fee | flat charge | SAR |
| rate | percentage charge | % |
| fee(amount) | total fee | SAR |
Four small steps
- Ask what the input means and what values are allowed.
- Apply the same rule to one input.
- Label the output and its unit.
- Try a second input to see how the graph moves.
Worked example (synthetic teaching numbers)
A payment rule charges SAR 1 plus 2% of the amount. For SAR 100, fee(100) = 1 + 0.02 × 100 = SAR 3. For SAR 300, the fee is SAR 7. The line rises because the percentage part rises with the amount.
Independent check
At amount SAR 0, the fee is still SAR 1 because the fixed part remains. A negative amount is not a clever answer; it is outside the money rule's domain.
The numbers above are synthetic and author-derived for learning. They are not an observation about a named company, market, customer, or investment.
Simple playground
Open the small guided lab. Choose a number, press Step, and read the explanation under the result. The lab is designed to show one idea at a time, not to replace the lesson.
What to notice: the input, the rule, the check, and the safe interpretation are shown in that order. Open the full-size visual.
Where this is useful
- fee schedules
- tax examples
- currency conversion intuition
What this does not tell you
A graph shows the rule we selected, not a promise that a real provider charges the same fee at every size.
This is educational content, not investment, tax, legal, accounting, or regulatory advice. A simple calculation can be correct and still be the wrong calculation for a real decision.
Historical-example decision
Not useful for this lesson. A named company would add a story but would not teach the primitive more clearly than the small synthetic numbers above. A real case would also need a verified entity, period, unit, and publication right. The lesson therefore keeps its arithmetic transparent and synthetic.
Related lessons
Evidence boundary
The plain-language definitions and measurement cautions are supported by OPENSTAX, NIST. The formula wording, examples, and lab behavior are author-derived teaching choices. See the claim ledger and references for the boundary.
Optional verification implementation
You do not need code to learn this lesson. The package now includes matching Python and TypeScript verification façades, a shared worked-example fixture, and parity tests. They reproduce the lesson’s frozen rule and remain optional for nontechnical learners.
Enhancement studio: draw, compare, explain
This additive studio does not replace the beginner lesson above. It gives you two more drawings, a decision comparison, and short practice prompts so you can explain the idea without copying a formula or writing code.
Drawing 1 — name, apply, check
Read left to right: name what the data means, apply the narrow lesson rule, then use an independent check. Open the full-size concept anatomy.
Choose the right idea
| Decision | This lesson | Closest next or comparison | Why the difference matters |
|---|---|---|---|
| Main question | See a function as a rule that turns an allowed input into one output. | Ratios, Proportions, Rates, and Percentages | Choose the question before choosing the arithmetic. |
| Safe rule | fee(amount) = fixed fee + (rate / 100) × amount | Uses its own input and boundary contract. | Neighboring lessons can use the same numbers but answer different questions. |
| Required check | At amount SAR 0, the fee is still SAR 1 because the fixed part remains. A negative amount is not a clever answer; it is outside the money rule's domain. | Re-check its own unit, time, denominator, or schema. | A correct answer to the wrong question is still wrong. |
| Stop condition | A table with two different outputs for the same input is not this function. | Move only when its prerequisites are satisfied. | Unknown meaning is a reason to pause, not to guess. |
Drawing 2 — common-mistake clinic
The left side states the safe interpretation; the right side shows the mistake that often produces a believable but misleading result. Open the full-size mistake comparison.
Explain it back without code
- Name it: What does the first input or observation mean?
Answer: A non-negative transaction amount. - Choose it: Which rule belongs to this question?
Answer: fee(amount) = fixed fee + (rate / 100) × amount - Challenge it: What check could make you stop?
Answer: At amount SAR 0, the fee is still SAR 1 because the fixed part remains. A negative amount is not a clever answer; it is outside the money rule's domain.
If your explanation leaves out the unit, period, denominator, grain, or availability time that the lesson needs, it is not complete yet.
Related concepts and learning handoff
- Governed glossary: Function, Domain, Range, Graph. Browse the full financial glossary when a term is unfamiliar.
- Continue with: Ratios, Proportions, Rates, and Percentages.
- Evidence boundary: all displayed numbers remain synthetic teaching data; the drawings do not claim a market observation, forecast, or investment result.
Rendered from the canonical Mermaid sources linked by this article.
Functions, Domains, Ranges, and Graphs — four-part map
This diagram shows the learner's path from a named input to a safe explanation.
Takeaway: the check is not an afterthought. It tells the learner whether the answer belongs to the question that was asked.
ReferencesPrimary sources and evidence notesExpand the source trail, evidence role, and limitations behind the engineering choices.
Expand the source trail, evidence role, and limitations behind the engineering choices.
The family uses a small shared evidence set. Each source has a limited role; the examples and lab are clearly author-derived synthetic teaching material.
OPENSTAX — College Algebra: Domain and Range
- Organization or authors: OpenStax
- Source type: Open educational textbook
- Publication or effective date: Current online edition
- Version: current web edition accessed for this build
- URL: https://openstax.org/books/college-algebra/pages/3-2-domain-and-range
- Accessed: 2026-08-10
- Jurisdiction: general educational or measurement context
- Supports: A function maps an allowed input to an output; domain restrictions come from the rule.
- Limitations: It is an educational secondary source, not a financial-market rulebook.
NIST — NIST/SEMATECH e-Handbook of Statistical Methods
- Organization or authors: NIST/SEMATECH
- Source type: Official statistical handbook
- Publication or effective date: 2022 current web edition
- Version: current web edition accessed for this build
- URL: https://www.itl.nist.gov/div898/handbook/
- Accessed: 2026-08-10
- Jurisdiction: general educational or measurement context
- Supports: Definitions, careful measurement language, and the difference between a calculation and a claim.
- Limitations: It does not choose this family's teaching examples or financial conventions.
Author-derived and synthetic boundary
The formulas are standard classroom definitions expressed in plain language. The worked values, visual labels, and playground scenarios are synthetic teaching inputs created for this package. They do not establish a company fact, market outcome, or investment result.
Full dependency-light reference implementations in both supported languages.
import { runTopic as runD00Topic, type D00Input, type D00Output } from "../../../../shared/typescript/d00Engine.ts";
/** Run the canonical D00-F01-A02 calculation. */
export function functionsDomainsRangesAndGraphs(input: D00Input): D00Output {
return runD00Topic("D00-F01-A02", input);
}
The embedded lab now expands to its full document height, keeping the article as the only scroll surface.