Library/Financial Mathematics, Statistics, and Data Foundations/Mathematical Language and Quantitative Reasoning/Functions, Domains, Ranges, and Graphs

D00-F01-A02 / Complete engineering topic

Functions, Domains, Ranges, and Graphs — a beginner's guide

See a function as a rule that turns an allowed input into one output.

A four-step beginner lesson map for Functions, Domains, Ranges, and GraphsD00 / D00-F01

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

TermIn simple words
FunctionA rule that gives one output for each allowed input.
DomainThe set of inputs the rule is allowed to receive.
RangeThe outputs the rule can produce from those inputs.
GraphA 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

DecisionOur simple choiceWhat we do not claimCheck
One input, one outputThe 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.
DomainTransaction amount cannot be negative.A mathematical line may extend to negative numbers, but a money rule may not.The playground blocks negative amounts.
UnitsThe 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

NameKindUnitEmpty?Meaning
amountmoneySARNoA non-negative transaction amount.
fixed_feemoneySARNoThe same small fee for each transaction.
raterate%NoA 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

OutputKindUnitMeaningSafety rule
feemoneySARFixed fee plus the percentage fee.One output for each allowed amount.
domainsetSAR >= 0Allowed transaction amounts.Negative amounts are outside scope.
rangesetSARFee 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

NameMeaningUnit
amounttransaction amountSAR
fixed feeflat chargeSAR
ratepercentage charge%
fee(amount)total feeSAR

Four small steps

  1. Ask what the input means and what values are allowed.
  2. Apply the same rule to one input.
  3. Label the output and its unit.
  4. 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.

Functions, Domains, Ranges, and Graphs lesson map

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

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

Three-part concept anatomy for Functions, Domains, Ranges, and Graphs

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

DecisionThis lessonClosest next or comparisonWhy the difference matters
Main questionSee a function as a rule that turns an allowed input into one output.Ratios, Proportions, Rates, and PercentagesChoose the question before choosing the arithmetic.
Safe rulefee(amount) = fixed fee + (rate / 100) × amountUses its own input and boundary contract.Neighboring lessons can use the same numbers but answer different questions.
Required checkAt 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 conditionA 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

Safe reading compared with a tempting mistake for Functions, Domains, Ranges, and Graphs

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

  1. Name it: What does the first input or observation mean?
    Answer: A non-negative transaction amount.
  2. Choose it: Which rule belongs to this question?
    Answer: fee(amount) = fixed fee + (rate / 100) × amount
  3. 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

Functions, Domains, Ranges, and Graphs — four-part map

This diagram shows the learner's path from a named input to a safe explanation.

Rendering system map…

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 notes

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.

algorithm.ts
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);
}
Full-height lablessonOpen full screen