Combine linear functions f and g by adding, subtracting, multiplying or dividing them, then evaluate the result at any x, with the steps shown.

Operations Functions Calculator

Enter two linear functions and an x value to get (f+g)(x), (f−g)(x), (f·g)(x) or (f/g)(x) — with f(x) and g(x) shown separately first.

Free to use All 4 operations Intermediate values shown Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for f(x) slope a (f = ax + b).

Enter a valid value for f(x) constant b.

Enter a valid value for g(x) slope c (g = cx + d).

Enter a valid value for g(x) constant d.

Enter a valid value for evaluate at x.

Enter a valid value for operation.

Combines f and g, then evaluates the combined function at x.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Operations Functions Calculator tinyexe.comFree online calculators

TinyExe · Operations Functions Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

f(x) slope a (f = ax + b)

—

f(x) constant b

—

g(x) slope c (g = cx + d)

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Operations Functions Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      Operations on functions combine two functions at the same input: (f+g)(x) is f(x) plus g(x), and likewise for subtraction, multiplication and division. With f(x) = 2x + 3 and g(x) = x - 4, at x = 5, f is 13 and g is 1, so the sum is 14 and the product is 13.

      • Combine the outputs at the same x value
      • Division is undefined wherever g(x) = 0
      • (f x g)(x) is not composition f(g(x))
      • This tool is scoped to linear f and g

      The four function operations

      Reference values for this calculator.

      OperationMeaningAt x=5 (f=13, g=1)
      (f + g)(x)add the outputs14
      (f - g)(x)subtract the outputs12
      (f x g)(x)multiply the outputs13
      (f / g)(x)divide the outputs13

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      For f(x) = ax + b and g(x) = cx + d: (f+g)(x) = f(x)+g(x) ; (f-g)(x) = f(x)-g(x) ; (f x g)(x) = f(x) x g(x) ; (f/g)(x) = f(x)/g(x), g(x) != 0

      Scoped honestly to the linear-function operations taught in algebra class, and it shows f(x) and g(x) separately before combining — the step students skip. Division refuses x values where g(x) is zero instead of printing infinity.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Adding two functions

      f = 2x + 3, g = x - 4, x = 5, add

      CalculationSteps
      f(5) = 13 and g(5) = 1, so (f+g)(5) = 13 + 1 = 14.(f+g)(5) = 14.

      Result

      Example 2

      Multiplying two functions

      f = 2x + 3, g = x - 4, x = 2, multiply

      CalculationSteps
      f(2) = 7 and g(2) = -2, so (f x g)(2) = 7 x -2 = -14.(f x g)(2) = -14.

      Result

      Example 3

      Dividing two functions

      f = 2x + 3, g = x - 4, x = 5, divide

      CalculationSteps
      f(5) = 13 and g(5) = 1, so (f/g)(5) = 13 / 1 = 13.(f/g)(5) = 13.

      Result

      How to use this calculator

      Step 1

      Enter f as a and b in f(x) = ax + b.

      Step 2

      Enter g as c and d in g(x) = cx + d.

      Step 3

      Choose the operation: add, subtract, multiply or divide.

      Step 4

      Enter the x value to evaluate at.

      Step 5

      Press Calculate to see f(x), g(x) and the combined result.

      In short: Function operations define new functions by applying ordinary arithmetic to the outputs of two functions at the same input.

      Frequently asked questions

      Is (f x g)(x) the same as f(g(x))?

      No. (f x g)(x) multiplies the two outputs; f(g(x)) is composition, where g's output becomes f's input — a different operation with its own tool (the f∘g calculator).

      Why is division sometimes undefined?

      (f/g)(x) divides by g(x). Wherever g(x) = 0 the quotient has no value, so the calculator reports it as undefined at that x rather than inventing a number.

      Do I combine the formulas or the values first?

      Either route gives the same answer for these operations. This calculator evaluates f(x) and g(x) first, then combines, because it makes errors easier to spot.

      Can it handle quadratics or square roots in f and g?

      No — this version is scoped to linear f and g, which is the standard textbook operations unit. The formula pattern is identical for richer functions, but they are not entered here.

      What does the domain of (f/g) exclude?

      Every x where g(x) = 0. For g(x) = x - 4, that is x = 4; the combined function exists everywhere else.

      About this calculator

      An operations-on-functions calculator builds a new function from two existing ones by adding, subtracting, multiplying or dividing their outputs at the same input, then evaluates that combined function at the x you choose. It shows f(x) and g(x) individually first, because most errors in this topic happen before the combining step.

      Each operation is defined pointwise: the combined function at x uses only the two output values at that same x. (f+g)(5) needs f(5) and g(5) and nothing else — there is no interaction between different inputs. That is what separates operations from composition, where the output of one function feeds the input of the other.

      Division carries the one real subtlety: (f/g)(x) inherits every restriction of division itself. Wherever g(x) = 0, the combined function simply does not exist, and that x must be excluded from its domain even though f and g are each defined there.

      For linear f and g the combined functions stay simple: sums and differences are linear, products are quadratic, and quotients are rational functions. Seeing f(5) = 13 and g(5) = 1 before the final 14 makes the arithmetic auditable line by line.

      Use it for college-algebra homework and exam practice on (f+g), (f−g), (f·g) and (f/g), for checking hand-worked answers, and for finding the x values a quotient excludes from its domain. It is scoped to linear functions, the form used in the standard teaching unit.

      How to calculate it yourself

      Step 1

      Write f and g in the form ax + b and cx + d and note the four coefficients.

      Step 2

      Evaluate f at your x: multiply a by x and add b.

      Step 3

      Evaluate g at your x the same way.

      Step 4

      Apply the chosen operation to the two output values.

      Step 5

      For division, first check g(x) is not zero — if it is, the answer is undefined.

      Real-life examples

      Two tariff plans combined

      A courier's fuel cost per delivery is f(x) = 2x + 3 dollars and a toll pass amortises to g(x) = x - 4 dollars of credit at route length x = 5; dispatch wants the net combined figure.

      f(5) = 13 and g(5) = 1. Added as a combined cost model at x = 5: (f+g)(5) = 14 dollars.

      Dispatch budgets $14 per delivery at that route length under the combined model.

      Checking a student's quotient

      A student claims (f/g)(5) = 13 for f = 2x + 3 and g = x - 4, but is unsure because g looks negative in the formula.

      g(5) = 5 - 4 = 1, which is positive at this x, and f(5) = 13, so the quotient is 13 / 1 = 13.

      The student's answer is confirmed — and the real exclusion to note is x = 4, where g is zero.

      Ideas & use cases

      • Domain hunt: with division selected, test x values near the root of g to see exactly where the calculator declares the quotient undefined.
      • Product behaviour: run multiply at several x values (0, 2, 5) to watch the quadratic product change sign as g crosses zero.
      • Reverse-check homework: enter your textbook's f and g, then compare all four operations at the same x against your written answers.

      Limitations & sources

      • Linear f and g only; composition is deliberately excluded (use the f∘g calculator), and no graphing or symbolic simplification of the combined formula is offered.

      Sources: Standard college-algebra definitions of arithmetic combinations of functions (e.g. OpenStax College Algebra, functions chapter)

      Operations Functions Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results