Given:
The graph of cost of taxi with respect to number of miles.
To find:
The formula for C in terms of n.
Solution:
In the given graph x axis represents the number of miles (n) and y-axis represents the cost of taxi (C).
From the given graph it is clear that, the line passes through the points (0,3) and (5,6). So, the equation of line is
![y-y_1=\dfrac{y_2-y_1}{x_2-x_1}(x-x_1)](https://tex.z-dn.net/?f=y-y_1%3D%5Cdfrac%7By_2-y_1%7D%7Bx_2-x_1%7D%28x-x_1%29)
![y-3=\dfrac{6-3}{5-0}(x-0)](https://tex.z-dn.net/?f=y-3%3D%5Cdfrac%7B6-3%7D%7B5-0%7D%28x-0%29)
![y-3=\dfrac{3}{5}(x)](https://tex.z-dn.net/?f=y-3%3D%5Cdfrac%7B3%7D%7B5%7D%28x%29)
Adding 3 on both sides, we get
![y=\dfrac{3}{5}x+3](https://tex.z-dn.net/?f=y%3D%5Cdfrac%7B3%7D%7B5%7Dx%2B3)
Putting y=C and x=n, we get
![C=\dfrac{3}{5}n+3](https://tex.z-dn.net/?f=C%3D%5Cdfrac%7B3%7D%7B5%7Dn%2B3)
Therefore, the required formula is
.