Added the method of finding slope from a graph (#21597)

* Added the method of finding slope from a graph

* cleaned up graph, added alt attributes, cleaned up grammar
This commit is contained in:
Aman Kumar
2018-11-15 18:57:33 +05:30
committed by Tom
parent 68d00ec899
commit d6c9d612e5

View File

@@ -3,13 +3,19 @@ title: Finding Slope from Graph
---
## Finding Slope from Graph
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/finding-slope-from-graph/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->
Let us consider the graph for `2x+3`
![Image showing graph of 2x+3](https://graphsketch.com/render.php?eqn1_color=1&eqn1_eqn=2x%2B3&eqn2_color=2&eqn2_eqn=&eqn3_color=3&eqn3_eqn=&eqn4_color=4&eqn4_eqn=&eqn5_color=5&eqn5_eqn=&eqn6_color=6&eqn6_eqn=&x_min=-17&x_max=17&y_min=-10.5&y_max=10.5&x_tick=1&y_tick=1&x_label_freq=5&y_label_freq=5&do_grid=0&do_grid=1&bold_labeled_lines=0&bold_labeled_lines=1&line_width=4&image_w=850&image_h=525)
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 = <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\Delta&space;y}{\Delta&space;x}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\Delta&space;y}{\Delta&space;x}" title="\frac{\Delta x}{\Delta y}" alt="delta x/delta y" /></a>
where <a href="https://www.codecogs.com/eqnedit.php?latex=\Delta&space;x" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\Delta&space;x" title="\Delta x" alt="delta x" /></a> = change in `x`
and <a href="https://www.codecogs.com/eqnedit.php?latex=\Delta&space;y" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\Delta&space;y" title="\Delta y" alt="delta y"/></a> = change in `y`
If we take `x1=2`, `x2=0` and `y1=7` and `y2=3` slope = <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{7-3}{2-0}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{7-3}{2-0}" title="\frac{7-3}{2-0}" alt="(7-3)/(2-0)"/></a> = `2`