Skip to content or footer

Line Equation

A line is the infinite extension of the shortest connection between two points. Visually, a line is an infinitely long, straight line. There is always exactly one straight line between two points.

All straight lines can be represented by a linear equation, therefore straight lines are also called linear functions .

This article deals with straight lines in ordinary analysis. For straight lines in analytic geometry see: Article on the subject

General line equation

To set up the straight line, you only need the slope and the intersection of the straight line with the yy-axis.

In this equation, m\textcolor{ff6600}{m} is the slope of the straight line and m\textcolor{ff6600}{m} is the y y-value where the straight line intersects the y y-axis.

Constituents of a line equation

A straight line equation consists of a gradient and the y y-axis intercept tt. These components are explained in more detail below.

Image

As an example consider the line:

Slope/Gradient

The slope indicates how steep a straight line climbs or falls. From the given equation, one can read out the gradient m=2m=2.

If you did not know this, you can also determine the gradient using a gradient triangle. To do this, you need at least two different points, which you can obtain by inserting different xx-values.

The yy-axis intercept tt

The yy-axis intercept t t indicates the y y-value at which the straight line intersects the yy-axis. The value is also obtained by inserting zero for xx into the equation of the straight line, since mxm\cdot x is omitted for the case x=0x=0 and only y=ty=t remains from the original equation.

The fact that the yy-axis intercept tt has the value 3 in the example can also be seen in the drawing from the line intersecting the yy-axis at point B B. BB has the coordinates (03)\left(0\left|3\right.\right).

Calculate the equation of a line through two points

Example: Given are the points A(11)A(-1|1) and B(23)B(2|3). Calculate the equation of the straight line that passes through AA and BB.

  1. Calculate the slope using the difference quotient              m=    1312=23=23m=\frac{\;\;1-3}{-1-2}=\frac{-2}{-3}=\frac23

  2. Plug mm and any point into the equation of the line to determine tt. We use the point BB.

    y=mx+t3=232+t                    43  343=t                                    t=53              \def\arraystretch{1.25} \begin{array}{l}\begin{array}{ccccc}\mathrm y&=&\mathrm m\cdot\mathrm x+\mathrm t&&\\3&=&\frac23\cdot2+\mathrm t&\;\;\;\;\;\;\;\;\;\;\left|-\frac43\right.&\;\\3-\frac43&=&\mathrm t\;\;\;\;\;\;\;\;&\;\;&\;\end{array}\\\begin{array}{ccc}\;\;\;\;\;\;\;\mathrm t&=&\frac53\;\;\;\;\;\;\;\end{array}\\\end{array}

  3. Substitute m m and tt into the general equation of a line.         y=23x+53\;\;\Rightarrow\;\;\mathrm y=\frac23\mathrm x+\frac53

Calculate the equation of the straight line given the yy-axis intercept tt and a point PP.

Example: Given are the yy-axis intercept t=3t =-3 and the point P(2/1)P(2/1). Calculate the corresponding equation of a straight line.

1. Insert tt and the coordinates of the point P P into the general line equation and solve for mm.

2. Substitute mm and t t into the general equation of a straight line     y=2x3\Rightarrow \;\;y=2x-3

General lines (interaktive)

Special lines

Image

Lines through the origin

Such a straight line always has the equation y=mxy=m\cdot x , since t=0t=0 holds.

A line through the origin may also represent a direct proportionality.

Image

Constant function

A line that is parallel to the xx-axis has the form y=c y=c and is the line of a constant function because it always takes the same, constant value.

Image

Vertical line

A line parallel to the yy-axis does not correspond to a function (see definition of a function), but to a relation. It cannot be described with the general equation of a straight line because the gradient would be infinite.

An equation for a vertical line has the form x=c \mathrm x=\mathrm c .

Image

The identity line

The line through the origin corresponding to the function y=x y=x is called the identity line. It is the bisector of the first and third quadrants of the coordinate system.


This content is licensed under
CC BY-SA 4.0Info