Equationf(x)=n — a statement that the value of the function f at some x equals the constant n
Solution — a value of x for which f(x)=n holds; geometrically, an x where the curve y=f(x) crosses the horizontal line y=n
Solution set — the set of all x satisfying the equation, possibly empty, finite, or infinite
f(x) − n — the auxiliary function whose zeros are exactly the solutions of f(x)=n
Sign chart — a table tracking the sign of f(x)−n across intervals separated by its zeros
Critical point (in this context) — a zero of f(x)−n or a point where f is undefined; the only places the sign of f(x)−n can change
Marble — the draggable probe positioned at some x in the visualizer; lets you read off f(x) at that point
Multiplicity — for polynomial equations, how many times a given solution is repeated as a root of f(x)−n
Linear equation — f(x)=n where f is a degree-1 polynomial; has exactly one solution unless f is constant
Quadratic equation — f(x)=n where f is a degree-2 polynomial; has zero, one, or two real solutions
Getting Started with the Visualizer
Open the explorer and you see a curve y=f(x) plotted against a horizontal target line y=n. The blue marble sits on the curve at a chosen x. Solutions of f(x)=n are exactly the points where the curve crosses the line.
The layout has two columns. On the left, the Hero panel shows the equation symbolically and the graph with the marble; the Controls panel below it holds equation parameters, templates, and interaction modes. On the right, the Sign chart panel displays a row-by-row table of signs for f(x)−n, and the Explanation panel narrates the current step or live reading.
A type bar at the top of the page lets you switch between equation families — linear, quadratic, cubic, and absolute value — each with its own set of parameter sliders. No setup is needed: pick a type, drag the marble, and watch which intervals satisfy the equation light up.
Selecting an Equation Type
The type bar at the top of the page is a row of tabs, one per equation family the visualizer supports. Each tab carries a tooltip describing what the family looks like (degree, structure, typical solutions). Click a tab to switch families.
Switching the type does three things at once:
• The graph updates to show the new function f(x) • The parameter sliders below the graph reconfigure to match the new family (a linear equation has two sliders for slope and intercept; higher-degree equations have more) • The sign chart rebuilds with a new set of factors and intervals
The currently active type is highlighted in blue. Your last-chosen parameters for each family are preserved when you switch back, so you can compare how the same target n behaves across different function shapes.
Three Interaction Modes
The Controls panel offers three modes for moving the marble, each grouped behind its own button. Only one mode is active at a time.
• Drag — grab the marble with the mouse and slide it along the x-axis. Hold shift to snap to integer values. The most direct way to probe how f(x) compares to n at any chosen x. • Step — click Previous and Next to jump the marble between stops: critical points, zeros of f(x)−n, and other named landmarks. Useful for a guided tour of the equation's structure. • Auto — the marble plays back the sequence of stops automatically. A speed slider controls playback rate; Space toggles play/pause.
The current mode is highlighted in blue, with a small detail strip showing extra context (current step number, playback speed, and so on).
Adjusting Parameters and Using Templates
Each equation type has its own parameter sliders, laid out in a three-column grid below the graph. Drag a slider, click a tick to snap to a notable value, or type directly into the numeric input. Sliders that hit invalid combinations (such as a denominator forced to zero) display a red error chip with the reason.
The target value $n$ has its own slider — the horizontal line moves up and down as you drag it. Watching the line sweep across the curve makes the dependence of the solution set on n visceral: solutions appear, merge at a tangent, and disappear as n crosses critical levels.
Above the sliders, the Templates strip offers a few preset parameter combinations for the current type — useful as starting points for common shapes (no real solutions, a double root, two distinct roots, and so on). Click a template to load it; click again to clear it.
Reading the Sign Chart
The Sign chart panel on the right is a compact table tracking the sign of f(x)−n across the real line. Reading it top to bottom:
• Header row — the critical x-values (zeros of f(x)−n and any undefined points), in increasing order, dividing the real line into intervals • Factor rows — for each factor of f(x)−n, a row of +, −, or 0 entries showing the sign of that factor in each interval • Product row — highlighted, gives the sign of f(x)−n itself in each interval, computed by multiplying the factor signs • Critical-point columns — show where each factor is zero or where f(x)−n itself is undefined (marked in red)
Hovering or clicking an interval or critical point updates the explanation panel with details. The intervals where the product row reads zero are exactly the solution intervals of f(x)=n.
Reading the Explanation Panel
The Explanation panel below the sign chart has two tabs accessed via small buttons.
• Steps — a numbered list reconstructing the standard solving procedure: rewrite the equation as f(x)−n=0, factor or otherwise reduce, locate the zeros, classify them by multiplicity, and read off the solution set. Each step is short and tied to what is on screen. • Live — a compact table that recomputes whenever the marble moves. It shows the marble's current x, the value of f(x), the target n, the difference f(x)−n, and its sign, ending with a verdict: does the equation f(x)=n hold at this x?
A short verbal summary below the table phrases the conclusion in plain language. The Steps tab is best for understanding *why* a solution is what it is; the Live tab is best for *checking* candidate solutions in real time.
Keyboard Shortcuts
The visualizer supports a small set of keyboard shortcuts that work whenever the page has focus (and you are not typing in an input).
• Arrow Left / Arrow Right — nudge the marble in drag mode by 0.1; hold Shift to nudge by 1 • [ and ] — step the marble to the previous or next named stop in step mode • Space — toggle play/pause in auto mode, or switch to auto mode if you are in another mode • R — reset all parameters, marble position, and mode to their defaults
The shortcut hint appears in the header above the type bar. The shortcuts are designed to let you sweep across the solution set without taking your hands off the keyboard, useful when you want to compare many configurations quickly.
Linear Equations in the Explorer
The Linear tab solves ax+b=n — the family where the curve is a straight line and the story is short: one crossing, one solution, as long as the line actually slopes. The templates freeze the three characteristic pictures: the basic line, a steep line, and a falling line. A fourth state is not on the template strip but one slider-drag away: the constant equation, where a=0 kills the slope and the "one solution" rule breaks down.
Linear equations are where the marble metaphor is easiest to internalize — the curve meets any horizontal level exactly once — which makes this tab the right warm-up before the families where solution counts start to vary.
The Basic Linear Equation
The opening template freezes x=3 — the identity line f(x)=x against the level n=3. One clean crossing at x=3, marked on the axis; the marble waits at x=0, off by exactly 3.
x = 3, frozen
The identity line against level 3: one crossing, marked at x = 3. The marble waits at 0, its amber bar measuring the gap of 3 still to close.
No equation is more transparent, which is precisely its value as a first frame: the curve *is* the x-value, so asking "where does f(x) reach 3?" answers itself. The sign chart underneath is correspondingly minimal — negative left of 3, zero at 3, positive right of it.
Every other state on this page is a complication of this picture: steeper slopes rescale it, negative slopes mirror it, higher degrees bend the line into curves that can cross a level more than once — or not at all. Compare the steep line for the first complication.
The Steep Line
The second template freezes 3x−2=4: a slope-3 line meeting the level at the single solution x=2.
3x − 2 = 4, frozen
Slope 3 makes the line race through the level at x = 2. Steepness changes the sensitivity of the solution, never the count.
Steepness changes the *sensitivity*, not the count: there is still exactly one solution, but each unit the level moves shifts it by only a third. Algebraically that is the division step x=(n−b)/a — the steeper the line, the smaller the correction.
The frozen marble at x=0 reads f(0)=−2, a gap of 6 to the target — the amber bar in the frame measures exactly that vertical shortfall. Watching the bar shrink as the marble slides right is the graphical version of "closing in on the solution". The mirrored orientation is next, in the falling line.
The Falling Line
The third template freezes −x+5=0: a downhill line crossing level zero at x=5.
−x + 5 = 0, frozen
The downhill line: still one crossing, at x = 5, but the sign chart flips — positive left, negative right.
A negative slope flips the geometry — the line now descends through the level — but not the arithmetic: one slope, one crossing, one solution. The sign chart is the giveaway detail: f(x)−n is now *positive* on the left and *negative* on the right, the reverse of the rising templates.
That sign reversal matters more than it seems: for equations it changes nothing, but for the companion inequality tool it swaps which side of the crossing satisfies f(x)<n. The explorer's shared layout makes the comparison one click away.
The Constant Equation
Not a template, but one slider-drag away: set a=0 and the line goes flat. The frozen frame shows 2=3 — a horizontal line at height 2 that never touches the level 3. No solution markers appear anywhere.
2 = 3 (a = 0), frozen
The degenerate line: slope zero, two parallel horizontals, no crossing anywhere. Zero solutions — or infinitely many if b = n.
This is the linear family's degenerate boundary, and the tool's own slider tooltip calls it out: when a=0 the equation has no solution unless b=n. The dichotomy is total. If b=n, the two horizontal lines are parallel and distinct — the equation b=n is simply false, and the solution set is empty. If b=n, they coincide and *every* x is a solution — the equation has become an identity.
Nothing in between is possible: a constant equation has zero solutions or infinitely many, never one. It is the first stop in a theme the other families continue — solution counts are governed by geometry, and degenerate geometry produces degenerate counts. Try it live: load the basic line and drag the slope slider to 0.
Quadratic Equations in the Explorer
The Quadratic tab solves ax2+bx+c=n, and its four templates are a complete tour of what a parabola can do against a horizontal line: cross twice (two solutions), touch once (the tangent case), miss entirely (no solution), or be revisited with the level pushed up (raising the level).
The quartet is the discriminant of f(x)−n made visible: positive, zero, negative — two, one, or zero real roots. Dragging the n slider between the frozen states shows the transitions live: two solutions slide together, merge at the tangent, and vanish.
A Parabola with Two Solutions
The first quadratic template freezes x2−4=0: an upward parabola sliced by the zero level at x=−2 and x=2, both marked with dashed drop-lines to the axis.
x² − 4 = 0, frozen
The generic parabola picture: two symmetric crossings at ±2, dashed drop-lines marking both. Positive discriminant, drawn.
Two is the generic count for a parabola: any level strictly above the vertex is crossed exactly twice, once on each arm. Here the vertex sits at (0,−4), the level runs at 0, and the two crossings land symmetrically at ±2 — the symmetry of the picture reflecting the absence of a linear term.
The sign chart shows the signature quadratic pattern: positive, zero, negative, zero, positive — the parabola dips below the level between its two roots. Slide n downward and watch the two solutions walk toward each other; where they meet is the next state, the tangent case.
The Tangent Case: One Solution
The second template freezes x2=0: the level line grazes the parabola exactly at its vertex. One marker, at x=0 — and this time the marble happens to sit on it.
x² = 0, frozen
Tangency: the level grazes the vertex, one repeated root at 0 — and the marble happens to sit on it. Touch without crossing.
Tangency is the boundary case of the discriminant — zero, in this configuration — and the root it produces is *repeated*: x=0 counts twice as a root of x2. The sign chart betrays the multiplicity: the product row reads positive, zero, positive, with no sign change across the root. The curve touches the level and retreats without crossing.
That failure to change sign is the visual definition of even multiplicity, and it is why the tangent case is fragile: nudge n up and the single solution splits into two; nudge it down and both vanish into none. One slider unit in either direction changes the count.
A Parabola with No Solution
The third template freezes x2+4=0: the parabola floats entirely above the level, its vertex at height 4, and the frame shows no solution markers at all.
x² + 4 = 0, frozen
The parabola floats above the level with nothing to mark. The picture of a negative discriminant — the roots have left the real line.
An empty solution set drawn honestly: the curve and the level line simply never meet, because x2+4≥4>0 for every real x. The sign chart collapses to a single all-positive row — no zeros, no sign changes, no columns to inspect.
This is also the doorway to complex numbers: x2+4=0 has no *real* solutions, but it has two imaginary ones, ±2i. The explorer draws the real story only — the picture of "no crossing" is exactly what "the roots moved off the real line" looks like from the real axis.
Raising the Level
The fourth template freezes x2−2x−3=5: a shifted parabola against a raised level, crossing at x=−2 and x=4.
x² − 2x − 3 = 5, frozen
Off-center crossings at −2 and 4: the level absorbed into the constant term, the symmetry axis shifted to x = 1.
This state makes the page's central rearrangement concrete: subtract the level and solve x2−2x−8=0, which factors as (x−4)(x+2). The two frozen markers are those factors' roots — the target n=5 has been absorbed into the constant term, exactly as the "solve f(x)=n via f(x)−n=0" recipe prescribes.
Unlike the symmetric two-solution state, the crossings here are off-center — the linear term −2x pushes the vertex to x=1, and the two solutions sit symmetrically around *that* axis instead of around zero. Same count, same mechanism, less symmetry: a useful step away from special cases.
Cubic Equations in the Explorer
The Cubic tab solves ax3+bx+c=n. A cubic's ends run to opposite infinities, so it can never miss a horizontal line — the question is only *how many times* it crosses: three (three roots), one (one root), or three again after the level moves off the symmetric zero (the shifted cubic).
The guaranteed crossing is the family's headline fact: every cubic equation has at least one real solution, a direct consequence of the intermediate value theorem. The local hills and valleys created by a negative linear coefficient are what open the door to three.
A Cubic with Three Roots
The first cubic template freezes x3−3x=0: an S-shaped curve crossing the zero level three times — at −3, 0, and 3.
x³ − 3x = 0, frozen
The full S: hill and valley straddling the level, three crossings at −1.73, 0, 1.73. The cubic’s maximum count.
Three is the cubic's maximum, and the frame shows what it takes: the negative linear term carves a local hill and valley, and the level line passes *between* their heights, meeting each monotone stretch once. The crossings at ±3≈±1.73 land at irrational positions — the axis labels read 1.73, a quiet reminder that solution sets don't respect integer grids.
The sign chart alternates through all four intervals: negative, positive, negative, positive. That alternation — sign change at every root — certifies all three roots as simple. Compress the hill and valley away and you get the one-root cubic.
A Cubic with One Root
The second template freezes x3=0: the pure cube, monotone from −∞ to +∞, crossing the level exactly once — at the origin, where the marble sits.
x³ = 0, frozen
The monotone cube crosses every level exactly once — here at its flattened triple root through the origin.
With no linear term to fight it, the cubic never turns back: it rises through every level exactly once, so *every* target n yields exactly one real solution. This is the intermediate value theorem in its cleanest costume — a continuous curve from one infinity to the other cannot skip a level.
The root at 0 is triple (x3 has x=0 with multiplicity three), and the sign chart records it with a change of sign — odd multiplicity crosses, unlike the quadratic's tangent touch. The flattened shelf around the origin is the picture of that tripled root: the curve crosses, but reluctantly.
The Shifted Cubic
The third template freezes x3−4x=3: a cubic with pronounced hill and valley, against a level pushed up to 3. Three crossings again — at −1.30, −1, and 2.30.
x³ − 4x = 3, frozen
The raised level still threads between hill and valley: three crossings, one exact (−1) and two irrational.
The raised level breaks the symmetry of the three-root state without changing the count — the level still threads between the local maximum and minimum. One root is exact: x=−1 satisfies −1+4=3, and factoring it out leaves x2−x−3=0, whose roots 21±13 are the two decimal markers in the frame.
The state is a working demonstration of how cubics are actually solved by hand: find one rational root, divide it out, and finish with the quadratic formula. The frozen frame shows all three answers before any algebra starts — the graph as an answer key.
Absolute-Value Equations in the Explorer
The Absolute value tab solves ∣x−h∣+k=n — the V-shape family. The three templates mirror the parabola's trichotomy with sharper geometry: the level line cuts both arms (two solutions), passes exactly through the vertex (one solution), or runs below the vertex and never meets the graph (no solution).
The V makes the solution-count logic purely visual: the vertex sits at height k, so everything depends on whether n is above, at, or below k. It is the same above/at/below story as the quadratic's discriminant — told without any algebra at all.
The V with Two Solutions
The first absolute-value template freezes ∣x∣=3: the V-shape with its vertex at the origin, cut by the level line at x=−3 and x=3.
|x| = 3, frozen
The V cut across both arms: two symmetric solutions at ±3 — two linear equations wearing one symbol.
The absolute-value equation is really two linear equations wearing one symbol: on the right arm x=3, on the left arm −x=3. The two frozen markers are those two answers, placed symmetrically because the V's arms have slopes ±1.
Between the arms, the sign chart dips negative — ∣x∣−3<0 for ∣x∣<3 — and the pattern negative-between, positive-outside is the V's standing signature, shared with the parabola's two-solution state. The difference is the corner: where a parabola turns smoothly, the V has a kink, and the kink is where the solution count pivots — see the vertex case.
The V at Its Vertex
The second template freezes ∣x∣+3=3: the vertex is lifted to exactly the level height, and the line touches the V at the single point x=0 — the marble's own position.
|x| + 3 = 3, frozen
Vertex meets level: a single touching point at x = 0, with a kink where the parabola would have a smooth turn.
The V's version of tangency: level and vertex agree, and the equation ∣x∣=0 has the unique solution x=0. But the analogy to the parabola's tangent case has a limit worth stating — there is no multiplicity here in the polynomial sense, because ∣x∣ is not a polynomial. The curve is not flat at the touching point; it comes in at slope −1 and leaves at slope +1.
The sign chart still shows the even-multiplicity *pattern* — positive, zero, positive, no sign change — proving the pattern belongs to the geometry (touch without crossing) rather than to polynomial algebra. One nudge of n resolves the state into two solutions or none.
The V That Never Reaches
The last template freezes ∣x∣+5=2: the V floats with its vertex at height 5, far above the level line at 2. No markers, no solutions.
|x| + 5 = 2, frozen
The V floats three units above the level it can never reach: a distance asked to be negative. Empty, with no complex rescue.
The inequality behind the emptiness is one line: ∣x∣+5≥5>2 for every x, so nothing to solve. The explorer's result pill states it directly — *no real solutions* — and the sign chart is one all-positive stripe, the same degenerate chart the parabola's no-solution state produces.
One difference from the quadratic case deserves the closing word: there is no complex-number rescue here. x2+4=0 has imaginary roots, but ∣x∣+5=2 has no solutions in any number system where absolute value means distance — the equation is not hiding its answers off the real line; it simply asks for a negative distance. Empty can mean *empty*.
What Does f(x)=n Mean?
The equation f(x)=n asks for every x at which the function f takes the specific value n. Geometrically, this is asking where the graph y=f(x) crosses the horizontal line y=n — each crossing point gives one solution.
The number of solutions depends entirely on how the curve and the line interact:
• If they never meet, the equation has no solution — the solution set is empty • If they meet at a single point, the equation has one solution — often the case for linear equations • If the line crosses the curve cleanly at several places, the equation has several distinct solutions — common for polynomial equations of degree two or more • If the line is tangent to the curve at a point, that point is a repeated solution (multiplicity at least two)
Solving f(x)=n is exactly the same as finding the zeros of f(x)−n — that single rearrangement is what the sign chart and explanation panel both rely on.
For comprehensive theory on equations and solution sets, see algebra equations theory.
Why the Sign Chart Helps Even for Equations
Sign charts are most often associated with inequalities, but they are equally useful for equations. The reason: the zeros of f(x)−n are exactly the points where its sign changes (or fails to change, in the case of repeated roots).
A sign chart for f(x)−n presents the structure of the equation visually:
• Every column header in the chart marks a candidate solution • Sign-change columns identify single (odd-multiplicity) solutions • Columns where the sign does not change identify even-multiplicity solutions where the curve touches the line without crossing • Columns labeled "undefined" mark points where f itself blows up — these are not solutions of the equation but may be boundary points of the domain
Reading the sign chart, you get the complete solution structure at a glance without needing to plug values back into f.
For the inequality version of the same idea, see inequalities visualizer.
Related Concepts and Tools
Equations — the general theory of equations, methods of solution, and classification by type.
Inequalities Visualizer — the companion tool for f(x)<n, f(x)≤n, and the strict and non-strict comparisons; uses the same marble-and-sign-chart layout.
Linear Equations — the simplest case, where f is a degree-one polynomial; the visualizer always produces a single solution unless f is constant.
Quadratic Equations — degree-two case, where the equation has zero, one, or two real solutions depending on the discriminant of f(x)−n.
Polynomial Equations — higher-degree cases, where the fundamental theorem of algebra bounds the number of complex solutions by the degree.
Sign Charts — the general technique for tracking the sign of a function across intervals, used here and throughout calculus.
Function Graphs — visualizers for plotting y=f(x) on its own, without comparison to a target.
Equation Solving Step by Step — written walkthroughs of standard solution methods for each equation type.