Sure! Here is a diagram that shows a line with a gradient of 2 passing through the origin (0, 0). The line can be defined as y = 2x, where y is the vertical coordinate and x is the horizontal coordinate.
Here are three points that this line goes through:
(0, 0): This is the origin, where the line intersects both the x-axis and the y-axis.
(1, 2): This point is found by plugging in x = 1 into the equation of the line, which gives us y = 2 * 1 = 2.
(-1, -2): This point is found by plugging in x = -1 into the equation of the line, which gives us y = 2 * -1 = -2.
makefile
Copy code
y = 2x
graph:
y
|
| * (1, 2)
|
|
| * (0, 0)
|
| * (-1, -2)
|
------------------------------------- x