<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Slope - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=slope&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=slope&amp;p=10">3.Next</a>
</p>
<p>so the slope of a vertical line is considered undefined.</p>

<p><big> Examples </big></p>
<p>Suppose a line runs through two points: P&nbsp;=&nbsp;(1,&nbsp;2) and Q&nbsp;=&nbsp;(13,&nbsp;8). By dividing the difference in -coordinates by the difference in -coordinates, one can obtain the slope of the line:<br/>
:<br/>
:Since the slope is positive, the direction of the line is increasing. Since |m| < 1, the incline is not very steep (incline <&thinsp;45°).</p>

<p>As another example, consider a line which runs through the points (4,&nbsp;15) and (3,&nbsp;21). Then, the slope of the line is <br/>
:<br/>
:Since the slope is negative, the direction of the line is decreasing. Since |m| > 1, this decline is fairly steep (decline >&thinsp;45°).</p>

<p><big>Algebra and geometry</big></p>
<p><big>Examples</big></p>
<p>For example, consider a line running through points (2,8) and (3,20). This line has a slope, , of <br/>
: </p>

<p>One can then write the line's equation, in point-slope form:<br/>
: or: <br/>
: </p>

<p>The angle ? between -90° and 90° that this line makes with the -axis is <br/>
:</p>

<p>Consider the two lines:  and . Both lines have slope . They are not the same line. So they are parallel lines.</p>

<p>Consider the two lines   and . The slope of the first line is . The slope of the second line is . The product of these two slopes is -1. So these two lines are perpendicular.</p>

<p><big> Statistics </big></p>
<p>In <a href="page.php?w=statistics">statistics</a>, the gradient of the <a href="page.php?w=Least_squares_regression">least-squares regression</a> <a href="page.php?w=best-fitting_line">best-fitting line</a> for a given <a href="page.php?w=sample_%28statistics%29">sample</a> of data may be written as:<br/>
:,This quantity m is called as the <a href="page.php?w=regression_slope">regression slope</a> for the line . The quantity  is <a href="page.php?w=Pearson_correlation_coefficient">Pearson's correlation coefficient</a>,  is the <a href="page.php?w=standard_deviation">standard deviation</a> of the y-values and  is the <a href="page.php?w=standard_deviation">standard deviation</a> of the x-values. This may also be written as a ratio of <a href="page.php?w=covariance">covariance</a>s:<br/>
:</p>

<p><big>Calculus</big></p>
<p>The concept of a slope is central to <a href="page.php?w=differential_calculus">differential calculus</a>. For non-linear functions, the rate of change varies along the curve. The <a href="page.php?w=derivative">derivative</a> of the function at a point is the slope of the line <a href="page.php?w=tangent">tangent</a> to the curve at the point and is thus equal to the rate of change of the function at that point.</p>

<p>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,<br/>
:,</p>

<p>is the slope of a <a href="page.php?w=secant_line">secant line</a> 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.</p>

<p>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 1=''x'' = {{frac}} is also 3&nbsp;-&nbsp;a consequence of the <a href="page.php?w=mean_value_theorem">mean value theorem</a>.)</p>

<p>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 <a href="page.php?w=differential_calculus">differential calculus</a>, we can determine the <a href="page.php?w=limit_of_a_function">limit</a>, or the value that ?y/?x approaches as ?y and ?x get closer to <a href="page.php?w=zero">zero</a>; 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 dy/dx. We call this limit the <a href="page.php?w=derivative_%28calculus%29">derivative</a>.</p>

<p>
:</p>

<p>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 1={{frac = 2x}}. So the slope of the line tangent to y at (-2,4) is 1=2 · (-2) = -4. The equation of this tangent line is: 1=''y'' - 4 = (-4)(''x'' - (-2)) or 1=''y'' = -4''x'' - 4.</p>

<p><big>Difference of slopes</big></p>
<p>An extension of the idea of angle follows from the difference of slopes. Consider the <a href="page.php?w=shear_mapping">shear mapping</a> <br/>
:Then  is mapped to . The slope of  is zero and the slope of  is . The shear mapping added a slope of . For two points on  with slopes  and , the image<br/>
:has slope increased by , but the difference  of slopes is the same before and after the shear. This invariance of slope differences makes slope an angular <a href="page.php?w=invariant_measure">invariant measure</a>, on a par with circular angle (invariant under rotation) and hyperbolic angle, with invariance group of <a href="page.php?w=squeeze_mapping">squeeze mapping</a>s.</p>

<p><big> Slope (pitch) of a roof </big></p>
<p>The slope of a roof, traditionally and commonly called the <a href="page.php?w=roof_pitch">roof pitch</a>, 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 <a href="page.php?w=roof_pitch">roof pitch</a>.</p>

<p><big> Slope of a road or railway </big></p>
<p>There are two common ways to describe the steepness of a <a href="page.php?w=road">road</a> or <a href="page.php?w=rail_tracks">railroad</a>. One is by the angle between 0° and 90° (in degrees), and the other is by the slope in a percentage. See also <a href="page.php?w=steep_grade_railway">steep grade railway</a> and <a href="page.php?w=rack_railway">rack railway</a>.</p>

<p>The formulae for converting a slope given as a percentage into an angle in degrees and vice versa are: <br/>
:  (this is the inverse function of tangent; see <a href="page.php?w=trigonometry">trigonometry</a>)and<br/>
: where angle is in degrees and the trigonometric functions operate in degrees. For example, a slope of 100<a href="page.php?w=percent_sign">%</a> or 1000<a href="page.php?w=per_mil">?</a> is an angle of 45°.</p>

<p>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°.</p>

<p>Roads and railways have both longitudinal slopes and cross slopes.</p>

<p><big>Other uses</big></p>
<p>The concept of a slope or gradient is also used as a basis for developing other applications in mathematics:<br/>
* <a href="page.php?w=Gradient_descent">Gradient descent</a>, a first-order iterative optimization algorithm for finding the minimum of a function<br/>
* <a href="page.php?w=Gradient_theorem">Gradient theorem</a>, theorem that a line integral through a gradient field can be evaluated by evaluating the original scalar field at the endpoints of the curve<br/>
* <a href="page.php?w=Gradient_method">Gradient method</a>, an algorithm to solve problems with search directions defined by the gradient of the function at the current point<br/>
* <a href="page.php?w=Conjugate_gradient_method">Conjugate gradient method</a>, an algorithm for the numerical solution of particular systems of linear equations<br/>
* <a href="page.php?w=Nonlinear_conjugate_gradient_method">Nonlinear conjugate gradient method</a>, generalizes the conjugate gradient method to nonlinear optimization<br/>
* <a href="page.php?w=Stochastic_gradient_descent">Stochastic gradient descent</a>, iterative method for optimizing a differentiable objective function</p>

<p><big>See also</big></p>
<p>
* <a href="page.php?w=Euclidean_distance">Euclidean distance</a><br/>
* <a href="page.php?w=Grade_%28slope%29">Grade</a><br/>
* <a href="page.php?w=Inclined_plane">Inclined plane</a><br/>
* <a href="page.php?w=Linear_function_%28calculus%29">Linear function</a><br/>
* <a href="page.php?w=Line_of_greatest_slope">Line of greatest slope</a><br/>
* <a href="page.php?w=Mediant">Mediant</a><br/>
* <a href="page.php?w=Trigonometric_functions">Slope definitions</a><br/>
* <a href="page.php?w=Theil-Sen_estimator">Theil-Sen estimator</a>, a line with the <a href="page.php?w=median">median</a> slope among a set of sample points</p>

<p><big>References</big></p>
<p><big> External links </big></p>
<p>
* interactive</p>

<p></p>
<p>
<a accesskey="1" href="page.php?w=slope&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=slope&amp;p=10">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
