Main content

## Algebra (all content)

# Adding and subtracting functions

See how we can add or subtract two functions to create a new function.

Just like we can add and subtract numbers, we can add and subtract functions. For example, if we had functions $f$ and $g$ , we could create two new functions: $f+g$ and $f-g$ .

## Adding two functions

### Example

Let's look at an example to see how this works.

Given that $f(x)=x+1$ and $g(x)={x}^{2}-2x+5$ , find $(f+g)(x)$ .

### Solution

The most difficult part of combining functions is understanding the notation. What does $(f+g)(x)$ mean?

Well, $(f+g)(x)$ just means to find the sum of $f(x)$ and $g(x)$ . Mathematically, this means that $(f+g)(x)=f(x)+g(x)$ .

Now, this becomes a familiar problem.

### We can also see this graphically:

The images below show the graphs of $y=f(x)$ , $y=g(x)$ , and $y=(f+g)(x)$ .

From the first graph, we can see that $f(2)={3}$ and that $g(2)={5}$ . From the second graph, we can see that $(f+g)(2)={8}$ .

So $f(2)+g(2)=(f+g)(2)$ because ${3}+{5}={8}$ .

Now you try it. Convince yourself that $f(1)+g(1)=(f+g)(1)$ .

## Let's try some practice problems.

In problems 1 and 2, let $a(x)=3{x}^{2}-5x+2$ and $b(x)={x}^{2}+8x-10$ .

### Problem 1

### Problem 2

## Subtracting two functions

Subtracting two functions works in a similar way. Here's an example:

### Example

Let's find $(q-p)(t)$ .

### Solution

Again, the most complicated part here is understanding the notation. But after working through the addition example, $(q-p)(t)$ means just what you'd think!

By definition, $(q-p)(t)=q(t)-p(t)$ . We can now solve the problem.

So $(q-p)(t)=-{t}^{2}-6t.$

## Let's try some practice problems.

### Problem 3

### Problem 4

## An application

One college states that the number of men, $M$ , and the number of women, $W$ , receiving bachelor degrees $t$ years since 1980 can be modeled by the functions $M(t)=526-t$ and $W(t)=474+2t$ , respectively.

Let $N$ be the total number of students receiving bachelors degrees at that college $t$ years since 1980.

## Challenge problem

## Want to join the conversation?

- why is 4(-1)^2 = 4? Shouldn't it be 16 because -4x-4 = 16?(8 votes)
- Good question! You solve the exponent first because this comes before multiplication in the order of operations (BIDMAS) where...

B = Brackets (parentheses)

I = Index (exponent, power)

D = Division

M = Multiplication

A = Addition

S = Subtraction

Since I comes before M, you solve (-1)^2 = (-1) x (-1) = 1 first and then you multiply 4 x 1 so that the final answer is 4.(17 votes)

- Under the heading subtracting two functions isn't the final answer -t^2-6t?(5 votes)
- Yes, that is correct. The equation is correctly solved up until the final step when the negative coefficient is dropped when stating the final answer - that (q-p) (t ) = -t^2-6t.(8 votes)

- I do not understand any of the graph sections. They are all very confusing and I cannot seem to get it(5 votes)
- Please tell me exactly what you have trouble getting? The graph section shows what is going on visually when you combine the two functions. If you don't get why one function is graphed as a straight line and another as a curve (parabola) then I recommend finishing algebra basics & algebra 1 sections before starting algebra 2.(6 votes)

- The last question was pretty good. Can someone recommend any other questions like that?(4 votes)
- After adding a quadratic function and a linear function together like the first graph, why does it show new quadratic function, not linear function? I want to know how to show function after adding two different kinds of functions.(3 votes)
- The standard form of a quadratic equation is ax^2+bx+c. Note that this formula contains a linear equation in it - the bx. When you add a linear equation you're just adding to the bx of the quadratic function (and possibly, the c). The resulting equation will still be quadratic, since it will still contain an x^2. Therefore, its graph is still quadratic.(3 votes)

- In the first set of questions, they tell you to evaluate some expressions, but there is no graph until you click the help option. Can someone fix this please?(2 votes)
- Pranav, the two graphs above this question tell you what f(1), g(1), and (f+g)(1) are, just solve the questions with that.

Hope this helps(4 votes)

- In question 4 for Method 2 the equation is simplified first and THEN the values are added in which completely change the outcome. If you add in the value of x=3 first you get -60 not -16. That is very confusing because that is now how it was taught in previous examples. Why is it changed up with no explanation?(2 votes)
- ok so first you have to follow pemdas not bimdas and do the operations(1 vote)

- 6-(5*3-(12)*16/(-8))(1 vote)
- Follow order of operations rules (PEMDAS)

1) Start with the parentheses.

-- Do 5*3

-- Do -12 * 16, then divide that by -8

-- Subtract these 2 results

2) Last, do 6 - the result of the above steps.

Give it a try. comment back if you get stuck.(2 votes)

- In problem one, the answer should have an exponent based on what i got, but i can't seem to make one........or does the answer not include an exponent...(1 vote)
- Use the "^" symbol (shift-6 on most keyboards).

To enter x-squared, type: x^2(1 vote)

- On the video subtracting functions they say the final answer is x^2 (or something like that) plus 4 but when I did the math it should be plus 3(1 vote)
- This is a known error. At about2:05in the video, a pop-up box appears in the lower right-hand corner to say so.(1 vote)