# Explainer: Adding and Subtracting Rational Functions

In this explainer, we will learn how to add and subtract rational functions, identify the domains of the resulting functions, and simplify them.

First, we will recall the definition of a rational expression.

### Definition: Rational Expression

It is a fraction with polynomials in the numerator, denominator, or both.

When adding or subtracting rational expressions, they behave the same as regular fractions, without variables. This means that we need the two fractions that we are adding or subtracting to have a common denominator. Once the two fractions have the same denominator, we sum the two numerators to obtain the numerator of the new fraction, and the new denominator is simply the common denominator.

Let us look at an example.

### Example 1: Adding Rational Expressions with Common Denominators

Write as a single fraction in its simplest form.

We start by looking at the denominator of each fraction in the expression, and we can see that in both cases it is . It may be tempting to simplify the second fraction here; however, if we did that then the fractions would no longer have a common denominator. Since the fractions have a common denominator, we can write them in one fraction to obtain Then, we can simplify this to Now we have written the expression as a single fraction.

Now, let us write the final expression from this example as the function

We can now find the domain of this function. The domain of a function is defined as follows.

### Definition: Domain of a Function

It is the set of input values for which the function is defined.

For , we have only one variable that is input into the equation: . The restriction here is that the denominator has to be nonzero, since we cannot divide by 0. The denominator of our fraction is , so we cannot input the value This gives a domain for our function of

Now, we will look at some more examples.

### Example 2: Simplifying the Sum of Two Rational Functions and Determining Its Domain

Simplify the function , and determine its domain.

First, we see that the fractions in the equation have common denominators, so we can write From here, we reach the simplified function

Now, we need to find the domain of . The denominator of the fraction is , so the domain will contain all values, except when This is when Therefore, this gives us a domain of

### Example 3: Simplifying and Determining the Domain of a Sum of Two Rational Functions

Simplify the function , and determine its domain.

The two fractions here have a common denominator, so we can write as Then, we factor the numerator to check if the numerator and denominator have a common factor Since there is no common factor here, this is the simplified function. To find the domain, we find the values of for which the denominator is zero. This is just when which gives us the value Therefore, cannot be an input in our function since this will give us an undefined value. From this, we obtain a domain of

### Example 4: Simplifying a Function with Rational Expressions and Finding Its Domain

Simplify the function , and determine its domain.

First, we notice that the fractions do not have a common denominator. However, the denominators are in fact the negative of one another. In order to get a common denominator, we can multiply the numerator and denominator of the second fraction by . This will give us Next, we expand the brackets on the fraction on the right and get

Writing this as one fraction, we obtain Now, we simplify the numerator to get All that remains is to find the domain of this function. This is all values of , except when the denominator is 0, so when this rearranges to Therefore, our domain is

### Example 5: Simplifying and Determining the Domain of a Sum of Two Rational Functions

Simplify the function , and determine its domain.

First, we notice that we do not have a common denominator. We need to make the denominators the same, so we can add the fractions. One way of doing this is to multiply the numerator and denominator of the second fraction by . This gives us Now, we have a common denominator and we can add the fractions, giving us

We factor the numerator to check if there are any common factors in the numerator and denominator. This gives us Here, we have simplified the function as much as we can. Now we will find the domain. We need to exclude values that give a zero denominator. This happens when which is equivalent to Finally, we have a domain of

We will finish by recapping some key points.

### Key Points

1. A rational expression is a fraction with polynomials in the numerator, denominator, or both.
2. When two rational expressions have a common denominator, we can add or subtract them by adding or subtracting their numerators to get the numerator of the result; the denominator of the result is simply the common denominator of the two rational expressions.
3. The set of input values for which the function is defined are all the values for which the denominator is nonzero. Hence, given a rational function , where the zeros of are the set , the domain for the function is .