The equation of the line passing through origin with slope = 1 is:
We are given that the slope m=1 and it passes through (x1, y1)=(0,0) .
Using the point-slope form of a line:
y−y1=m(x−x1)
The equation will be (y−0)=1(x−0) which can be written as y−x=0 or x−y=0.