What is the equation of the line with 5 and -3 as x- and y-intercept, respectively?
Is the answer $y = \frac{3}{5}x - 3$? I saw an example question online but I am not entirely sure with how you do this. Can anybody help?
What is the equation of the line with 5 and -3 as x- and y-intercept, respectively?
Is the answer $y = \frac{3}{5}x - 3$? I saw an example question online but I am not entirely sure with how you do this. Can anybody help?
On
There exists a general formula: if the $x$ and $y$-intercepts are $a\ne 0$ and $b\ne 0$ respectively, the line has equation $$\frac xa+\frac yb =1.$$ Apply it and rewrite it in the form $\; y=\dots$.
Another way to look at this is by considering the equation of any straight line to be $$y=mx+c$$ where $m$ is the gradient of the line and $c$ is the y-intercept of the line.
We are given that the $y$-intercept is $-3$ so we now know that our line has the equation $$y=mx-3$$
There are then 2 ways of finding the gradient of our line. The first is to substitute in known values of $x$ and $y$ and then solve the resulting equation. We could pick the point $(5,0)$, which is the $x$-intercept. This would give us \begin{align}y&=mx-3\\ 0&=m\times 5-3\\ 3&=5m\\ m&=\frac 35\end{align}
meaning that our final equation is, as you have found, $$y=\frac35x-3$$
We can also calculate the gradient from two points, using the equation $$m=\frac{y_2-y_1}{x_2-x_1}$$
Our two points are $(x_1,y_1)=(5,0)$ and $(x_2,y_2)=(0,-3)$
Putting this into the equation gives us \begin{align}m&=\frac{-3-0}{0-5}\\ &=\frac{-3}{-5}\\ &=\frac35\end{align}
which also results in the equation $$y=\frac35x-3$$