Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Slope
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Mathematical term}} {{About|the mathematical term|slope of a physical feature|Grade (slope)|other uses|Slope (disambiguation)}} [[File:Wiki slope in 2d.svg|right|thumb|Slope: <math>m = \frac{\Delta y}{\Delta x} = \tan(\theta)</math>]] In [[mathematics]], the '''slope''' or '''gradient''' of a [[Line (mathematics)|line]] is a number that describes the [[direction (geometry)|direction]] of the line on a [[plane (geometry)|plane]].<ref>{{cite web|url=http://web.cortland.edu/matresearch/OxfordDictionaryMathematics.pdf |title=Oxford Concise Dictionary of Mathematics, Gradient |first1=C. |last1=Clapham |first2=J. |last2=Nicholson |publisher=Addison-Wesley |year=2009 |page=348 |access-date=1 September 2013 |url-status=dead |archive-url=https://web.archive.org/web/20131029203826/http://web.cortland.edu/matresearch/OxfordDictionaryMathematics.pdf |archive-date=29 October 2013 }}</ref> Often denoted by the letter ''m'', slope is calculated as the [[ratio]] of the vertical change to the horizontal change ("rise over run") between two distinct points on the line, giving the same number for any choice of points. The line may be physical – as set by a [[Surveying|road surveyor]], pictorial as in a [[diagram]] of a road or roof, or [[Pure mathematics|abstract]]. An application of the mathematical concept is found in the [[grade (slope)|grade]] or [[gradient]] in [[geography]] and [[civil engineering]]. The ''steepness'', incline, or grade of a line is the [[absolute value]] of its slope: greater absolute value indicates a steeper line. The line trend is defined as follows: *An "increasing" or "ascending" line goes {{em|up}} from left to right and has positive slope: <math>m>0</math>. *A "decreasing" or "descending" line goes {{em|down}} from left to right and has negative slope: <math>m<0</math>. Special directions are: *A "(square) [[diagonal]]" line has unit slope: <math>m=1</math> *A "horizontal" line (the graph of a [[constant function]]) has zero slope: '''<math>m=0</math>'''. *A "vertical" line has undefined or infinite slope (see below). If two points of a road have altitudes ''y''<sub>1</sub> and ''y''<sub>2</sub>, the rise is the difference (''y''<sub>2</sub> − ''y''<sub>1</sub>) = Δ''y''. Neglecting the [[Figure of the Earth|Earth's curvature]], if the two points have horizontal distance ''x''<sub>1</sub> and ''x''<sub>2</sub> from a fixed point, the run is (''x''<sub>2</sub> − ''x''<sub>1</sub>) = Δ''x''. The slope between the two points is the '''difference ratio''': :<math>m=\frac{\Delta y}{\Delta x} = \frac{y_2-y_1}{x_2-x_1}.</math> Through [[trigonometry]], the slope ''m'' of a line is related to its [[angle]] of inclination ''θ'' by the [[tangent function]] :<math>m = \tan (\theta).</math> Thus, a 45° rising line has slope ''m ='' +1, and a 45° falling line has slope ''m ='' −1. Generalizing this, [[differential calculus]] defines the slope of a [[plane curve]] at a point as the slope of its [[Tangent|tangent line]] at that point. When the curve is approximated by a series of points, the slope of the curve may be approximated by the slope of the [[secant line]] between two nearby points. When the curve is given as the graph of an [[algebraic expression]], calculus gives [[Derivative|formulas for the slope]] at each point. Slope is thus one of the central ideas of calculus and its applications to design. ==Notation== There seems to be no clear answer as to why the letter ''m'' is used for slope, but it first appears in English in [[Matthew O'Brien (mathematician)|O'Brien]] (1844)<ref>{{citation |last=O'Brien |first=M. |title=A Treatise on Plane Co-Ordinate Geometry or the Application of the Method of Co-Ordinates in the Solution of Problems in Plane Geometry |year=1844 |place=Cambridge, England |publisher=Deightons}}</ref> who introduced the equation of a line as {{nobreak|1="''y'' = ''mx'' + ''b''"}}, and it can also be found in [[Isaac Todhunter|Todhunter]] (1888)<ref>{{citation |last=Todhunter |first=I. |title=Treatise on Plane Co-Ordinate Geometry as Applied to the Straight Line and Conic Sections |year=1888 |place=London |publisher=Macmillan}}</ref> who wrote "''y'' = ''mx'' + ''c''".<ref>{{cite web |last=Weisstein |first=Eric W. |title=Slope |url=http://mathworld.wolfram.com/Slope.html |url-status=live |archive-url=https://web.archive.org/web/20161206182915/http://mathworld.wolfram.com/Slope.html |archive-date=6 December 2016 |access-date=30 October 2016 |publisher=MathWorld--A Wolfram Web Resource}}</ref> == Definition == [[File:Slope of lines illustrated.jpg|thumb|400px|right|Slope illustrated for {{nowrap|1=''y'' = (3/2)''x'' − 1}}. Click on to enlarge]] [[File:Gradient of a line in coordinates from -12x+2 to +12x+2.gif|400px|thumbnail|right|Slope of a line in coordinates system, from {{nowrap|1=''f''(''x'') = −12''x'' + 2}} to {{nowrap|1=''f''(''x'') = 12''x'' + 2}}]] The slope of a line in the plane containing the ''x'' and ''y'' axes is generally represented by the letter ''m'',<ref>An early example of this convention can be found in {{cite book |last=Salmon |first=George |author-link=George Salmon |year=1850 |url=https://archive.org/details/treatiseonconics00salm_1/page/14/ |pages=14–15 |title=A Treatise on Conic Sections |location=Dublin |publisher=Hodges and Smith |edition=2nd }}</ref> and is defined as the change in the ''y'' coordinate divided by the corresponding change in the ''x'' coordinate, between two distinct points on the line. This is described by the following equation: :<math>m = \frac{\Delta y}{\Delta x} = \frac{\text{vertical} \, \text{change} }{\text{horizontal} \, \text{change} }= \frac{\text{rise}}{\text{run}}.</math> (The Greek letter ''[[delta (letter)|delta]]'', Δ, is commonly used in mathematics to mean "difference" or "change".) Given two points <math>(x_1,y_1)</math> and <math>(x_2,y_2)</math>, the change in <math>x</math> from one to the other is <math>x_2-x_1</math> (''run''), while the change in <math>y</math> is <math>y_2-y_1</math> (''rise''). Substituting both quantities into the above equation generates the formula: :<math>m = \frac{y_2 - y_1}{x_2 - x_1}.</math> The formula fails for a vertical line, parallel to the <math>y</math> axis (see [[Division by zero]]), where the slope can be taken as [[infinity|infinite]], so the slope of a vertical line is considered undefined. === Examples === Suppose a line runs through two points: ''P'' = (1, 2) and ''Q'' = (13, 8). By dividing the difference in <math>y</math>-coordinates by the difference in <math>x</math>-coordinates, one can obtain the slope of the line: :<math>m = \frac{\Delta y}{\Delta x} = \frac{y_2 - y_1}{x_2 - x_1} = \frac{(8 - 2)}{(13 - 1)} = \frac{6}{12} = \frac{1}{2}.</math> :Since the slope is positive, the direction of the line is increasing. Since |''m''| < 1, the incline is not very steep (incline < 45°). As another example, consider a line which runs through the points (4, 15) and (3, 21). Then, the slope of the line is :<math>m = \frac{ 21 - 15}{3 - 4} = \frac{6}{-1} = -6.</math> :Since the slope is negative, the direction of the line is decreasing. Since |''m''| > 1, this decline is fairly steep (decline > 45°). ==Algebra and geometry== [[File:Slopes of Parallel and Perpendicular Lines.svg|thumb|Slopes of parallel and perpendicular lines]] {{bulleted list | If <math>y</math> is a [[linear function]] of <math>x</math>, then the coefficient of <math>x</math> is the slope of the line created by plotting the function. Therefore, if the equation of the line is given in the form : <math>y = mx + b</math> then <math>m</math> is the slope. This form of a line's equation is called the ''slope-intercept form'', because <math>b</math> can be interpreted as the [[y-intercept]] of the line, that is, the <math>y</math>-coordinate where the line intersects the <math>y</math>-axis. | If the slope <math>m</math> of a line and a point <math>(x_1, y_1)</math> on the line are both known, then the equation of the line can be found using the [[Linear equation#Point–slope form|point-slope formula]]: : <math>y - y_1 = m(x - x_1).</math> | The slope of the line defined by the [[linear equation]] : <math>ax + by + c = 0 </math> is : <math>-\frac{a}{b}</math>. | Two lines are [[parallel (geometry)|parallel]] if and only if they are not the same line (coincident) and either their slopes are equal or they both are vertical and therefore both have undefined slopes. | Two lines are [[perpendicular]] if the product of their slopes is −1 or one has a slope of 0 (a horizontal line) and the other has an undefined slope (a vertical line). | The angle θ between −90° and 90° that a line makes with the ''x''-axis is related to the slope ''m'' as follows: : <math>m = \tan(\theta)</math> and : <math>\theta = \arctan (m)</math> (this is the inverse function of tangent; see [[inverse trigonometric functions]]). }} ===Examples=== For example, consider a line running through points (2,8) and (3,20). This line has a slope, {{math|''m''}}, of : <math>\frac {(20 - 8)}{(3 - 2)} = 12. </math> One can then write the line's equation, in point-slope form: : <math>y - 8 = 12(x - 2) = 12x - 24. </math> or: : <math>y = 12x - 16. </math> The angle θ between −90° and 90° that this line makes with the {{math|''x''}}-axis is :<math>\theta = \arctan(12) \approx 85.2^{\circ} .</math> Consider the two lines: {{math|1=''y'' = −3''x'' + 1}} and {{math|1=''y'' = −3''x'' − 2}}. Both lines have slope {{math|1=''m'' = −3}}. They are not the same line. So they are parallel lines. Consider the two lines {{math|1=''y'' = −3''x'' + 1}} and {{math|1=''y'' = {{sfrac|''x''|3}} − 2}}. The slope of the first line is {{math|1=''m''<sub>1</sub> = −3}}. The slope of the second line is {{math|1=''m''<sub>2</sub> = {{sfrac|1|3}}}}. The product of these two slopes is −1. So these two lines are perpendicular. == Statistics == In [[statistics]], the gradient of the [[Least squares regression|least-squares regression]] [[best-fitting line]] for a given [[sample (statistics)|sample]] of data may be written as: :<math>m = \frac{rs_y}{s_x}</math>, This quantity ''m'' is called as the ''[[regression slope]]'' for the line <math>y=mx+c</math>. The quantity <math>r</math> is [[Pearson correlation coefficient|Pearson's correlation coefficient]], <math>s_y</math> is the [[standard deviation]] of the y-values and <math>s_x</math> is the [[standard deviation]] of the x-values. This may also be written as a ratio of [[covariance]]s:<ref>{{Cite book|title=Further Mathematics Units 3&4 VCE (Revised)|publisher=Cambridge Senior Mathematics|year=2016|isbn=9781316616222|via=Physical Copy}}</ref> :<math>m = \frac{\operatorname{cov}(Y,X)}{\operatorname{cov}(X,X)}</math> ==Calculus== [[File:Tangent function animation.gif|right|frame|At each point, the [[derivative]] is the slope of a [[Line (geometry)|line]] that is [[tangent]] to the [[curve]] at that point. Note: the derivative at point A is [[positive number|positive]] where green and dash–dot, [[negative number|negative]] where red and dashed, and [[zero (number)|zero]] where black and solid.]] The concept of a slope is central to [[differential calculus]]. For non-linear functions, the rate of change varies along the curve. The [[derivative]] of the function at a point is the slope of the line [[tangent]] to the curve at the point and is thus equal to the rate of change of the function at that point. If we let Δ''x'' and Δ''y'' be the distances (along the ''x'' and ''y'' axes, respectively) between two points on a curve, then the slope given by the above definition, :<math>m = \frac{\Delta y}{\Delta x}</math>, is the slope of a [[secant line]] to the curve. For a line, the secant between any two points is the line itself, but this is not the case for any other type of curve. For example, the slope of the secant intersecting ''y'' = ''x''<sup>2</sup> at (0,0) and (3,9) is 3. (The slope of the tangent at {{nowrap|1=''x'' = {{frac|3|2}}}} is also 3 − ''a'' consequence of the [[mean value theorem]].) By moving the two points closer together so that Δ''y'' and Δ''x'' decrease, the secant line more closely approximates a tangent line to the curve, and as such the slope of the secant approaches that of the tangent. Using [[differential calculus]], we can determine the [[limit of a function|limit]], or the value that Δ''y''/Δ''x'' approaches as Δ''y'' and Δ''x'' get closer to [[zero]]; it follows that this limit is the exact slope of the tangent. If ''y'' is dependent on ''x'', then it is sufficient to take the limit where only Δ''x'' approaches zero. Therefore, the slope of the tangent is the limit of Δ''y''/Δ''x'' as Δ''x'' approaches zero, or d''y''/d''x''. We call this limit the [[derivative (calculus)|derivative]]. :<math>\frac{\mathrm dy}{\mathrm dx} = \lim_{\Delta x \to 0}\frac{\Delta y}{\Delta x}</math> The value of the derivative at a specific point on the function provides us with the slope of the tangent at that precise location. For example, let ''y'' = ''x''<sup>2</sup>. A point on this function is (−2,4). The derivative of this function is {{nowrap|1={{frac|d''y''|d''x''}} = 2''x''}}. So the slope of the line tangent to ''y'' at (−2,4) is {{nowrap|1=2 ⋅ (−2) = −4}}. The equation of this tangent line is: {{nowrap|1=''y'' − 4 = (−4)(''x'' − (−2))}} or {{nowrap|1=''y'' = −4''x'' − 4}}. ==Difference of slopes== [[File:Missing_square_puzzle.svg|thumb|right|200px|The illusion of a paradox of area is dispelled by comparing slopes where blue and red triangles meet.]] An extension of the idea of angle follows from the difference of slopes. Consider the [[shear mapping]] :<math>(u,v) = (x,y) \begin{pmatrix}1 & v \\ 0 & 1 \end{pmatrix}.</math> Then <math>(1,0)</math> is mapped to <math>(1,v)</math>. The slope of <math>(1,0)</math> is zero and the slope of <math>(1,v)</math> is <math>v</math>. The shear mapping added a slope of <math>v</math>. For two points on <math>\{(1,y):y\in\R\}</math> with slopes <math>m</math> and <math>n</math>, the image :<math>(1,y)\begin{pmatrix}1 & v \\ 0 & 1\end{pmatrix} = (1, y + v)</math> has slope increased by <math>v</math>, but the difference <math>n-m</math> of slopes is the same before and after the shear. This invariance of slope differences makes slope an angular [[invariant measure]], on a par with circular angle (invariant under rotation) and hyperbolic angle, with invariance group of [[squeeze mapping]]s.<ref>{{Cite journal|last1=Bolt|first1=Michael|last2=Ferdinands|first2=Timothy|last3=Kavlie|first3=Landon|date=2009|title=The most general planar transformations that map parabolas into parabolas|url=https://projecteuclid.org/euclid.involve/1513799118|journal=Involve: A Journal of Mathematics|language=EN|volume=2|issue=1|pages=79–88|doi=10.2140/involve.2009.2.79|issn=1944-4176|doi-access=free|access-date=2021-05-22|archive-date=2020-06-12|archive-url=https://web.archive.org/web/20200612185227/https://projecteuclid.org/euclid.involve/1513799118|url-status=live}}</ref><ref>{{Wikibooks-inline|Abstract Algebra/Shear and Slope}}</ref> == Slope (pitch) of a roof == {{main|Roof pitch}} The slope of a roof, traditionally and commonly called the [[roof pitch]], in carpentry and architecture in the US is commonly described in terms of integer fractions of one foot (geometric tangent, rise over run), a legacy of British imperial measure. Other units are in use in other locales, with similar conventions. For details, see [[roof pitch]]. == Slope of a road or railway == {{main|Grade (slope)|Grade separation}} There are two common ways to describe the steepness of a [[road]] or [[rail tracks|railroad]]. One is by the angle between 0° and 90° (in degrees), and the other is by the slope in a percentage. See also [[steep grade railway]] and [[rack railway]]. The formulae for converting a slope given as a percentage into an angle in degrees and vice versa are: : <math>\text{angle} = \arctan \left( \frac{\text{slope}}{100\%} \right)</math> (this is the inverse function of tangent; see [[trigonometry]]) and : <math>\mbox{slope} = 100\% \times \tan( \mbox{angle}),</math> where ''angle'' is in degrees and the trigonometric functions operate in degrees. For example, a slope of 100[[percent sign|%]] or 1000[[per mil|‰]] is an angle of 45°. A third way is to give one unit of rise in say 10, 20, 50 or 100 horizontal units, e.g. 1:10. 1:20, 1:50 or 1:100 (or "1 ''in'' 10", "1 ''in'' 20", etc.) 1:10 is steeper than 1:20. For example, steepness of 20% means 1:5 or an incline with angle 11.3°. Roads and railways have both longitudinal slopes and cross slopes. <gallery> File:Nederlands verkeersbord J6.svg|Slope warning sign in the [[Netherlands]] File:PL road sign A-23.svg|Slope warning sign in [[Poland]] File: Skloník-klesání.jpg|A 1371-meter distance of a railroad with a 20[[Per mil|‰]] slope. [[Czech Republic]] File: Railway gradient post.jpg|Steam-age railway gradient post indicating a slope in both directions at [[Meols railway station]], United Kingdom </gallery> ==Other uses== The concept of a slope or gradient is also used as a basis for developing other applications in mathematics: * [[Gradient descent]], a first-order iterative optimization algorithm for finding the minimum of a function * [[Gradient theorem]], theorem that a line integral through a gradient field can be evaluated by evaluating the original scalar field at the endpoints of the curve * [[Gradient method]], an algorithm to solve problems with search directions defined by the gradient of the function at the current point * [[Conjugate gradient method]], an algorithm for the numerical solution of particular systems of linear equations * [[Nonlinear conjugate gradient method]], generalizes the conjugate gradient method to nonlinear optimization * [[Stochastic gradient descent]], iterative method for optimizing a differentiable objective function ==See also== {{div col|colwidth=23em}} * [[Euclidean distance]] * [[Grade (slope)|Grade]] * [[Inclined plane]] * [[Linear function (calculus)|Linear function]] * [[Line of greatest slope]] * [[Mediant]] * [[Trigonometric functions|Slope definitions]] * [[Theil–Sen estimator]], a line with the [[median]] slope among a set of sample points {{div col end}} ==References== {{reflist}} == External links == {{Wiktionary}} *{{cite web | url=http://www.mathopenref.com/coordslope.html| title =Slope of a Line (Coordinate Geometry)| publisher =Math Open Reference |year=2009 |access-date=30 October 2016 }} interactive {{Calculus topics}} [[Category:Elementary mathematics]] [[Category: Analytic geometry]] [[Category:Ratios]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:About
(
edit
)
Template:Bulleted list
(
edit
)
Template:Calculus topics
(
edit
)
Template:Citation
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Div col
(
edit
)
Template:Div col end
(
edit
)
Template:Em
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Nobreak
(
edit
)
Template:Nowrap
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Sister project
(
edit
)
Template:Wikibooks-inline
(
edit
)
Template:Wiktionary
(
edit
)