Last updated: October 22, 2026 · Written by the Math Made Easy math teachers

Looking for algebra 1 building functions? Then this Algebra 1 lesson on Building Functions from Real Situations explains each idea step by step, with worked examples.
Quick answer: To build a function, name the input and the output and describe how the output is calculated, with an explicit or a recursive rule. Functions can be added, subtracted and multiplied, as in profit = revenue − cost. The inverse of a linear function comes from solving y = f(x) for x.
Standards: F-BF.A.1a, F-BF.A.1b, F-BF.B.4a, F-LE.A.1b · Level: Grade 9 Algebra 1
How do you build a function from a situation?
To build a function, decide what the input and output are, then describe how the output is calculated. A rental shop charges a $25 fee plus $4 per hour. With h hours as the input, the output is C(h) = 25 + 4h.
- Explicit: C(h) = 25 + 4h, which gives any output directly.
- Recursive: C(0) = 25 and C(h) = C(h − 1) + 4, the starting value plus a rule for the next one.
- Steps: multiply hours by 4, then add 25.
When is a function linear?
A function is linear when its output changes by a constant amount for each equal step in the input, which is a constant rate per unit interval. The table 0 → 5, 2 → 11, 4 → 17 changes by 6 for every 2 units, so the rate is 3 per unit and y = 3x + 5.
How do you combine functions?
(f + g)(x) = f(x) + g(x)
(f − g)(x) = f(x) − g(x)
(f · g)(x) = f(x) · g(x)
In business, profit is revenue minus cost: P(x) = R(x) − C(x). With R(x) = 15x and C(x) = 200 + 7x, the profit is 8x − 200. It is zero at the break-even point x = 25.
How do you find the inverse of a linear function?
- Write y = f(x).
- Swap the roles: solve the equation for x in terms of y.
- Rename the variable: write the result as f⁻¹(x).
- Check that f(f⁻¹(x)) = x.
f(x) = 2x − 4. Set y = 2x − 4, so x = y + 42. The inverse is f⁻¹(x) = x + 42. Check: f(2) = 0 and f⁻¹(0) = 2.
The symbol f⁻¹(x) does not mean 1 ÷ f(x). It names the function that undoes f.
To undo a recipe, reverse the steps and the operations: if f multiplies and then adds, the inverse subtracts and then divides.
- Explicit rules give any output directly; recursive rules build each output from the previous one.
- A constant rate of change per unit interval gives a linear function.
- Profit = revenue − cost, so P(x) = R(x) − C(x).
- The inverse of a linear function undoes it: solve y = f(x) for x.
- The graph of an inverse is the mirror image of f over the line y = x.
Building Functions from Real Situations: frequently asked questions
What is the difference between an explicit and a recursive rule?
An explicit rule such as f(n) = 25 + 4n computes any output directly from n. A recursive rule gives the starting value and tells how to get each term from the one before it.
How do you know a situation is linear?
The quantity changes by the same amount for each equal step in the input, such as $4 per hour. That constant rate is the slope of the linear function.
How do you combine two functions?
Add, subtract or multiply their outputs for the same input. For example, profit is revenue minus cost, so P(x) = R(x) − C(x).
How do you find the inverse of a linear function?
Write y = f(x), solve for x, and then write the answer as a function of x. The inverse undoes the steps of f in the reverse order.
What does it mean to solve f(x) = c?
It means finding the input x that produces the output c. For a linear function this is the same as evaluating its inverse at c.
