Question
Question: The line \[y = mx + c\] passes through \[(2,5)\] and \[(4,13)\]. Find \[m\] and \[c\]....
The line y=mx+c passes through (2,5) and (4,13). Find m and c.
Solution
To find the value of m and c for the line y=mx+c which passes through (2,5) and (4,13), we will first put the point (2,5) and then (4,13) in the equation of line y=mx+c. Putting these points will give two linear equations in terms of m and c. We will solve these obtained linear equations to find the value of m and c.
Complete step by step answer:
The given two points on coordinate axes are shown below.
Putting (2,5) in equation y=mx+c, we get
⇒5=m×2+c
On simplification,
⇒5=2m+c
On rewriting the above equation, we get
⇒2m+c=5
Taking 2m from L.H.S. to R.H.S., we get
⇒c=5−2m−−−(1)
Putting (4,13) in equation y=mx+c, we get
⇒13=m×4+c
On simplification,
⇒13=4m+c
On rewriting the above equation, we get
⇒4m+c=13−−−(2)
Putting (1) in (2),
⇒4m+(5−2m)=13
On solving,
⇒2m+5=13
Taking 5 from L.H.S. to R.H.S.
⇒2m=13−5
On solving we get
⇒2m=8
Dividing both the sides by 2, we get
⇒m=28
⇒m=4
Putting the value of m in (1),
⇒c=5−(2×4)
On solving,
⇒c=5−8
⇒c=−3
Therefore, m is 4 and c is −3 for the line y=mx+c which passes through (2,5) and (4,13).
Note:
We can also solve this problem by first finding the slope (m) of the line using given two points and then putting any one of the given points and the obtained value of slope in the equation y=mx+c to find the value of c.
As we know that slope (m) of the line y=mx+c passing through (x1,y1) and (x2,y2) is given by m=x2−x1y2−y1.
Therefore, slope (m) of the line y=mx+c passing through (2,5) and (4,13) is
⇒m=4−213−5
On solving,
⇒m=28
⇒m=4
Therefore, m=4.
Now putting m=4 and (2,5) in the equation of the line y=mx+c, we get
⇒5=4×2+c
On simplification,
⇒5=8+c
Taking 8 from R.H.S. to L.H.S.
⇒5−8=c
∴c=−3
Hence, the value of m is 4 and c is −3.