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 Doubts

A best free mathematics education website that helps students, teachers and researchers.

Maths Topics

Learn each topic of the mathematics easily with understandable proofs and visual animation graphics.

Maths Problems

A math help place with list of solved problems with answers and worksheets on every concept for your practice.

Learn solutions

Subscribe us

You can get the latest updates from us by following to our official page of Math Doubts in one of your favourite social media sites.

Copyright © 2012 - 2022 Math Doubts, All Rights Reserved