How to use the calculator
Choose what you want to do, type the rule for f(x) and fill in the number boxes that appear. The boxes change with the task. Evaluating needs one x value. A table needs a start, an end and a step. Finding zeros or features needs an interval to search. The two-function tasks show a second box for g(x).
| Option | Result |
|---|---|
| Evaluate | The value f(a), the substitution written out, and the reason if the value is undefined |
| Value table | Inputs, outputs and the change between rows, plus a note when the pattern is linear or always rising or falling |
| Key features | Domain, intercepts, turning points, symmetry, where the function rises and falls, and its lowest and highest values on the interval |
| Zeros and f(x) = k | Every crossing found in the interval, with breaks such as asymptotes flagged rather than mistaken for answers |
| Average rate of change | The slope between two points on the graph, drawn as a secant line |
| Composition and arithmetic | The combined formula, expanded when both parts are polynomials, its value at your x and its domain |
What a function is
A function pairs every input it accepts with one, and only one, output. Writing f(x) = x² − 4 names the rule f and says what to do to the input: square it, then subtract 4. The notation f(3) means “the output when the input is 3”, so f(3) = 9 − 4 = 5. It does not mean f multiplied by 3.
The same idea is everywhere outside a maths lesson. A spreadsheet formula that turns hours into pay is a function. So is a shipping table that turns a parcel’s weight into a price, or a line of code that converts a temperature. Thinking of each one as “input in, one answer out” makes them easier to combine and check.
Domain: which inputs are allowed
The domain is the set of inputs the rule can accept and still give a real number. Three things cause most problems:
- Division by zero. In 1/(x − 2), the input 2 is not allowed.
- Square roots of negatives. In √(x − 2), x must be at least 2.
- Logarithms of zero or negatives. In ln(x + 3), x must be greater than −3.
The calculator reads these conditions from your expression and lists them. When a value is undefined, it tells you which of these rules broke, so you are not left with a blank cell and no explanation. Trigonometric functions add their own limits: tan is undefined wherever cos is zero, and asin and acos only accept inputs from −1 to 1.
Composition: one function inside another
In f(g(x)), g does its job first and its answer becomes the input to f. To turn that into a single formula, go through f and, wherever it has an x, write g(x) in brackets instead. With f(x) = x² + 1 and g(x) = 2x − 3, that gives f(g(x)) = (2x − 3)² + 1, which expands to 4x² − 12x + 10.
Order nearly always matters. In the example above, g(f(x)) = 2(x² + 1) − 3 = 2x² − 1, a different function. The domain of a composition also needs care. An input must be allowed in the inner function, and the inner function’s output must be allowed in the outer one. The calculator checks both and shows the combined condition.
It also helps to run composition backwards. A formula such as √(3x + 1) can be read as f(g(x)) with g(x) = 3x + 1 and f(x) = √x. Spotting that split is the key step in the chain rule later on.
Adding, subtracting, multiplying and dividing functions
(f + g)(x) simply means f(x) + g(x), and the same goes for the other three operations. A common real case is profit: revenue minus cost, written as (R − C)(x). The combined function is only defined where both parts are defined. Division also rules out every input that makes g(x) zero, even if a factor later cancels. For (x² − 9) ÷ (x − 3), the simplified result is x + 3, but x = 3 stays excluded.
Average rate of change
The average rate of change from x = a to x = b is [f(b) − f(a)] ÷ (b − a). Geometrically, it is the slope of the straight line joining those two points on the graph. Its units are output units per input unit: metres per second, pounds per item or degrees per hour. For a straight-line function it is the same everywhere. For a curve it depends on the interval, which is what the derivative later makes precise.
Reading patterns in a value table
A table with equal steps in x tells you a lot about the rule behind it:
- If the outputs change by the same amount each row, the function is linear.
- If the changes themselves change by a fixed amount, the function is quadratic.
- If each output is the previous one multiplied by the same factor, the function is exponential. For 3 · 2^x, every output doubles.
The change column in the calculator’s table makes the first two patterns easy to spot.
Key features of a graph
The y-intercept is f(0). The x-intercepts, also called zeros or roots, are where f(x) = 0. A turning point is a local maximum or minimum, where the function switches between increasing and decreasing. An even function, such as x², is a mirror image either side of the y-axis. An odd function, such as x³, looks the same after a half-turn about the origin.
Apart from the domain and symmetry, these features are found numerically within the interval you choose. A point outside the interval will not appear, so widen the search if the graph suggests there is more to find.
Worked examples
A small business profit model
Suppose the weekly profit from selling x items is P(x) = −2x² + 120x − 1000. Setting P(x) = 0 gives x² − 60x + 500 = 0, so the break-even points are x = 10 and x = 50. The turning point is at x = 120 ÷ 4 = 30, where P(30) = 800. Selling 30 items maximises profit. Selling more than 50 runs at a loss, perhaps because extra stock needs overtime. Between 10 and 30 items, the average rate of change is (800 − 0) ÷ 20 = 40 per extra item.
A membership discount and a booking fee
A cinema gives members 25% off, g(x) = 0.75x, and adds a booking fee of 2, f(x) = x + 2. For a 40 basket, f(g(40)) = 30 + 2 = 32 if the fee is added after the discount. If the fee is added first and the discount then covers the whole bill, g(f(40)) = 0.75 × 42 = 31.50. As formulas, f(g(x)) = 0.75x + 2 and g(f(x)) = 0.75x + 1.5. The two rules are identical; only the order changes, and the order decides whether the fee gets discounted too.
Chaining unit conversions
Kelvin to Celsius is g(x) = x − 273.15, and Celsius to Fahrenheit is f(x) = 1.8x + 32. The composition f(g(x)) = 1.8x − 459.67 converts kelvin straight to Fahrenheit. A room at 300 K is about 80.33 °F.
When does a balance reach a target?
An account starting at 1,000 that grows 3% a year has balance f(x) = 1000 · 1.03^x after x years. Solving f(x) = 1500 gives x ≈ 13.72. With interest added once a year, the balance first passes 1,500 after 14 years. The solver finds this by searching the interval, so it works for rules that have no tidy algebraic solution.
Everyday uses
Spreadsheets and code. Each formula cell and each function in a program takes inputs and returns an output. Composition is just one formula feeding another, and the domain rules explain errors such as #DIV/0! or NaN.
Pricing and budgeting. Discounts, tax, booking fees and currency conversion are all functions of a price. The order in which they are applied can change the total, as the cinema example shows.
Science and engineering. Distance as a function of time, dose as a function of body mass and output voltage as a function of input are all read, tabulated and graphed in the same way.
Common mistakes
- Treating f(x + 2) as f(x) + 2. The first shifts the input; the second shifts the output.
- Reading f(g(x)) as f(x) × g(x). Composition substitutes; it does not multiply.
- Writing f⁻¹(x) as 1/f(x). The inverse function undoes f, while 1/f(x) is a reciprocal.
- Typing sin x^2 when you mean (sin x)². The calculator reads sin x^2 as sin(x²), so use brackets to be clear.
- Mixing degrees and radians. Set the angle unit before working with sin, cos or tan.