Lesson 5: Modelling with piece-wise functions

When is the flat-rate rideshare cheaper?

SkillPiece-wise models

Worked example

  • Complex unfamiliar

Two rideshare companies price trips differently.

  • Company A: a $3.60 booking fee, then $2.20 per km for the first 10 km and $1.50 per km for each km beyond that.
  • Company B: a $5 booking fee, then $2 per km.

For what lengths of trip is Company B cheaper?

1 of 6 steps
  1. Step 1: Model Company A as a piece-wise function

    For 0≤d≤100 \le d \le 10: A(d)=3.6+2.2dA(d) = 3.6 + 2.2d. At d=10d = 10 this is $25.60\$25.60, so for d>10d > 10: A(d)=25.6+1.5(d−10)=10.6+1.5dA(d) = 25.6 + 1.5(d - 10) = 10.6 + 1.5d.

    A(d)={3.6+2.2d,0≤d≤1010.6+1.5d,d>10A(d) = \begin{cases} 3.6 + 2.2d, & 0 \le d \le 10 \\ 10.6 + 1.5d, & d > 10 \end{cases}

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Write each pricing scheme as a function of distance, piece by piece.

  2. Compare the models separately on each piece's domain.

  3. Keep only the solutions that lie in each piece's domain, then combine them.

  4. Check one distance in each region, and answer in context.

Watch out for

  • Using $1.50 per km for the whole trip once it passes 10 km, instead of only for the kilometres beyond 10.

  • Comparing only the first pieces and concluding that B is cheaper for every trip over 7 km.

Save your progress with a free account