Given the two points (1,5) and (-2,-4), write a set of instructions, using formulas and the coordinates given, for your younger cousin that determines:1. slope of a line that passes through the 2 given points2. the equation of the line in slope intercept form (y=MX+b)

Respuesta :

Answer:

The slope of the line between the two points is;

[tex]m=3[/tex]

the slope-intercept form of the line joining the two points is;

[tex]y=3x+2[/tex]

Explanation:

Given the points;

[tex]\begin{gathered} (1,5) \\ \text{and} \\ (-2,-4) \end{gathered}[/tex]

1.

We want to find the slope, using the coordinates;

[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1}=\frac{-4-5}{-2-1}=\frac{-9}{-3} \\ m=3 \end{gathered}[/tex]

The slope of the line between the two points is;

[tex]m=3[/tex]

2.

Writing the equation in slope-intercept form;

[tex]y=mx+b[/tex]

Let us substitute the slope and the coordinates of a point into the point-slope form of a linear equation;

[tex]\begin{gathered} y-y_1=m(x-x_1) \\ m=3 \\ (x_1,y_1)=(1,5) \\ y-5=3(x-1) \\ y-5=3x-3 \\ y=3x-3+5 \\ y=3x+2 \end{gathered}[/tex]

Therefore, the slope-intercept form of the line joining the two points is;

[tex]y=3x+2[/tex]

ACCESS MORE
EDU ACCESS