Expressing a straight line in standard mathematical form is defined an equation of a straight line in general form. It is also called as standard form of equation of a straight line.

A straight line is usually expressed in graphical system geometrically. It is mostly useful for geometrical analysis. Similarly, the straight lines can also be expressed in mathematical form by developing an equation using the algebraic system but based on the geometrical analysis.

Consider a straight line in a plane and it is assumed to call straight line $\overleftrightarrow{AB}$.

Assume, the point $A$ is located at $({x}_{1},{y}_{1})$ and point $B$ is located at $({x}_{2},{y}_{2})$ geometrically. Draw a line from point $A$ towards right side and also draw a line from point $B$ downwards. The line drawn from point $A$ and the line drawn from point $B$ get intersected perpendicularly at a point, which is assumed to call point $C$. It formed a right angled triangle $\Delta BAC$ and assume the angle between hypotenuse and adjacent side is theta $(\theta )$ .

- The distance between points $A$ and $B$ forms a line segment $\stackrel{\u203e}{AB}$, which becomes hypotenuse of the right angled triangle $\Delta BAC$.
- The distance between points $B$ and $C$ forms a line segment $\stackrel{\u203e}{BC}$, which becomes opposite side of the right angled triangle $\Delta BAC$.
- The distance between points $A$ and $C$ forms a line segment $\stackrel{\u203e}{AC}$, which becomes adjacent side of the right angled triangle $\Delta BAC$.

Consider a point on the straight line and assume it is called as point $D$. Let us assume, the coordinates of the point $D$ is $(x,y)$. The point $D$ is a general point which represents each and every point on the straight line including point $A$ and $B$. Draw a line from $D$, perpendicular to the line segment $\stackrel{\u203e}{CE}$. Thus, it forms a line segment $\stackrel{\u203e}{DE}$ and also forms another right angled triangle $\Delta BDE$.

- The distance from point $D$ to $B$ forms a line segment $\stackrel{\u203e}{DB}$, which is known hypotenuse of the right angled triangle $\Delta BDE$.
- The distance from point $B$ to $E$ forms a line segment $\stackrel{\u203e}{BE}$, which is known opposite side of the right angled triangle $\Delta BDE$.
- The distance from point $D$ to $E$ forms a line segment $\stackrel{\u203e}{DE}$, which is known adjacent side of the right angled triangle $\Delta BDE$.

According to above geometrical figure, the line segment $\stackrel{\u203e}{DE}$ is parallel to the line segment $\stackrel{\u203e}{AC}(\stackrel{\u203e}{DE}||\stackrel{\u203e}{AC})$ and the line segment $\stackrel{\u203e}{DB}$ is part of the line segment $\stackrel{\u203e}{AB}$. Therefore, the angle made by the line segment $\stackrel{\u203e}{DB}$ is exactly equal to the angle made by the straight line $\overleftrightarrow{AB}$ with the horizontal axis. Thence, the angle made by the line segment $\stackrel{\u203e}{DB}$ with the horizontal axis is also theta $(\theta )$ because triangle $\Delta BDE$ and triangle $\Delta BAC$ are similar triangles. It means the angle $\angle BDE=\angle BAC=\theta $.

The length of the line segment $\stackrel{\u203e}{AC}$ is $AC=OC\u2013OA={x}_{2}\u2013{x}_{1}$

The length of the line segment $\stackrel{\u203e}{DE}$ is $DE=OE\u2013OD={x}_{2}\u2013x$

The length of the line segment $\stackrel{\u203e}{BE}$ is $BE=OB\u2013OE={y}_{2}\u2013y$

The length of the line segment $\stackrel{\u203e}{BC}$ is $BC=OB\u2013OC={y}_{2}\u2013{y}_{1}$

According to the right angled triangle $\Delta BAC$,

$\mathrm{tan}\theta =\frac{\mathrm{BC}}{\mathrm{AC}}$

$\Rightarrow \mathrm{tan}\theta =\frac{{y}_{2}\u2013{y}_{1}}{{x}_{2}\u2013{x}_{1}}$

According to the right angled triangle $\Delta BDE$,

$\mathrm{tan}\theta =\frac{\mathrm{BE}}{\mathrm{DE}}=\frac{{y}_{2}\u2013y}{{x}_{2}\u2013x}$

According to above both two trigonometric ratio expressions, the both expressions of trigonometric ratio tangent can be equated because they both are same.

$\frac{{y}_{2}\u2013{y}_{1}}{{x}_{2}\u2013{x}_{1}}=\frac{{y}_{2}\u2013y}{{x}_{2}\u2013x}$

Apply the principle of cross multiplication and then perform the multiplication.

$\Rightarrow ({y}_{2}\u2013{y}_{1}).({x}_{2}\u2013x)=({y}_{2}\u2013y).({x}_{2}\u2013{x}_{1})$

$\Rightarrow {y}_{2}.{x}_{2}\u2013{y}_{2}.x\u2013{y}_{1}.{x}_{2}+{y}_{1}.x={y}_{2}.{x}_{2}\u2013{y}_{2}.{x}_{1}\u2013y.{x}_{2}+y.{x}_{1}$

Bring all terms of right hand side to left hand side.

$\Rightarrow {y}_{2}.{x}_{2}\u2013{y}_{2}.x\u2013{y}_{1}.{x}_{2}+{y}_{1}.x\u2013{y}_{2}.{x}_{2}+{y}_{2}.{x}_{1}+y.{x}_{2}\u2013y.{x}_{1}=0$

It can be written as follows.

$\u2013{y}_{2}.x+{y}_{1}.x+y.{x}_{2}\u2013y.{x}_{1}\u2013{y}_{1}.{x}_{2}+{y}_{2}.{x}_{1}+{y}_{2}.{x}_{2}\u2013{y}_{2}.{x}_{2}=0$

${y}_{2}.{x}_{2}$ terms are appearing in the expression twice with opposite signs. So, they both get cancelled each other.

$\u2013{y}_{2}.x+{y}_{1}.x+y.{x}_{2}\u2013y.{x}_{1}\u2013{y}_{1}.{x}_{2}+{y}_{2}.{x}_{1}=0$

Now, take common $x$ and $y$ from terms for writing the expression in simple and standard form.

$(\u2013{y}_{2}+{y}_{1})x+({x}_{2}\u2013{x}_{1})y+(\u2013{y}_{1}.{x}_{2}+{y}_{2}.{x}_{1})=0$

The coefficients of variables $x$ and $y$ and remaining part are constants in value. So, we can represent them by some assumed constants.

Assume,

$a=\u2013{y}_{2}+{y}_{1},b={x}_{2}\u2013{x}_{1}$ and $c=\u2013{y}_{1}.{x}_{2}+{y}_{2}.{x}_{1}$

Now, the linear expression can be written in a simple form.

$ax+by+c=0$

This linear algebraic form expression represents a straight line in standard form. In this way, the linear equation of a straight line in general form is derived in geometry.