The slope of a Line
If we represent the distance y in terms of the time x, the slope of the line represents the speed of the object.
Concretely, if
y = mx
is the equation of the line, then m is the speed of the train.
Train A's motion is represented by:
y = 76x
This means that the speed of train A is 76 miles per hour.
We now need to find the speed of train B. That will be calculated from the graph of its motion. Select two points from it, for example, (0,0) and (1,74).
Calculate the slope with the formula:
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
Substituting:
![\begin{gathered} m=(74-0)/(1-0) \\ \text{Calculating:} \\ m=74\text{ mph} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/nhpvk4cpz7idepc55im88o6enst1ehgs1w.png)
The speed of train B is 74 miles per hour.
This means that Train A is faster than Train B