This page can stand on its own, so the first job is to build the mental picture carefully.
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.
Learning map
FunctionsConceptual Bridge
What should feel connected as you move through this page.
A function maps inputs to outputs; understanding domain, codomain, graphs, and composition sets up everything in calculus.
The next edge should feel earned: use the demo prediction here before following Derivatives.
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.
No interactive demo yet. A good demo: drag points on a graph and see how composition warps the curve.
No live visualization is registered for this concept yet.
The page still supports explanatory demo notes above; when a viz.tsx exists, it will render here without changing the route.
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.
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