# Straight Line in Plane

## General Equation of a Straight Line

The general equation of a straight line in a plane is given by

where *x*, *y* are the coordinates of a point on the line, *A*, *B*, *C* are real numbers. Note that this is the standard form of the equation of a straight line, where the coefficients *A* and *B* are not both equal to zero:

This equation is also known as the canonical form of a straight line equation.

There are also other forms of the equation of a straight line, which are also commonly used. We will review them below.

### Normal Vector to a Straight Line

Let the line be defined by the general equation

Then the vector **n**(*A*, *B*) whose coordinates are equal to the coefficients *A*, *B* is the normal vector to the straight line.

## Slope-Intercept Form

The slope-intercept form of the equation of a straight line is given by

where *k* is the slope of the line and *b* is the *y*-intercept (the point where the line intersects the *y*-axis).

This form of the equation is particularly useful for graphing a line, as the slope gives you an indication of how steep the line is and the *y*-intercept tells you where the line crosses the *y*-axis.

### Slope of a Straight Line

The slope of a straight line is determined by the formula

where *A*(*x*_{1}, *y*_{1}), *B*(*x*_{2}, *y*_{2}) are the coordinates of two points of the line.

## Point-Slope Form

The point-slope form of the equation of a straight line is

where *P*(*x*_{0}, *y*_{0}) is a known point on the line and *k* is the slope of the line.

To use the point-slope form, you simply substitute the values of *x*_{0}, *y*_{0}, and *k* into the equation, and then simplify it to get the equation of the line in slope-intercept form or standard form, if desired.

## Two-Point Form

The two-point form of the equation of a straight line is given by

where (*x*_{1}, *y*_{1}), (*x*_{2}, *y*_{2}) are two known points on the line.

This equation represents a line that passes through the points *A*(*x*_{1}, *y*_{1}) and *B*(*x*_{2}, *y*_{2}). You can use this equation to find the equation of a line given two points.

The two-point form equation can also be represented in matrix form:

where (*x*, *y*) is an arbitrary point on the line.

To verify that a point *P*(*x*, *y*) lies on the line, we can substitute the *x*- and *y*-values into the determinant and check whether the result is zero. If it is zero, then *P* lies on the line; otherwise, it does not.

## Two-Intercept Form

The two-intercept form of the equation of a straight line is written as

where *a* and *b* are the *x*-intercept and *y*-intercept of the line, respectively. The *x*-intercept is the point at which the line intersects the *x*-axis, and its *y*-coordinate is zero. The *y*-intercept is the point at which the line intersects the *y*-axis, and its *x*-coordinate is zero.

## Normal Form

The normal form of a straight line equation is a way to represent a line in terms of its distance from the origin (0,0). The equation of a straight line in normal form is

where *β* is the angle between the line and the positive *x*-axis (measured counterclockwise), and *p* is the perpendicular distance from the origin to the line.

## Point-Direction Form

The point-direction form of a straight line equation is a way to represent a line in a plane (or in space) using a point on the line and the direction of the line. In the *xy*-plane, the equation has the form

where the vector **s**(*X*, *Y*) is directed along the straight line, and the point *P*(*x*_{0}, *y*_{0}) lies on the line.

## Vertical Line Equation

A vertical line is a line that runs straight up and down, parallel to the *y*-axis, and has an undefined slope. The equation of a vertical line can be written as

where *a* is the *x*-coordinate of any point on the line.

This equation states that all points on the line have the same *x*-coordinate, which is equal to *a*. Therefore, we can say that the line is vertical and parallel to the *y*-axis, and it intersects the *x*-axis at the point (*a*,0).

## Horizontal Line Equation

A horizontal line is a line that runs straight from left to right, parallel to the *x*-axis, and has a slope of zero. The equation of a horizontal line is given by

where *b* is the *y*-coordinate of any point on the line.

## Vector Equation of a Straight Line

The vector equation of a straight line in a plane is another way to represent a line using vectors. It is based on the fact that the displacement vector between any two points on the line is parallel to the direction vector of the line.

Suppose we have a point *A* with position vector **a** on the line in the plane, and a direction vector **b** that is parallel to the line. Using vector notation, we can write the equation of the line as

The vector **r** is the position vector directed from the origin to any point *X* on this line. The number *t* is a parameter that varies from -∞ to ∞.

The vector equation is useful because it allows us to easily perform vector operations on the line, such as finding the intersection point of two lines or the angle between two lines.

## Equation of a Straight Line in Parametric Form

To write the equation of a straight line in the plane in parametric form, we need to express the *x*- and *y*-coordinates of any point on the line in terms of a parameter, usually denoted by *t*.

Suppose we have a point *A*(*a*_{1}, *a*_{2}) on the line, and a direction vector **b**(*b*_{1}, *b*_{2}) that is parallel to the line. Then we can write the parametric equations of the line as

where (*x*, *y*) are the coordinates of an arbitrary point of the line.

The above parametric equations indicate that as *t* varies, the point (*x*, *y*) moves along the line in the direction of **b**. The parameter *t* can take any real value, so the line extends infinitely in both directions.

## Solved Problems

### Example 1.

Find an equation of the line through the points \(A\left({-1,0}\right)\) and \(B\left({0,2}\right).\)

Solution.

Remember that the two-point form of the equation of a straight line is

Substituting the coordinates of points A and B, we obtain

We can write this equation in the slope-intercept form:

### Example 2.

Find the slope of the line given in parametric form \[ \begin{cases} x = 1 + 2t \\ y = 2 + t \end{cases}. \]

Solution.

We express \(t\) from the second equation and substitute it into the first equation:

or

So, the slope of the straight line is equal to \(\frac{1}{2}.\)

### Example 3.

Write an equation of the line \({3x - 4y + 4 = 0}\) in parametric and in two-intercept form.

Solution.

To preserve integer coefficients it is convenient to set \({x = 4t}.\) Then we have

So, the equation of the line in parametric form is given by

The two-intercept form of a line equation looks like

We can derive it from the general equation:

Dividing both sides by \(-4\) gives us the equation of the line in two-intercept form:

The straight line interecepts the \(x-\)axis at \(x = -\frac{4}{3}\) and the \(y-\)axis at \(y = 1\).

### Example 4.

Find an equation of the straight line through \(A\left({3,5}\right)\) and parallel to the line \({x - 2y + 5 = 0}.\)

Solution.

If the required line is parallel to the line \({x - 2y + 5 = 0},\) then our line must have an equation of the form

where \(C\) is an unknown number.

The point \(A\left({3,5}\right)\) lies on the line. Therefore

So, the desired equation is

### Example 5.

Find an equation of the line through the point \(A\left({-4,2}\right)\) that makes the angle \({\alpha = 135^\circ}\) with the positive \(x-\)axis.

Solution.

The slope of the line is

Using the point-slope form of the line equation

and substituting the coordinates of point \(A\left({x_A,y_A}\right)\) and the slope \(k\) in the equation, we get

### Example 6.

Find an equation of the straight line that passes through the point \(A\left({2,3}\right)\) and forms with the coordinate axes a triangle of area \(12\) square units.

Solution.

We write the equation of the line in two-intercept form:

The area of a right triangle is one half the product of two legs. Therefore, we can write

Substituting the coordinates of point \(A\left({2,3}\right)\) in the equation yields:

Thus we have a system of two equations from which we can find \(a\) and \(b:\)

Let's express \(a\) in terms of \(b\) from the first equation and plug in \(a\) into the second equation:

Multiply both sides of the equation by \(12b:\)

Then

So the equation of our line has the form

In general form, it looks like