// We want this curve to reach a value of 1 at its maximum in
// the 0 < r < 1 interval. So we'll need to find the maximum
// value in this interval, invert and multiply with the curve.
// Those interested in math might want to derive the invMax
// calculation below themselves by solving for f'(t) = 0
// and inserting into the function.