Welcome back, everyone. So up to this point, we've spent a lot of time talking about functions. In this video, we're going to be looking at how we can perform some basic operations with functions like adding and subtracting. Now, thankfully, when it comes to adding and subtracting functions, the process is pretty straightforward. But what can get confusing is the different types of notation that you're going to see, as well as finding the domain of functions once they've been added or subtracted.
But don't worry about it because in this video, we're going to be going over some different examples and scenarios that will hopefully make this crystal clear. So let's get right into it. Whenever we add and subtract functions, this is exactly how we add and subtract polynomials together. It's the same process.
For example, if we had these two polynomials being added together, we know that we can just combine like terms to add them. We can see that we have an x squared term, then we have a 5x here, and then we have a 4 and a 7. Now the 4 and the 7 can combine to give us 11. So this is what the fully simplified polynomial would look like. Now we can also take these polynomials and represent them as functions; so if we said f(x) was x2 plus 4, and g(x) was 5x plus 7, we could add these together in a similar way, so we would have x2 plus 5x plus 4 plus 7 which equals 11, so we would end up with the same polynomial that we did before when adding these as functions.
This is another way to write this same thing. Now likewise, if you saw f(x) minus g(x), this could also be written as f-g(x). It's just important to watch out for this kind of notation because you may see it show up in this course. Now when dealing with adding two functions together, you actually need to figure out all of the numbers that are common to both functions. So, you need to find the domain that we have for the individual functions f and g, but then you also need to find them for the combined f+g, or f-g.
This can be a bit of a complicated process, but to really solidify our understanding let's see if we can solve an example. In this example, we are given three different functions up here, and we're asked to complete the operations below and find the domain and range for each new function. So we'll start with f(x) plus g(x). In this case, we need to take the f(x) function and the g(x) function and add them together. So I can see that f(x) is x2 plus 1/x, and then I can see that g(x) is x2 plus x plus 2.
2 x2 1 x + x + 2To add these together, we just add the like terms. I see that we have two x2 terms, so we're going to have 2x2. I only see that we have one 1/x term, so we're just going to have one minus x, then we have 1x there, and then we have a plus 2. Nothing else combines, so this is what would happen when we add f and g together.
Now, for finding the domain of f, which is this function that we have up here. To find the domain of f, we're doing it because we have an x in the denominator of a fraction. Whenever you have x in the denominator, the x value cannot be equal to 0 because you can never divide by 0. So in order to make this function not break, we need to say that the x in the denominator cannot be equal to 0.
For g, we just have a polynomial, and whenever you have these kinds of polynomials, any number that you plug in should work. So for g, we can say that our numbers go from negative infinity to positive infinity because all real numbers are defined. Now as for the domain of f+g, what we need to do is first look at all the individual situations we have, and I can see this one inversed x is the only thing really causing any kind of restrictions here, and I also see that when we add these together it's the same one inversed x that's causing problems. So the domain of f+g is simply going to be that x cannot equal 0.
So this is how you can find the domain and range of the functions individually and then together. But now let's take a look at this other example that we have where we have g(x) minus h(x). Now to do this, we're going to take our function g(x) that we see here, so we'll have this x2 plus x plus 2, and then we're going to subtract from this h(x), which is x plus the square root of x minus 8. So to subtract these two functions, what I'm first going to do is take this negative sign and distribute it into the function we have over here, so we're going to end up with x2 plus x plus 2, which is this entire thing, and then we have minus x minus the square root of x minus 8, and then what we can do from here is combine like terms.
So I can see that we have this positive x and negative x, which are just going to cancel each other, meaning that our final polynomial is going to be x2 plus 2, minus the square root of x minus 8, and since I can see that nothing else is going to combine, this is what our function is going to look like when we subtract h from g.
Now we already discussed that the domain of g is all real numbers, it goes from negative infinity to positive infinity. And as for h, notice that we have a square root right here. The inside of the square root cannot be negative, so what we need to do is say that this x minus 8 that is inside the square root has to be greater than or equal to 0, so that way it's not negative. Now if I go ahead and add this 8 to both sides of the equation, they'll get the eights to cancel there, giving us that x is greater than or equal to positive 8. Meaning that our domain for h is going to be that x has to be greater than or equal to 8.
Now as for the domain of g minus h, we'll if I look at the original expression that we have here, it's only the square root of x minus 8 that's gonna cause restrictions on the domain. And if I look at our final expression, we have the same square root of x minus 8. So it's this same domain that we're going to have for g minus h, meaning that x has to be greater than or equal to 8. So this is the domain of g, the domain of h, and the domain of g minus h.
So this is how you could add and subtract functions and find their domain. Hopefully, you found this video helpful, and let me know if you have any questions.