Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Algebra0/7
  • Coordinate geometry0/7
  • Vectors and the dot product0/7
  • Trigonometry0/7
  • Sigma and series0/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
(x,y)(x,y)(x,y)Maths, module 6: Coordinate geometry, lesson 4 of 7

Slope and the angle of a line

Slope is rise over run. It is also tan of the angle with the x-axis, and it tells you at once whether lines are parallel or perpendicular.

10 minute read2 things to try5 questionsFree

The slope (gradient) mmm of a line through (x1,y1)(x_1, y_1)(x1​,y1​) and (x2,y2)(x_2, y_2)(x2​,y2​) is how far it rises for each step across:

m=y2−y1x2−x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}m=x2​−x1​y2​−y1​​=runrise​

Read the whole lesson free

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

Create a free accountLog in

What this lesson covers

  • m=riserun=y2−y1x2−x1=tan⁡θm = \tfrac{\text{rise}}{\text{run}} = \tfrac{y_2 - y_1}{x_2 - x_1} = \tan\thetam=runrise​=x2​−x1​y2​−y1​​=tanθ.
  • Parallel: equal slopes. Perpendicular: slopes multiply to −1-1−1.
  • Collinear points have equal slopes between each pair.

More in Coordinate geometry

  1. 1The coordinate plane
  2. 2The distance formula
  3. 3Midpoint and section formula
  4. 4Slope and the angle of a line
  5. 5Equations of a line
  6. 6Two lines together
  7. 7Areas and circles on the grid