I have a graph which points are:

(-1,-2),(0,2),(1,4)

would the equation for this line be

y=3x+1

No. These points do not lie on a line. If you read the points off of a graph, you read them wrong.

To determine the equation of a line, we need at least two points. Let's start by checking if the given points lie on a straight line.

To do this, we can calculate the slope between each pair of points and see if they are equal. The slope of a line passing through two points (x1, y1) and (x2, y2) can be calculated using the formula:

slope = (y2 - y1) / (x2 - x1)

Let's calculate the slopes between the given points:

Slope between (-1, -2) and (0, 2):
slope1 = (2 - (-2)) / (0 - (-1))
= 4 / 1
= 4

Slope between (0, 2) and (1, 4):
slope2 = (4 - 2) / (1 - 0)
= 2 / 1
= 2

Since the slopes between these pairs of points are not equal (4 ≠ 2), it means that these points do not lie on the same straight line.

Therefore, we cannot determine the equation of the line passing through these points as there is no line that connects them.