Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Percentages0/6
  • Algebra0/7
  • Coordinate geometry0/7
  • Vectors and the dot product0/7
  • Trigonometry0/7
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
xxxMaths, module 5: Algebra, lesson 5 of 7

Straight lines and slope

Plot y = mx + c and you get a straight line. The m is its slope, rise over run, and it is the first parameter a model ever learns.

6 minute read2 things to try6 questionsFree

In the last lesson you met y=mx+cy = mx + cy=mx+c: xxx is the input, yyy the output, ccc where the line crosses the up-down axis, and mmm how much yyy rises for each step in xxx. This lesson is about that mmm, the slope, and how to read it off any two points.

Plot every point where y=2x+1y = 2x + 1y=2x+1: (0,1)(0, 1)(0,1), (1,3)(1, 3)(1,3), (2,5)(2, 5)(2,5) and so on. They all fall on one straight line, and every step right lifts the line by 2. That 2 is the slope.

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • y=mx+cy = mx + cy=mx+c is a straight line with slope mmm crossing at ccc.
  • Slope is rise over run.
  • Fitting a line means learning its slope and crossing point.

More in Algebra

  1. 1Letters for numbers
  2. 2Solving equations
  3. 3Graphs, and what y = mx + c means
  4. 4Coordinates, and the distance between two points
  5. 5Straight lines and slope
  6. 6Two equations at once
  7. 7Gateway to linear algebra