Add and Subtract Functions

Often you will use a function to describe curves and lines on a coordinate graph, as a function shows the relationship between the x and y coordinates. Just as you can add and subtract numbers, you can add or subtract functions. You might need to add or subtract functions when working with differing rates, scales, or measurements. Performing simple operations on functions is no more complicated than performing those operations on numbers.

Steps

Adding or Subtracting Functions without an Input

  1. Write out the functions that are being added or subtracted. Functions are usually stated as f(x) = relationship, where x is the variable input, and the relationship is stated as a formula for the variable x. [1] Since you are adding or subtracting more than one function, they will be labeled differently, most likely <math>f(x)</math> and <math>g(x)</math>.
    • For example, you might be asked to add the function <math>f(x) = 3x+2</math>, and the function <math>g(x) = 4-5x</math>.
    • If you are being asked to add, you will often be asked to find <math>(f+g)x</math>.
    • If you are being asked to subtract, you will often be asked to find <math>(f-g)x</math>.
  2. Reorder the functions by degree of terms. This means ordering the formula by exponents, beginning with the largest exponent (<math>x^{3}, x^{2}, x,</math> etc.). If there is no exponent, order the first-degree term first (x), followed the constants (numbers without variables).
    • For example, the function <math>g(x)</math> would be reordered as <math>-5x+4</math>. The f(x) function is already ordered by degree of terms.
  3. Create an addition or subtraction problem using the two formulas. You can add/subtract horizontally or vertically, since you have ordered the functions by terms.
    • For example, your function can be set up as <math>(f + g)x = (3x + 2) + (-5x + 4)</math>,
      or it could be set up vertically, with like terms lined up:
      <math>+\begin{matrix} 3x & + & 2 \\ -5x & + & 4 \end{matrix}</math>.
  4. Add or subtract like terms. It is helpful to add/subtract in order of the degree of terms, beginning with the highest exponent (if any). [2]
    • For example, for <math>(f + g)x = (3x + 2) + (-5x + 4)</math>, you would first add the first-degree terms:
      <math>3x + (-5x) = -2x</math>.
      Second, you would add the constants:
      <math>2 + 4 = 6</math>.
      So <math>(f + g)x = -2x + 6</math>.
  5. Follow the same process for adding or subtracting more than two functions. Adding or subtracting functions is always just a matter of adding/subtracting the like terms in the relationship formulas.

Adding or Subtracting Functions with the Same Input

  1. Add or subtract the functions, as described in Method 1. This will give you the formula relationship for your variable input (x).
    • For example, you might find that <math>(f + g)x = -2x+6</math>.
  2. Plug in the variable. Remember, this method only works if you are adding/subtracting functions with the same input variable.
    • For example, you might be asked to find <math>(f + g)(2)</math>. Your added function would then look like <math>(f + g)(2) = -2(2) + 6</math>.
  3. Complete the calculation. Remember to use the order of operations.
    • For example:
      <math>(f + g)(2) = -2(2) + 6</math>
      <math>(f + g)(2) = -4 + 6</math>
      <math>(f + g)(2) = 2</math>.

Adding or Subtracting Functions with Different Inputs

  1. Plug the appropriate variable into the first function and solve. Since you are working with two different variables (inputs), you cannot add the formulas and plug in one input, you have to complete one function at a time.[3]
    • For example, if you are given <math>f(x) = 3x + 2</math> and <math>g(x) = 4 - 5x</math>, and are asked to find <math>f(2) + g(3)</math>, you would start by finding <math>f(2)</math>. When you plug in the 2, you get:
      <math>f(2) = 3(2) + 2</math>
      <math>f(2) = 6 + 2</math>
      <math>f(2) = 8</math>.
  2. Plug the appropriate variable into the second function and solve. Make sure you are plugging in the correct variable to the correct function.
    • For example, if <math>g(x) = 4 - 5x</math>, then:
      <math>g(3) = 4 - 5(3)</math>
      <math>g(3) = 4 - 15</math>
      <math>g(3) = -11</math>
  3. Add or subtract the two outputs. The result will be the sum or difference of the two functions, given the provided variables.
    • For example, if <math>f(2) = 8</math> and <math>g(3) = -11</math>, then:
      <math>f(2) + g(3) = 8 + (-11)</math>
      <math>f(2) + g(3) = -3</math>.

Things You'll Need

  • Pencil
  • Paper
  • Calculator (optional)

Related Articles

Sources and Citations