Notes by Sara
Lesson 11
Functions · Notes by Sara

Can a raise leave you with less?

A common worry: "If my raise pushes me into a higher tax bracket, all my income gets taxed more, and I'll take home less." It isn't true, and by the end of this lesson you'll be able to show why with one kind of function.

The idea

A function is a rule that takes an input and gives exactly one output. It's written f(x), read "f of x". The brackets don't mean multiply: f(x) means "the rule f, applied to x". If f(x) = 2x + 5, then f(10) = 2 × 10 + 5 = 25.

Most finance functions come in three shapes:

Linearcost = 3,000 + 1.5xAdds the same amount each step. A straight line.
Quadraticrevenue = 100p − 10p2A curve that rises then falls. Raise the price too far and sales drop.
Exponentialvalue = 1,000 × 1.1xMultiplies by the same factor each step. Compound growth.

An inverse function runs a rule backward, turning the output back into the input. Logarithms are the inverse of exponents: one turns years into money, the other turns money into years. Dividing by 1.20 is the inverse of adding 20% tax.

Quick check

If f(x) = 2x + 5, what is f(6)?

Piecewise functions: tax brackets

A piecewise function uses different rules on different ranges of the input. Income tax is the classic case. These brackets are a made-up example. Real ones differ by country and year.

Part of your incomeTaxed at
First $10,00010%
$10,000 to $40,00020%
Above $40,00030%

Tax owed rises in three straight pieces, getting steeper at each bracket. It never jumps, so earning more never means keeping less.

Each rate applies only to the slice of income inside its bracket. So a raise from $39,500 to $40,500 is taxed at 20% on the first $500 and 30% on the last $500. You still keep more. The rate on your next dollar is the marginal rate. Your total tax divided by your income is the average rate.

Worked example

Example, with the made-up brackets above. How much tax is due on an income of $50,000?

1. First $10,000 at 10%$1,000
2. Next $30,000 at 20%$6,000
3. Last $10,000 at 30%$3,000
Total tax$10,000

The marginal rate is 30%, but the average rate is $10,000 ÷ $50,000 = 20%. Only the last $10,000 is taxed at 30%.

Try it yourself
Tax on any income, using the example brackets.
Tax
Average rate
Marginal rate
Common mistakes
Three slips beginners make.
  • Taxing all income at the top rate. Each rate applies only to its own slice of income.
  • Reading f(x) as f × x. The brackets mean "apply the rule to".
  • Mixing up marginal and average rates. Use the marginal rate to judge extra income. Use the average rate to compare your total tax bill.

Remember

  • A function turns each input into exactly one output: f(x).
  • Linear adds, exponential multiplies, quadratic rises then falls. An inverse runs a function backward.
  • Piecewise functions change rules by range. In tax, each rate applies only to its own slice.

Check yourself

Three questions. Try them without scrolling up.

1. Which kind of function grows by multiplying by the same factor each period?

2. With the example brackets, what is the tax on an income of $20,000?

3. What does an inverse function do?

Score: 0 of 3