上一片里,数学归纳法把“猜出来的规律”变成了靠得住的证明。这一片换成另一种“规律”:给它一个数,它只吐回一个数——小算盘机器人的函数工厂,今天开工。Last leaf, induction turned a guessed pattern into a solid proof. This leaf looks at another kind of pattern: give it a number and it hands back exactly one number — the little abacus robot's function factory opens today.
第 1 步:一按一出,绝不含糊Step 1: Press once, one result — no guessing
先看工厂里最老实的机器——自动售货机。Meet the most honest machine in the factory: the vending machine.
按下「A1」,必定掉出可乐;按下「A2」,必定掉出薯片。把按键看成输入 x、掉出的饮料看成输出 y:同一个按键,每次结果都一样。这就是函数的第一条品质——一个输入,只给一个输出。Press “A1” and a cola always drops; press “A2” and chips always drop. Treat the button as the input x and the drink as the output y: the same button gives the same result every time. That is the first rule of a function — one input, one output.
那要是机器开始“看心情”呢?But what if the machine starts “changing its mind”?
第 2 步:同一按键两个结果?出局Step 2: Two results for one button? Out
假想一台坏机器:按同一个「A1」,这次掉可乐,下次掉雪碧——输入没变,输出却变了。这种机器不配叫函数,质检员直接拦下:同一个 x 只能对应一个 y。反过来倒是可以的:不同按键掉出同一种饮料没问题——不同 x 给出同一个 y,不算犯规。Picture a broken machine: press the same “A1” and it drops cola this time, lemon soda the next — same input, different outputs. It does not deserve the name “function”, and the inspector stops it at the gate: one x may map to only one y. The reverse is fine: different buttons giving the same drink is no problem — different x values may share one y.
那合格的机器,肚子里长什么样?So what does a good machine look like inside?
第 3 步:拆开一台函数机器Step 3: Take a function machine apart
这是工厂里最简单的一台:f(x) = 2x + 1。投入 x = 3,第一组齿轮先翻倍(× 2)得到 6,第二组加一(+ 1)得到 7,传送带送出 y = 7,写成 f(3) = 7。x 叫自变量(自己挑的量),y 叫因变量(跟着规则变的量),中间那套规则就是函数本身。Here is the simplest one in the factory: f(x) = 2x + 1. Feed x = 3; the first gear group doubles it (× 2) into 6, the second adds one (+ 1) into 7, and the belt ships out y = 7 — written f(3) = 7. x is the independent variable (you pick it), y is the dependent variable (it follows the rule), and the rule in the middle is the function itself.
🎮 你来当质检员(30 秒)🎮 Your turn: inspector on duty (30 seconds)
道理讲完了。先拖滑块看一号机怎么“一进一出”,再读 4 台送检机器的记录,判断谁合格。Theory done. First drag the slider to watch machine No.1 turn one input into one output; then read the records of 4 machines and judge which ones pass.
一句话记住它:函数 = “一个输入只给一个输出”的规则机器,写成 y = f(x)。Remember it in one line: a function is a “one input, one output” rule machine, written y = f(x).
唯一性是底线:同一个 x 不许有两个 yUniqueness is the bottom line: one x never gives two y valuesx 叫自变量,y 叫因变量;f 是中间那条规则x is the independent variable, y the dependent one; f is the rule in the middle不同 x 可以给出同一个 y,不算犯规Different x values may share one y — that's allowed
内容参考 OpenStax 等公开教材,多来源核对 · AI 生成、人工审核 · 发现错误欢迎指正,帮这片叶子长得更好。Based on OpenStax and other open textbooks, cross-checked across sources · AI-generated, human-reviewed · Spotted a mistake? Tell us — help this leaf grow.