# How do you write the equation of the line with slope 2 and passes through (-2,-5)?

Jun 10, 2016

$y = 2 x + 5$

#### Explanation:

Method 1

Substitute m, x and y into $y = m x + c$
You can solve for c:

$- 5 = \left(2\right) \left(- 2\right) + c \text{ } \Rightarrow - 5 = - 4 + c$
$c = - 1$
Equation: $y = 2 x - 1$

Or use the formula when slope and one point are given:
$y - {y}_{1} = m \left(x - {x}_{1}\right)$

$y - \left(- 5\right) = 2 \left(x - \left(- 2\right)\right)$
$\text{ } y + 5 = 2 \left(x + 2\right)$

$y = 2 x + 10 - 5$
$y = 2 x + 5$