The equation for a straight line is called a linear equation.
Its standard formula is y=mx+b, where m is the slope of the line and b is the y-intercept. This is called the slope-intercept form.
However, depending on the type of linear equation, you’ll come across many other formulas. For example,
The formula for a linear equation with point-slop form is: y – y1 = m(x – x1 )
In the case of a general slope, the formula is: Ax + By + C = 0
The intercept formula is: x/x0 + y/y0 = 1, where (x0, y0) is the intercept of x-axis and y-axis.