Math Doubts

Equation of a straight line when line passes through origin with slope


$y \,=\, mx$

It is an equation of a straight line when a straight line passes through origin with some slope in two dimensional Cartesian coordinate system.


A straight line is passing through origin $(O)$ of the Bi-dimensional Cartesian coordinate system and $P$ is any point on the straight line. The straight line is represented by $\overleftrightarrow{OP}$ in geometry.

Geometric construction of a right triangle

slope origin form of line
  1. $O(0, 0)$ and $P(x, y)$ are points on the straight line in coordinate form in the two dimensional space.
  2. Assume, the angle made by the straight line with $x$-axis is theta and its slope is denoted by $m$.
  3. Draw a perpendicular line to $x$ axis from point $P$ and it intersects the horizontal axis at point $Q$ perpendicularly. Thus, it formed a right triangle, denoted by $\Delta QOP$ in geometric system.

Express slope of line in coordinate form

The slope of the straight line is $m$ and it is equal to the tan of angle theta.

$m \,=\, \tan{\theta}$

slope origin form of line

Now, find the value of $\tan{\theta}$ in terms of coordinates of right triangle $QOP$.

$\tan{\theta} \,=\, \dfrac{PQ}{OQ}$

$\implies \tan{\theta} \,=\, \dfrac{y}{x}$

Geometrically, tan of angle theta is equal to slope of straight line $m$.

$\,\,\, \therefore \,\,\,\,\,\, m \,=\, \dfrac{y}{x}$

Equation of a Line in Mathematical form

The equation of a straight line when a straight line passes through origin with some slope can be written in algebraic form from the mathematical relation of slope of line with coordinates of any point on that straight line.

$\,\,\, \therefore \,\,\,\,\,\, y \,=\, mx$

It is similar to the slope intercept form of a straight line. It can be derived from slope intercept form linear equation by placing zero as $x$ or $y$ intercept of the line.

Math Questions

The math problems with solutions to learn how to solve a problem.

Learn solutions

Math Worksheets

The math worksheets with answers for your practice with examples.

Practice now

Math Videos

The math videos tutorials with visual graphics to learn every concept.

Watch now

Subscribe us

Get the latest math updates from the Math Doubts by subscribing us.

Learn more

Math Doubts

A free math education service for students to learn every math concept easily, for teachers to teach mathematics understandably and for mathematicians to share their maths researching projects.

Copyright © 2012 - 2023 Math Doubts, All Rights Reserved