# What is the equation of the line with anxintercept of -2 and a y-intercept of 1?

Dec 23, 2016

The equation of line is $y = \frac{1}{2} x + 1$

#### Explanation:

Co-ordinate of x-intercept is $\left(- 2 , 0\right)$
Co-ordinate of y-intercept is $\left(0 , 1\right)$
The equation of line passing above point $0 , 1$ is $y - 1 = m \left(x - 0\right) \mathmr{and} y = m x + 1$
The slope of line passing above two points is $m = \frac{{y}_{2} - {y}_{1}}{{x}_{2} - {x}_{1}} = \frac{1 - 0}{0 - \left(- 2\right)} = \frac{1}{2}$

Hence the equation of line is $y = \frac{1}{2} x + 1$ graph{x/2+1 [-10, 10, -5, 5]} [Ans]