In mathematics, the slope or gradient of a line is a number that describes the direction of the line on a plane. It is commonly denoted by the letter m, and is defined as the ratio of the vertical change (rise) to the horizontal change (run) between any two distinct points on the line. It is not a direct distance or a direct angle, but a measure of their ratio. The line may be physical, as set by a road surveyor, pictorial as in a diagram of a road or roof, or abstract in pure mathematics. An application of the mathematical concept is found in the 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 up from left to right and has positive slope: m>0. A "decreasing" or "descending" line goes down from left to right and has negative slope: m<0. Special directions are:
A "(square) diagonal" line has unit slope: m=1 A "horizontal" line (the graph of a constant function) has zero slope: m=0. A "vertical" line has undefined or infinite slope (see below). If two points of a road have altitudes y1 and y2, the rise is the difference (y2 − y1) = Δy. Neglecting the Earth's curvature, if the two points have horizontal distance x1 and x2 from a fixed point, the run is (x2 − x1) = Δx. The slope between the two points is the difference ratio: m=ΔyΔx=y2−y1x2−x1. Through trigonometry, the slope m of a line is related to its angle of inclination θ by the tangent function m=tan(θ). 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 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 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 O'Brien (1844) who introduced the equation of a line as "y = mx + b", and it can also be found in Todhunter (1888) who wrote "y = mx + c".
Definition
The slope of a line in the plane containing the x and y axes is generally represented by the letter m, 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: m=ΔyΔx=verticalchangehorizontalchange=riserun. (The Greek letter delta, Δ, is commonly used in mathematics to mean "difference" or "change".) Given two points (x1,y1) and (x2,y2), the change in x from one to the other is x2−x1 (run), while the change in y is y2−y1 (rise). Substituting both quantities into the above equation generates the formula: m=y2−y1x2−x1. The formula fails for a vertical line, parallel to the y axis (see Division by zero), where the slope can be taken as 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 y-coordinates by the difference in x-coordinates, one can obtain the slope of the line: m=ΔyΔx=y2−y1x2−x1=(8−2)(13−1)=612=12. 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 m=21−153−4=6−1=−6. 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
Examples For example, consider a line running through points (2,8) and (3,20). This line has a slope, m, of (20−8)(3−2)=12. One can then write the line's equation, in point-slope form: y−8=12(x−2)=12x−24. or: y=12x−16. The angle θ between −90° and 90° that this line makes with the x-axis is θ=arctan(12)≈85.2∘. Consider the two lines: y = −3x + 1 and y = −3x − 2. Both lines have slope m = −3. They are not the same line. So they are parallel lines. Consider the two lines y = −3x + 1 and y = x/3 − 2. The slope of the first line is m1 = −3. The slope of the second line is m2 = 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 best-fitting line for a given sample of data may be written as: m=rsysx, This quantity m is called as the regression slope for the line y=mx+c. The quantity r is Pearson's correlation coefficient, sy is the standard deviation of the y-values and sx is the standard deviation of the x-values. This may also be written as a ratio of covariances: m=cov(Y,X)cov(X,X)
Calculus
… excerpt ends here. Continue reading the full article.





