Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

How do you write the equation of a line through $\left( 0,3 \right)$ and $\left( -2,5 \right)$?

Answer
VerifiedVerified
538.2k+ views
Hint: Here in this question first we have to find the slope of the line passing through the given points. To find the slope of a line passing through points $\left( {{x}_{1}},{{y}_{1}} \right)$ and $\left( {{x}_{2}},{{y}_{2}} \right)$we will use the formula $\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}$. Then by using the formula $\left( y-{{y}_{2}} \right)=\left( \dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}} \right)\left( x-{{x}_{2}} \right)$ we will find the equation of the line.

Complete step by step solution:
We have been given the points $\left( 0,3 \right)$ and $\left( -2,5 \right)$ on the line.
We have to find the equation of the line passing through the given points.
First we need to calculate the slope of the line.
Now, we know that the slope of a line passing through the points $\left( {{x}_{1}},{{y}_{1}} \right)$ and $\left( {{x}_{2}},{{y}_{2}} \right)$ is given by the formula $\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}$.
Now, we have ${{x}_{1}}=0,{{y}_{1}}=3,{{x}_{2}}=-2,{{y}_{2}}=5$
Now, substituting the values in the formula we will get
$\Rightarrow \dfrac{5-3}{-2-0}$
Now, simplifying the above obtained equation we will get
$\begin{align}
  & \Rightarrow \dfrac{2}{-2} \\
 & \Rightarrow -1 \\
\end{align}$
Now, the equation of the line will be
$\Rightarrow \left( y-{{y}_{2}} \right)=\left( \dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}} \right)\left( x-{{x}_{2}} \right)$
Now, substituting the values in the formula we will get
$\Rightarrow \left( y-5 \right)=-1\left( x-\left( -2 \right) \right)$
Now, simplifying the above obtained equation we will get
$\begin{align}
  & \Rightarrow y-5=-1\left( x+2 \right) \\
 & \Rightarrow y=-x-2+5 \\
 & \Rightarrow y=-x+3 \\
\end{align}$

Note: The point to be noted is that the equation of slope-intercept form of the line is given as $y=mx+c$, where m is the slope of the line and c is the y-intercept of the line. We can also use this form to find the equation of the line.