You open the Ola app, type a destination, and a fare estimate flashes back: ₹187. You change the drop pin to a place a kilometre further, refresh, and now it says ₹199. A pattern is hiding in those numbers, and once you see it, the entire app stops feeling like a black box.

Every ride-share fare in India — Ola, Uber, Rapido, BluSmart, Meru — follows the same rule:

\text{Fare} = \text{base fare} + \text{per-km rate} \times \text{distance}

That is a linear equation in two variables. It has the form F = c + md, where d is distance and F is fare. Compare with the algebra you have already met:

y = mx + c

Same equation. Different letters. The whole point of y = mx + c — the reason your textbook keeps drilling it — is that real systems all over your life are built this way, and the ride-share fare is the cleanest example you will ever meet.

In short

Every Ola/Uber/Rapido fare is a linear equation: F = c + md. Plot it with distance on the x-axis and fare on the y-axis and you get a straight line. The y-intercept c is the base fare — what the app charges the moment you book, before the wheels even move. The slope m is the per-km rate — how steeply your fare climbs with each extra kilometre. Two cab categories, two lines. Whichever line is lower at your distance is the cheaper ride.

Reading the line piece by piece

Take Ola Mini. The published rule (real numbers vary by city, but ₹60 base + ₹12/km is a typical Bengaluru rate) is:

F = 60 + 12d

The number 60 has a meaning you can hold in your hand: it is what shows up on the meter the instant the driver hits "Start trip". You have moved zero kilometres and you already owe ₹60. Why: the cab company has costs that don't depend on how far you go — the driver's time arriving, the app's commission, basic vehicle wear. The base fare covers those.

The number 12 has a different meaning: every kilometre you travel after that adds ₹12 to the fare. Why: per-km cost is mostly fuel and the driver's time-on-road. Both scale with distance, so they show up as the slope, not the intercept.

Plug in d = 10 km:

F = 60 + 12(10) = 60 + 120 = 180

A 10 km Ola Mini costs ₹180. Plug in d = 0, you get F = 60. Plug in d = 5, you get F = 120. Each (d, F) pair is a point. Plot them and they line up.

The interactive: drag the sliders, see what changes

The widget below lets you build your own ride-share. Drag the base fare slider and watch the line slide up and down — the steepness doesn't change, only where the line cuts the y-axis. Drag the per-km rate slider and the line tilts — the starting point stays the same, but the line gets steeper or shallower. Two specific fares (a 5 km ride and a 15 km ride) update live so you can feel what each parameter does to the bill.

distance (km) fare (₹) base ₹— 5 km → ₹— 15 km → ₹—

F = 60 + 12 × d

The red line is your fare formula. Slide base fare — the line slides vertically, slope unchanged. Slide per-km rate — the line pivots around the $y$-intercept, getting steeper or shallower. The two blue dots show what a 5 km ride and a 15 km ride cost under the current rule.

Try it: drop the per-km rate to ₹8 and the line is almost flat — a long ride barely costs more than a short one. Push it up to ₹25 and a 15 km ride suddenly hurts. That tilt is the slope, and the slope is the per-km rate. Nothing more, nothing less.

Three worked examples

Ola Mini in Bengaluru

Ola Mini publishes a base fare of ₹60 and a per-km rate of ₹12. Write the fare equation and find the cost of a 10 km ride.

Equation. With F for fare and d for distance,

F = 60 + 12d

At d = 10.

F = 60 + 12(10) = 60 + 120 = ₹180

Plotted, this is a line that crosses the y-axis at (0, 60) and rises by ₹12 for every step of 1 km along the x-axis. At d = 10, the line is at height 180 — the dot (10, 180) sits exactly on the line.

Uber Premier (a fancier ride)

Uber Premier charges a higher base fare — say ₹100 — and a higher per-km rate — say ₹18. Write the equation and find the cost of an 8 km ride.

Equation.

F = 100 + 18d

At d = 8.

F = 100 + 18(8) = 100 + 144 = ₹244

Compare the two equations side by side:

  • Ola Mini: F = 60 + 12d — lower intercept, gentler slope.
  • Uber Premier: F = 100 + 18d — higher intercept, steeper slope.

The Premier line starts higher and climbs faster. There is no distance at which it suddenly becomes the cheaper option — it loses on both counts.

When do two fares match? (And what if they never do?)

You want to know: at what distance does Ola Mini cost the same as Uber Premier? Set the two fares equal:

60 + 12d = 100 + 18d

Move the d-terms to one side, the constants to the other:

60 - 100 = 18d - 12d
-40 = 6d
d = -\frac{40}{6} \approx -6.67 \text{ km}

A negative distance has no real-world meaning — you cannot ride -6.67 km. The mathematical answer is telling you something physical: the two lines never cross at any positive distance. Ola Mini is always cheaper, no matter how long the ride. Both its intercept and its slope are lower, so its line stays below Uber Premier's line for every d \geq 0.

This is the picture worth keeping in your head: two lines on a graph, one strictly below the other. There is no break-even distance because there is no crossing.

Two fares on the same axes

Plot both lines together and the comparison becomes obvious — no algebra needed, just look:

Ola Mini and Uber Premier fare lines on the same axes — Premier sits strictly above Mini at every distance. Two straight lines on a fare-vs-distance plot. Both start at the y-axis, the lower (Ola Mini) at ₹60, the upper (Uber Premier) at ₹100. The Uber line rises more steeply and stays above the Ola line for all positive distances — no intersection. distance (km) fare (₹) 0 5 10 15 20 25 0 100 200 300 400 500 Ola Mini: F = 60 + 12d Uber Premier: F = 100 + 18d
Two fare lines, no crossing. The Ola Mini line (blue, lower) starts at ₹60 and climbs at ₹12/km. The Uber Premier line (red, upper) starts at ₹100 and climbs at ₹18/km. Premier is more expensive at $d = 0$ and grows faster, so it stays above Mini forever — no break-even point exists for $d \geq 0$.

If the two cab categories had been a different pair — say one had a low base but a high per-km rate, and the other had a high base but a low per-km — then the lines would cross. Below the crossing distance, the high-base option would be more expensive; above it, the high-per-km option would. That break-even distance is exactly the x-coordinate where the two lines meet.

Why this is the cleanest example of y = mx + c in your life

Once you see fare = base + rate × distance, you start spotting the same skeleton everywhere:

Every single one of these is the equation F = c + md wearing different clothes. That is the reason the textbook spends a whole chapter on y = mx + c — not because lines are mathematically deep on their own, but because so much of the real world is built out of "a fixed cost plus a rate times an amount". When you see the next bill that confuses you, write down y = mx + c, identify c (what you pay regardless), identify m (what each unit costs), and the rest is plotting.

Try this yourself

Open your last Ola or Uber receipt. The breakdown almost always shows the base fare and the per-km rate separately. Multiply the per-km rate by the kilometres travelled, add the base fare, and check whether the total matches the fare line of the equation F = c + md. (You will sometimes see extra add-ons — surge multiplier, GST, toll — which are separate corrections layered on top, but the core fare is always the line.)

Then try the same with your last electricity bill. The fixed charge sits at the bottom; the energy charge per unit is the slope. Plot a few months of consumption on a quick graph and see how close the points lie to the line they should sit on.

The fare line is the most concrete picture of y = mx + c you will ever carry around — one slider for what you pay before moving, one for what each kilometre costs, and the line tells you everything else.

References

  1. NCERT Class 9 Mathematics, Chapter 4: Linear Equations in Two Variables. ncert.nic.in
  2. NCERT Class 10 Mathematics, Chapter 3: Pair of Linear Equations in Two Variables. ncert.nic.in