Question: what is the equation of a line that passes through the origin?
Answer: In general, therefore, the equation y = mx represents a straight line passing through the origin with gradient m. The equation of a straight line with gradient m passing through the origin is given by y = mx . Consider the straight line with equation y = 2x + 1.