# Find the equation of the line that has a slope of 4 and a y-intercept of 2.

A straight line is a figure formed when two points are connected with minimum distance between them, and both the ends extended to infinity.

## Answer: The equation of the line that has a slope of 4 and a y-intercept of 2 is y = 4x + 2.

Let's look into the steps below.

**Explanation:**

Given: A line with a slope of 4 and a y-intercept of 2.

The slope of a line is defined as the change in y coordinate with respect to the change in x coordinate of that line.

Given two points (x_{1},y_{1}) and (x_{2},y_{2}), the slope is given using the slope formula,

Slope = m = tanθ = (y_{2} - y_{1}) / (x_{2} - x_{1})

The y-intercept is a point where the graph intersects the y-axis.

We know that the equation of a straight line is given as:

y = mx + c

Here,

- 'm' is the slope o the line.
- 'c' is the y-intercept.

For a line with a slope of 4 and a y-intercept of 2, we have m = 4 and c = 2

Thus, the equation of the line will be y = 4x + 2.

We can also use Cuemath's online equation of a line calculator to find the equation of a line.