Combining Functions Calculator
Type f(x) and g(x), pick a value for x, and get the sum, difference, product, and quotient at that point.
Adding, subtracting, multiplying, and dividing functions is a core algebra skill. Enter your functions above to see all four combinations evaluated at your chosen point. The lessons below build your understanding from the ground up.
What Does Combining Functions Mean?
In a typical algebra class, functions show up one at a time: find f(3), sketch the graph of g(x), solve an equation for x. Real life is rarely that tidy. A shop's profit is its revenue minus its cost, and both revenue and cost change with the number of items sold. The memory used on a phone is the sum of photos, apps, and videos, each growing in its own way. Whenever two changing quantities meet through addition, subtraction, multiplication, or division, you are combining functions.
This calculator handles the four classic combinations. Given two functions f and g and a chosen input value a, it works out each of the following: (f + g)(a) adds the two results, (f − g)(a) subtracts the second from the first, (f · g)(a) multiplies them, and (f / g)(a) divides the first by the second. The letter a is simply the x-value you are interested in — the single point where all four combinations are evaluated.
An important idea sits behind the notation: (f + g)(3) is exactly the same as f(3) + g(3). You evaluate each function on its own at x = 3, and only then do you combine the numbers. The calculator follows this order every time, which is why its answers always match careful hand arithmetic.
How to Use This Calculator
You only need to fill in three boxes, then press one button:
- f(x) box: type your first function, for example x^2.
- g(x) box: type your second function, for example 2*x+1.
- Value of x (a): type the number where the combinations should be evaluated, for example 3.
- Combine button: press it to see all four answers at once. The Reset button clears everything so you can start over.
Inside the expression boxes you may use:
- plain numbers such as 3 or 4.5,
- the variable x,
- the constants pi and e,
- the operators + − * / and ^ for powers,
- parentheses for grouping,
- the functions sqrt( ), sin( ), cos( ), tan( ), exp( ), ln( ) and abs( ).
So expressions like x^2+3*x-1, sqrt(x^2+1) or 2*pi*x are all fine. If something cannot be read, the calculator tells you which box has the problem instead of guessing.
Addition: (f + g)(a)
The sum of two functions is found point by point: evaluate both at a, then add. In symbols, (f + g)(a) = f(a) + g(a). Take the running example used throughout this article: f(x) = x2, g(x) = 2x + 1, and a = 3.
First, f(3) = 32 = 9. Next, g(3) = 2 · 3 + 1 = 7. Finally, add the two results: 9 + 7 = 16, shown by the calculator as 16.0000. Addition is the friendliest combination — it simply stacks the two quantities, like adding the heights of two growing plants measured on the same day.
Subtraction: (f − g)(a)
The difference works the same way, except the second value is taken away: (f − g)(a) = f(a) − g(a). Using the same functions at a = 3, we already know f(3) = 9 and g(3) = 7, so (f − g)(3) = 9 − 7 = 2, displayed as 2.0000.
Order is everything here. Subtraction is not symmetric: (g − f)(3) would be 7 − 9 = −2, a completely different answer. A common slip is reading “the difference of f and g” and subtracting in whichever order feels natural. Always subtract g(a) from f(a), exactly as the notation says.
Multiplication: (f · g)(a)
The product multiplies the two separate results: (f · g)(a) = f(a) · g(a). With f(3) = 9 and g(3) = 7, the product is 9 · 7 = 63, shown as 63.0000. Notice how much faster a product grows than a sum — the same two inputs that added to 16 multiply to 63.
A handy mental picture is the area of a rectangle: if one side has length f(a) and the other has length g(a), the product is the area. Whenever two factors scale together — price times quantity, length times width — you are looking at a product of functions.
Division: (f / g)(a)
The quotient divides the first result by the second: (f / g)(a) = f(a) / g(a), provided g(a) is not zero. For our example, (f / g)(3) = 9 / 7. Carrying out the division gives 1.2857142857…, a decimal that repeats forever, so the calculator rounds it to four places: 1.2857.
Division answers the question “how many g(a)-sized pieces fit inside f(a)?” Here, one full 7 fits inside 9 with a remainder, giving a value a little above 1. Like subtraction, division cares about order: (f / g)(3) = 9/7, while (g / f)(3) would be 7/9 ≈ 0.7778.
Why Division Sometimes Breaks: Domains
Three of the four combinations always work wherever f and g themselves work. Division is the exception, because dividing by zero has no meaning. If g(a) = 0, the quotient (f / g)(a) is undefined, and the calculator says so plainly instead of printing a nonsense number.
Try it: keep f(x) = x2, change g(x) to x − 3, and keep a = 3. Then g(3) = 3 − 3 = 0, and the quotient row reads undefined (division by zero) while the other three rows still compute normally — (f + g)(3) = 9, (f − g)(3) = 9, (f · g)(3) = 0.
Expressions can also fail inside a single function: the square root of a negative number and the logarithm of zero or a negative number are not real values. If f or g cannot be evaluated at your chosen a, the calculator reports which function is the problem so you can adjust the input or pick a different point.
Where Combining Functions Shows Up
These four operations are not just textbook exercises; they model how quantities interact. In business, profit is literally (revenue − cost)(items sold): two functions of sales volume combined by subtraction. Total takings at a market stall might be (price · quantity)(day), a product of two functions of the day.
Physics leans on combinations constantly. The net force on an object is the sum of the individual force functions acting on it. Power delivered by a motor can be written as a product of force and velocity functions. Even a noisy sensor reading is usefully thought of as (signal + noise)(time): the true measurement plus an unwanted wobble, combined by addition.
Seeing a formula as a combination of simpler functions is a genuine problem-solving skill. When a complicated expression looks intimidating, ask which two simpler functions were added, subtracted, multiplied, or divided to build it — the structure usually becomes clear at once.
Common Mistakes to Avoid
- Subtracting or dividing in the wrong order. (f − g)(a) means f(a) − g(a), never the reverse. Double-check which function the notation names first.
- Forgetting parentheses. Typing 2*x+1 is fine, but if you mean two times the whole quantity (x + 1), you must type 2*(x+1). Without the brackets, only the x gets doubled.
- Writing powers sloppily. x squared is x^2; typing xx or x2 will not be understood. The ^ symbol is the power operator here.
- Assuming the quotient always exists. If g(a) = 0, division is undefined — that is mathematics, not a calculator bug. Pick a different a or a different g.
- Confusing the product with composition. (f · g)(a) multiplies the two results, while f(g(a)) feeds one result into the other function. They are different operations with different answers.
Frequently Asked Questions
1. What does “combining functions” mean?
It means joining two functions with addition, subtraction, multiplication, or division to make a new combined value at a chosen point. For functions f and g and a value a, the four combinations are (f + g)(a), (f − g)(a), (f · g)(a), and (f / g)(a).
2. How do I type “x squared”?
Type x^2. The ^ symbol means “to the power of”, so x^2 is x squared and x^3 is x cubed. Higher powers work the same way, for example x^10.
3. Which symbols can I use in the expression boxes?
You can use numbers, the variable x, the constants pi and e, the operators + − * / ^, parentheses, and the functions sqrt( ), sin( ), cos( ), tan( ), exp( ), ln( ) and abs( ). Anything else will trigger a friendly error message.
4. What is the value “a”?
It is the single x-value where all four combinations are evaluated. If a = 3, the calculator finds f(3) and g(3) first, then combines those two numbers four different ways.
5. Why is (f − g)(3) equal to 2 and not −2?
Because subtraction follows the order in the notation: f(3) − g(3) = 9 − 7 = 2. Reversing the order would compute (g − f)(3) instead, which is a different question with the answer −2.
6. Why does the quotient row say “undefined”?
That happens when g(a) equals zero, since division by zero is not defined. For example, with g(x) = x − 3 and a = 3, g(3) = 0, so (f / g)(3) cannot be computed while the other three combinations still work.
7. Can I use decimal numbers?
Yes. Both the expressions and the value of x accept decimals, so f(x) = 0.5*x + 1.25 evaluated at a = 2.5 works exactly as you would expect.
8. What are pi and e?
They are famous mathematical constants built into the calculator: pi ≈ 3.14159 and e ≈ 2.71828. Typing 2*pi*x gives the circumference-style expression 2πx without you having to remember the digits.
9. Do I really need parentheses?
Often, yes. In 2*x+1 the multiplication happens before the addition, but 2*(x+1) adds first and then doubles. Parentheses tell the calculator exactly which grouping you intend.
10. What happens if I type something the calculator cannot read?
You get a clear message naming the problem box — for example, that f(x) could not be read — instead of a wrong answer. Fix the expression using the allowed symbols and press Combine again.
11. Can I combine more than two functions?
This calculator combines exactly two functions at a time. For three, combine the first two, note the kind of result you need, and then combine that idea with the third — for addition and multiplication the grouping does not change the final answer.
12. What is the difference between (f · g)(a) and f(g(a))?
(f · g)(a) multiplies the two separate results, f(a) × g(a). In contrast, f(g(a)) — called composition — takes the output of g and feeds it into f as its input. With f(x) = x2 and g(x) = 2x + 1 at a = 3, the product is 63 while the composition f(g(3)) = 72 = 49.
13. Why are the answers shown with four decimal places?
Four decimals keep results tidy and comparable while preserving enough precision for checking hand calculations. Values like 9/7 = 1.285714… are rounded to 1.2857 rather than printed out to a dozen digits.
14. Is (f + g)(3) the same as f(3) + g(3)?
Yes, exactly. That identity is the whole idea: combine the functions first and then evaluate, or evaluate first and then combine — you always land on the same number. The calculator evaluates each function separately and then applies the operation.
15. Can the calculator handle negative values of x?
Yes. Negative inputs work normally: with f(x) = x^2 at a = −3, f(−3) = 9, because a negative number squared is positive. Just type the minus sign in the value box.
Final Thoughts
Combining functions is where algebra starts to feel like building with blocks. Practice each operation until the patterns are automatic, always check domains at the end, and use the calculator to verify your hand work. Fluency here pays off in every calculus class to come.