Answer:
![y=2x-7](https://img.qammunity.org/2022/formulas/mathematics/high-school/5lk5wrsakkcs5aa2s5df8ih4q66tsstnn9.png)
Explanation:
The equation for a straight line is
![y=mx+c](https://img.qammunity.org/2022/formulas/mathematics/high-school/6buvazufj9jpawc3b8u6tzwneyfbz1lohi.png)
where m is the gradient and c is the y-intercept.
To have the full equation, we need to find m and c values.
To find m, the formula is
![(y_(2)-y_(1) )/(x_(2)-x_(1) )](https://img.qammunity.org/2022/formulas/mathematics/high-school/j00l0gv4ukoczmg4cxr4gb77bcnbgeyskh.png)
By substituting the two points (4,1) and (3,-1) into the formula, we get:
![m =(-1-1)/(3-4) \\m=(-2)/(-1) \\m=2](https://img.qammunity.org/2022/formulas/mathematics/college/xjr5qdaehidx19woklbymtgvbszxq3w4ag.png)
Now we have
![y=2x+c](https://img.qammunity.org/2022/formulas/mathematics/college/em9x7b8kgeal2nlmlww77pqjy0cp1df6d9.png)
To solve for c, substitute any of the two points in to the equation. Let's say we insert (4,1) into the equation:
![y=2x+c\\1=2(4)+c\\c=1-8\\c=-7](https://img.qammunity.org/2022/formulas/mathematics/college/m5448t13v5fcd3hfbggm09auzvqjwlwfmf.png)
Therefore, the full equation is
![y=2x-7](https://img.qammunity.org/2022/formulas/mathematics/high-school/5lk5wrsakkcs5aa2s5df8ih4q66tsstnn9.png)
Pro tip:
You can always substitute (4,1) or (3,-1) to check if the equation is correct.