This Calculus concept is the current object: keep the same invariant visible across Intuition, Math, Code, Interactive Demo.
Calculus
Functions
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
Concept Structure
Functions
Start with the picture, metaphor, or geometric mechanism.
Make the objects explicit and connect them with notation.
Mirror the equations with runnable implementation details.
Manipulate the mechanism and watch the idea respond.
Learner Contract
What this page should let you do.
No hard prerequisite is listed; start from the intuition and fill gaps only when the notation demands it.
Explain the mechanism, trace the main notation, and test one prediction in the live demo.
Read the intuition before the notation; the math should name a mechanism you already felt.
Follow this edge after making one prediction here; the next page should reuse the result, not restart the route.
Claim/source review status
Claim review not recorded
No structured claim checks yet; source metadata is not enough to establish support.Metadata-derived; review may be AI-assisted. Not a human certification.01
Intuition
Build the mental picture first so the rest of the page has something to attach to.
A function is a rule that turns an input into an output. You can think of it as a machine: put in , get out .
Functions matter because they let us talk precisely about dependencies: how one quantity changes when another changes. Calculus is basically the study of those changes.
Two ideas show up constantly in ML:
- composition: one function feeding into another (layers in a network)
- vector-valued functions: many inputs, many outputs (models)
02
Math
Translate the story into symbols, assumptions, and a derivation you can inspect.
A function is written
meaning: for each input (the domain), the output lies in (the codomain).
The graph of a real-valued function is the set of points
Composition means chaining machines together. If and , then
That “feed the output of into ” pattern is the exact shape of neural networks.
03
Code
Keep the implementation aligned with the notation so the algorithm is legible.
import numpy as np
# A simple function
f = lambda x: x**2 + 1
# Another function
g = lambda x: np.sin(x)
# Composition: f(g(x))
x = np.linspace(-2, 2, 5)
print("x:", x)
print("g(x):", g(x))
print("f(g(x)):", f(g(x)))
04
Interactive Demo
Use direct manipulation to connect the explanation to a moving system.
Prediction check: choose a target output, then decide whether the composition can reach it, whether it sits below the possible outputs, or whether it sits above them.
Then reveal the range argument. The key move is not a table of samples: the inner function decides which inputs the outer function actually receives, so composition can make a broad codomain behave like a much narrower output surface.
Live Concept Demo
Explore Functions
The stage is code-native and interactive. Use it to test the explanation against the mechanism.
Manipulate one control and predict the visible change.
Commit to what Functions should make visible before reading the result.
After The First Pass
Turn the concept into an inspected object.
Once the invariant is visible in the intuition, math, code, and demo, use these panels to inspect the mechanism visually, check source support, practice the idea, and attach a grounded research question.
Mechanism Storyboard
See the idea move before the page explains it
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
Start with the picture, metaphor, or geometric mechanism.
Before reading further, choose the kind of change Functions should make visible.
Visual Inquiry
Make the image answer a mathematical question
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
Which visible object should carry the first intuition?
Pick the cue that should make Functions easier to reason about before the page gives the answer.
Source Grounding
Canonical references for the mechanism on this page.
Add source metadata before treating this page as source-grounded.
Claim Review
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
Source IDs and witness objects are attached for review; they are not proof by themselves.
Add source metadata before claiming support.
Use equation, code, and demo objects to check whether the source support is operational.
Source support candidates
No structured source note is attached yet.
Practice Loop
Try the idea before it explains itself
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
Before touching the demo, predict one visible change that should happen in Functions.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
A concrete answer is on the canvas.
The answer names why the claim should hold.
It touches the page context or a neighboring idea.
Research Room
Attach the question to an exact object
Pick the concept, equation, source, code witness, claim, misconception, or demo state before asking for help. The handoff stays grounded to that object.Open the draft below to save one note and next action in this browser.
Functions
What is the smallest example that makes Functions click without losing the math?
Local action draftNo local draft saved yetExpand only when ready to capture one local next action
This draft stays locally in this browser for concept:calculus/functions.
- Definition, prerequisite, and contrast concept links
- The equation or code witness that makes the concept operational
- One demo state that shows the invariant instead of a slogan
- The learner can state the mechanism in their own words
- The learner can name the prerequisite that would repair confusion
- The learner can predict how the mechanism changes under one perturbation
I am working in Continuous Function's research reading room. Object: concept - Functions Object key: concept:calculus/functions Context: Calculus Anchor id: concept/concept-notebook/calculus/functions Open question: What is the smallest example that makes Functions click without losing the math? Evidence to inspect: - Definition, prerequisite, and contrast concept links - The equation or code witness that makes the concept operational - One demo state that shows the invariant instead of a slogan What would resolve this: - The learner can state the mechanism in their own words - The learner can name the prerequisite that would repair confusion - The learner can predict how the mechanism changes under one perturbation Answer as a careful research tutor: stay source-grounded, separate verified evidence from assumptions, name the relevant math objects, and end with one next action.
concept/concept-notebook/calculus/functions
concept:calculus/functions