In mathematics, a linear equation is a type of equation. In a linear equation, both terms have to be constant. A linear equation is the equation of a straight line. This type of equation is written in the form: