➗ Math · Linear Equations & Graphing

Linear Equations & Graphing: Straight Lines, Zero Stress

Slope, y-intercept and y = mx + b — turn equations into lines and lines back into equations.

🎟️ No sign-up 💾 Saved locally ⚡ Earns XP

y = mx + b: the most useful equation in school math

Every straight line on a graph can be described by y = mx + b, and every y = mx + b draws a straight line. m is the slope — how steeply the line climbs (rise over run). b is the y-intercept — where the line crosses the y-axis. Two numbers fully describe any line, which is why this form is everywhere from algebra to machine learning.

Reading a line is then instant: y = 2x + 1 starts at 1 on the y-axis and climbs 2 units for every 1 unit right. Negative slope descends. Slope 0 is flat. Once you internalize 'm = steepness, b = starting height,' graphs turn into sentences you can read at a glance.

  • m = slope = rise/run = how fast y changes per step right
  • b = y-intercept = where the line crosses the y-axis
  • Positive m climbs →, negative m descends, m = 0 is horizontal
  • Graphing: plot b, use m to step to a second point, connect

Finding slope and building equations

Slope between two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁)/(x₂ − x₁) — rise over run. A slope of 3/2 means: up 3, right 2. Slope tells a story: in y = 5x, 5 might be $5 per hour; the intercept is the starting amount; the line is every possible (hours, money) pair.

To build an equation from data: compute m from two points, then substitute one point into y = mx + b to solve for b. That's the whole technique. Two points → one line, always. And lines are parallel when they share a slope; perpendicular when slopes multiply to −1 (like 2 and −½).

  • Slope formula: m = (y₂ − y₁)/(x₂ − x₁)
  • Equation from 2 points: find m, then plug a point in for b
  • Parallel lines: same slope
  • Perpendicular lines: slopes multiply to −1
  • Real-world slope = a rate: $/hr, miles/gallon, °C per km
💡 Worked example: line through (1, 3) and (3, 11)

Slope: m = (11 − 3)/(3 − 1) = 8/2 = 4. Find b with (1,3): 3 = 4(1) + b → b = −1. Equation: y = 4x − 1. Check with the other point: 4(3) − 1 = 11 ✓.

Systems of equations: where lines meet

A system of two linear equations asks: where do these two lines cross? That intersection point satisfies both equations at once. Graphically it's the crossing point; algebraically you can find it exactly with substitution (solve one equation for a variable, substitute into the other) or elimination (add/subtract equations to cancel a variable).

Substitution shines when one equation already gives x or y alone. Elimination shines when coefficients align (2x + y = 7 and 2x − y = 1: add them → 4x = 8 → x = 2, then back-substitute). Pick the tool that fits the shape of the problem — and if the lines turn out parallel, the system has no solution; identical lines mean infinite solutions.

  • Solution of a system = the point both equations share
  • Substitution: isolate a variable, plug into the other equation
  • Elimination: add/subtract equations to cancel one variable
  • Parallel lines → no solution · Same line → infinitely many

Key concepts to memorize

Slope (m)Steepness: rise over run; the change in y per 1 unit change in x.
y-intercept (b)Where the line crosses the y-axis — the value of y when x = 0.
Slope-intercept formy = mx + b — the read-it-instantly form of a line.
Standard formAx + By = C — tidy for finding intercepts and eliminations.
Point-slope formy − y₁ = m(x − x₁) — builds a line from a point and slope.
System of equationsTwo+ equations solved together; the answer is where graphs intersect.
SubstitutionSolve one equation for a variable and substitute into the other.
EliminationAdd or subtract whole equations to cancel out one variable.

🎯 Study tips for this topic

  • Always write 'm = slope, b = starting point' at the top of your notes until reading y = mx + b is automatic.
  • Make a table of x/y values for your first graphs — plotting points builds intuition faster than formulas.
  • Interpret slope in a sentence ('$5 per hour') — meaning anchors memory better than symbols.
  • Check system solutions by substituting into BOTH original equations — it catches algebra slips instantly.
  • Use the flashcard deck for forms (slope-intercept, point-slope, standard) so switching forms becomes reflex.
People also ask

Questions students also ask

What is slope in simple terms?
Steepness measured as rise over run: how much y goes up (or down) for each step right.
How do you find the equation of a line from two points?
Slope from m = (y₂−y₁)/(x₂−x₁), then substitute either point into y = mx + b to find b.
What does the intersection point of two lines mean?
The (x, y) that satisfies both equations simultaneously — the system's solution.
Why is y = mx + b so important?
It compresses everything about a line into two readable numbers: steepness (m) and starting point (b) — the template for linear thinking across math, science, and data.
FAQ

Questions about linear equations & graphing

What does the b in y = mx + b represent?
The y-intercept: the value of y when x = 0, i.e., where the line crosses the y-axis. In real-world problems it's usually the starting value — the initial fee, the base salary, the head start.
How do I graph a line without making a table?
Use y = mx + b directly: plot the intercept b at (0, b), then treat slope m as rise/run and step to a second point. Two points determine the line — connect and extend with arrows.
Which is easier, substitution or elimination?
Use substitution when one equation already isolates a variable (y = 2x + 1); use elimination when the same variable has matching or opposite coefficients. With practice you'll pick the right tool in under ten seconds.
What if a system's lines are parallel?
There's no solution — no point lies on both lines. Algebraically you'll get a contradiction like 0 = 4. If the equations describe the same line, every point works: infinite solutions.
Why you can trust StudyBonk

No accounts. No tracking. Open-source.

Every promise on this page is verifiable — see the proof or read the code.

🔒

Zero data collection

StudyBonk has no accounts, no analytics, no cookies and no server-side storage. Your notes, decks and streaks live only in your browser's local storage on your own device.

📖

Open-source transparency

The entire platform is open-source on GitHub. You can read every line of code — including this page — before you trust it with a single minute of study time.

🧑‍💻

A named, accountable author

Every page is written and maintained by TuffyCoder, an ethical developer who publishes under a real identity with public social channels and a responsible disclosure policy.

100% free · forever

Learn Linear Equations & Graphing the bonky way

Read it, drill it, quiz it — that loop is how memories are made. Free, private, no account.

🎟️ No sign-up required💾 Everything saved in your browser🌙 Light & dark mode🚫 No ads · no tracking · no paywalls
Ask Bonk AI