When someone first writes 2x^2 - 3x + 1 on the board and tells you this is an algebraic expression, it is easy to read it as a piece of static furniture — three symbols arranged in a fixed order, ending in a 1. But that is the wrong mental picture. An expression is not furniture. It is a machine. You feed it a number in the slot labelled x, it grinds the arithmetic, and a number comes out the other end. Feed it a different x, you get a different output. The expression itself — the symbols on the page — is just the blueprint for that machine.
This satellite gives you the machine. Below the text is a canvas with a slider for x. Drag the slider from -3 to 3 and you will see two things at once: the numerical value of the expression update in real time, and a red dot slide along a curve — the graph of the expression. The curve is not decoration. Every point on it is the result of running the machine at a particular x. By dragging the slider you are visiting them one by one.
Drag the slider to substitute different values of $x$. The readout shows the arithmetic that is happening; the red dot shows where the expression lives on the graph. Press Play to sweep automatically from $-3$ to $3$ and back.
An expression is a function of its variable
Look at the expression 2x^2 - 3x + 1. Nothing in those symbols does anything on its own. But if you decide to write f(x) = 2x^2 - 3x + 1, the story changes. Now you have a function — a rule that pairs each input x with a specific output f(x). The expression and the function are the same information in two different dresses.
- At x = 0: f(0) = 2(0)^2 - 3(0) + 1 = 1.
- At x = 1: f(1) = 2(1)^2 - 3(1) + 1 = 2 - 3 + 1 = 0.
- At x = -1: f(-1) = 2(-1)^2 - 3(-1) + 1 = 2 + 3 + 1 = 6.
- At x = 2: f(2) = 2(4) - 6 + 1 = 3.
Every one of these is a single point on the graph: (0, 1), (1, 0), (-1, 6), (2, 3). Drag the slider above to x = 0 and the red dot lands at height 1. Drag to x = 1 and the dot drops to height 0, touching the x-axis — that is a root of the expression, a value of x that makes the whole thing evaluate to zero. Drag to x = -1 and the dot jumps up to height 6.
The curve between the labelled points is just more of the same, computed at every x between them. When you see the parabola sweep down and back up, you are watching the expression's machinery produce an answer for a million inputs in a row.
Why the shape is the shape
Pick the expression x^2 - 4 from the dropdown. Two things happen. The readout changes to track the new formula, and the curve changes shape — it is now a simpler parabola, with its lowest point at (0, -4) and crossing the x-axis at x = -2 and x = 2. The shape is a direct consequence of the algebra.
- The x^2 term is always non-negative. At x = 0 it contributes 0; everywhere else it contributes a positive number that grows as x moves away from zero. That is why the curve opens upward, forming a U.
- The -4 drags the whole curve down by 4 units, so the minimum is at height -4 instead of 0.
- The curve crosses the x-axis where x^2 - 4 = 0, which is x = \pm 2. Drag the slider to either of these values and the red dot sits exactly on the horizontal axis.
Switch to 3x + 2. Now the curve is a straight line — no curvature, no bends. Every increase of 1 in x adds exactly 3 to the output. That is because 3x + 2 has no x^2 or higher term; the expression grows at a constant rate. Substituting different x values just walks you up or down the line at a fixed slope.
Switch to x^3 - x. The curve now has a bend going up and a bend going down — a squiggle that passes through zero three times (at x = -1, x = 0, and x = 1). The x^3 term dominates for large |x|, pulling the curve to +\infty on the right and -\infty on the left. Near zero, the -x term is stronger, creating the little dip and rise.
Each shape is the expression's fingerprint. Change the expression and you change the fingerprint.
The slider is substitution, the curve is memory
Here is the key idea this widget is trying to give you. Substitution is the act of replacing x with a specific number and computing the result — one single arithmetic operation, one single output. That is what the red dot shows at any given moment.
The curve, on the other hand, is the memory of every possible substitution. It is the set of all (x, y) pairs where y equals whatever the expression evaluates to at that x. When you sweep the slider from -3 to 3, the dot traces the curve — because as x changes continuously, the substituted output also changes continuously, visiting every point on the graph in turn.
This is why mathematicians talk about an expression and its graph interchangeably, once the variable is named. The expression -x^2 + 2x + 3 is the downward-opening parabola. The parabola is the expression. One is symbolic; the other is visual; both describe the same machine.
What to try
- Set the expression to 2x^2 - 3x + 1 and drag the slider very slowly through x = 0.5 and x = 1. Watch the output drop to its minimum around x = 0.75 (the vertex), then rise back to zero at x = 1. That is a root — a solution to 2x^2 - 3x + 1 = 0.
- Switch to -x^2 + 2x + 3. Find the two roots (where the dot crosses zero). They should be at x = -1 and x = 3. Check by substitution: -(-1)^2 + 2(-1) + 3 = -1 - 2 + 3 = 0, and -(3)^2 + 2(3) + 3 = -9 + 6 + 3 = 0.
- Press Play on x^3 - x and watch the dot ride the squiggle. Notice it passes through zero three times per sweep — three roots, as befits a cubic.
- On any expression, find the x-value that gives the largest positive output. For the parabolas this will be at one of the endpoints of the slider range (x = -3 or x = 3); for the straight line 3x + 2 it is also at an endpoint.
Each of these is the same exercise from the previous article on algebraic expressions — evaluating at a chosen point — now multiplied across hundreds of points and visualised all at once. The algebra has not changed. The only new thing is seeing it happen.