freeCodeCamp/guide/english/mathematics/finding-slope-from-graph/index.md

1.7 KiB

title
Finding Slope from Graph

Finding Slope from Graph

Let us consider the graph for 2x+3

Image showing graph of 2x+3

To find the slope we need to take two points on the x axis and their perpendicular points on y axis then subtract two points of x axis to find change in x and two points on y to find change in y

To find the slope use the formula slope = delta x/delta y

where delta x = change in x and delta y = change in y

If we take x1=2, x2=0 and y1=7 and y2=3 slope = (7-3)/(2-0) = 2