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:
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:
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:
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:
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.
F = 60 + 12 × d
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,
At d = 10.
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.
At d = 8.
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:
Move the d-terms to one side, the constants to the other:
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:
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:
- Electricity bill (BESCOM, MSEDCL, etc.): total = fixed monthly charge + per-unit rate × units consumed. Same line. Fixed charge is the y-intercept, per-unit rate is the slope.
- Mobile prepaid pack with extra data add-ons: total = pack price + per-GB top-up rate × extra GB. Same line.
- Auto fare in many cities: total = minimum fare for first 1.5 km + per-km rate beyond that. (Slightly more complex — it is a piecewise line — but each piece is still a line.)
- Gym joining fee + monthly subscription: total over n months = joining fee + monthly fee × n.
- A SIM card with daily data and a per-MB charge after the cap: the part after the cap is a line.
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
- NCERT Class 9 Mathematics, Chapter 4: Linear Equations in Two Variables. ncert.nic.in
- NCERT Class 10 Mathematics, Chapter 3: Pair of Linear Equations in Two Variables. ncert.nic.in