## Introduction to Variables

Variables are used in mathematics to denote arbitrary or unknown numbers.

### Learning Objectives

Describe the uses of variables in mathematics

### Key Takeaways

#### Key Points

- Variables are generally alphabetic characters that represent numbers and are useful in mathematics for several purposes.
- Parameters of equations are often denoted with variables (such as [latex]a[/latex], [latex]b[/latex], or [latex]c[/latex]) and are part of the given information in an equation.
- Unknown variables are those that must be solved for in equations and are often denoted with variables such as [latex]x[/latex] and [latex]y[/latex].

#### Key Terms

**term**: A value or expression separated from other such values by an operation.**variable**: An alphabetic character representing a number that is arbitrary or unknown.**parameter**: A number or variable in an equation that is considered “known”.**coefficient**: A quantity (usually a number) that remains the same in value within a problem.**unknown**: A variable in an equation that has to be solved for.

In elementary mathematics, a variable is an alphabetic character representing a number, called the *value* of the variable, that is arbitrary, not fully specified, or unknown.

Variables are useful for several reasons.

### Unknown Values

Variables can represent numbers whose values are not yet known. For example, if the temperature of the current day, [latex]C[/latex], is 20 degrees higher than the temperature of the previous day, [latex]P[/latex], then the problem can be described algebraically as [latex]\displaystyle C=P+20[/latex].

### General Formulas

### Varying Quantities

Variables may describe mathematical relationships between quantities that vary. For example, the relationship between the circumference, [latex]C[/latex], and diameter, [latex]d[/latex], of a circle is described by [latex]\displaystyle \pi =C/d[/latex].

Variables may also describe general problems without specifying the values of the quantities involved. For example, it can be stated specifically that 5 minutes is equivalent to [latex]\displaystyle 60\times 5=300[/latex] seconds. A more general (algebraic) description may state the number of seconds as [latex]\displaystyle s=60\times m[/latex], where [latex]m[/latex] is the number of minutes.

### Mathematical Properties

Variables may describe some mathematical properties. For example, a basic property of addition is commutativity, which states that the order of numbers being added together does not matter. Commutativity is stated algebraically as [latex]\displaystyle (a+b)=(b+a)[/latex].

### Types of Variables

Variables can be used to represent different types of numbers. It is common that many variables appear in the same mathematical formula, and they may play different roles. Some names or qualifiers have been introduced to distinguish them.

For example, in the general cubic equation [latex]\displaystyle ax^{3}+bx^{2}+cx+d=0[/latex], there are five variables. Four of them ([latex]a[/latex], [latex]b[/latex], [latex]c[/latex], [latex]d[/latex]) represent given numbers, which are referred to as the *parameters *of the equation. The last one, [latex]x[/latex], represents the solution of the equation, which is unknown and must be solved for. To distinguish among the different variables, [latex]x[/latex] is called an *unknown*, and the variables that are multiplied by [latex]x[/latex] are called *coefficients*. In this equation, the coefficients are [latex]a[/latex], [latex]b[/latex], and [latex]c[/latex]. A number on its own (without an unknown variable) is called a *constant*; in this case, [latex]d[/latex] represents a constant.

Note that a *term* of an equation is any value (variable or number) or expression that is separated from another term by a space or a character (such as “[latex]+[/latex]“). Therefore, a term may simply be a constant or a variable, or it may include both a coefficient and an unknown variable. In the cubic equation described above, there are four terms: [latex]ax^3[/latex], [latex]bx^2[/latex], [latex]cx[/latex], and [latex]d[/latex].

Note that unknown variables are often denoted by [latex]x[/latex], [latex]y[/latex], or [latex]z[/latex] and the parameters of equations by [latex]a[/latex], [latex]b[/latex], [latex]c[/latex], or [latex]d[/latex]. However, this is not always the case. For example, you might be asked to solve the following equation for [latex]b[/latex]:

[latex]12 - b = 3[/latex]

In this case, [latex]b[/latex] is an unknown variable, not a parameter of the equation. We can solve this problem and find that [latex]b = 9[/latex].

## Adding and Subtracting Algebraic Expressions

Simplifying algebraic expressions involves combining like terms, often through addition and subtraction.

### Learning Objectives

Use the concept of like terms to add and subtract expressions containing variables

### Key Takeaways

#### Key Points

- ” Like terms ” are terms in algebraic expressions that are constants or that involve the same variables raised to the same exponents (e.g., [latex]6x^2[/latex] and [latex]x^2[/latex]; [latex]14y[/latex] and [latex]3y[/latex]).
- In algebraic expressions, like terms can be combined through addition and subtraction: [latex]2{x}^{2}+3ab-{x}^{2}+ab={x}^{2}+4ab[/latex].

#### Key Terms

**like terms**: Entities that involve the same variables raised to the same exponents.

### Like Terms

Every algebraic expression is made up of one or more terms. Terms in these expressions are separated by the operators [latex]+[/latex] or [latex]-[/latex]. For instance, in the expression [latex]x + 5[/latex], there are two terms; in the expression [latex]2x^2[/latex], there is only one term.

Terms are called *like terms* if they involve the same variables and exponents. All constants are also like terms.

For example, [latex]5x^2[/latex] and [latex]x^2[/latex] are like terms because they involve the same variable, [latex]x[/latex], raised to the same exponent, 2. Likewise, the following are examples of like terms:

- [latex]3x[/latex] and [latex]25x[/latex]
- [latex]y^4[/latex] and [latex]12y^4[/latex]
- 13 and 42

Note that terms that share a variable but not an exponent are *not *like terms. Therefore, [latex]2x^3[/latex]and [latex]2x^2[/latex]are *not *like terms because they have different exponents (3 and 2). Likewise, terms that share an exponent but have different variables are *not *like terms. Therefore, [latex]2x^2[/latex] and [latex]2y^2[/latex] are *not* like terms, because they have different variables ([latex]x[/latex] and [latex]y[/latex]).

### Combining Like Terms

### Expressions with Two Terms

We can simplify an algebraic expression by combining like terms. For example, let’s try simplifying [latex]3x + 6x[/latex].

First, let’s write both terms as addition problems:

- [latex]3x = x + x + x[/latex]
- [latex]6x = x + x + x + x + x + x[/latex].

Adding these terms together, we have:

[latex]3x + 6x = x + x + x + x + x + x + x + x + x[/latex]

If you count, you’ll find that there are 9 [latex]x[/latex]s in this expanded expression. Therefore:

[latex]3x+6x=9x[/latex]

Note that the expression we started with, [latex]3x + 6x[/latex], had only two terms. When an expression contains more than two terms, it may be helpful to rearrange the terms so that like terms are together.

### Expressions with More than Two Terms

The commutative property of addition says that we can change the order of terms without changing the meaning of the expression (the sum). So, we can rearrange the order of the following expression before attempting to combine like terms:

[latex]4a + 6b + 2a +b[/latex]

We can identify that [latex]4a[/latex] and [latex]2a[/latex] are like terms, as are [latex]6b[/latex] and [latex]b[/latex]. We want to rearrange the expression to group like terms together:

[latex]4a + 2a + 6b +b[/latex].

Now we can more easily add the like terms together to simplify the expression:

[latex](4a + 2a) + (6b +b) = 6a + 7b[/latex]

The same rules apply when an expression involves subtraction. However, be careful that when you changing the order of terms you ensure that the minus sign follows the term that it applies to. For example, consider [latex]2x - 3 + 5x[/latex]. This expression is properly rearranged and simplified as follows:

[latex]2x-3 + 5x = 2x + 5x - 3 = 7x - 3[/latex].

### Summary

In summary, there are three steps to combining like terms:

1. Identify all like terms.

2. Rearrange the expression so the like terms are grouped together.

3. Add or subtract the coefficients of the like terms until there are as few of each kind of term as possible.

### Example 1

Simplify the following expression:

[latex]4x^2 + 3xy - y - 2x^2 + 5xy[/latex]

First, identify the like terms: [latex]4x^2[/latex] and [latex]-2x^2[/latex], [latex]3xy[/latex] and [latex]5xy[/latex]. Now group these like terms together:

[latex]4x^2 - 2x^2 + 3xy + 5xy - y [/latex]

Add and subtract the coefficients of the like terms:

[latex]2x^2 + 8xy - y[/latex]

### Example 2

Simplify the following expression:

[latex]-5x^2 + 3x + 3y - 3x + 21x^2 [/latex]

First, identify the like terms: [latex]-5x^2[/latex] and [latex]21x^2[/latex], [latex]3x[/latex] and [latex]-3x[/latex]. Now group these like terms together:

[latex]-5x^2 + 21x^2 + 3x - 3x + 3y [/latex]

Add and subtract the coefficients of the like terms. Notice that the terms [latex]3x[/latex] and [latex]-3x[/latex] cancel, because [latex]3x - 3x = 0[/latex]. The expression therefore simplifies to:

[latex]16x^2 + 3y [/latex]

## Multiplying Algebraic Expressions

The process for multiplying algebraic expressions differs for monomials and polynomials.

### Learning Objectives

Calculate the product of expressions containing variables

### Key Takeaways

#### Key Points

- To multiply two monomials, multiply the integer coefficients together and add the exponents of any variables that are the same.
- To multiply a monomial by a polynomial, multiply the monomial by each individual term in the polynomial.
- To multiply two binomials, follow the FOIL method: multiply the First, Outside, Inside, and Last terms before adding all the resulting terms together.

#### Key Terms

**binomial**: A polynomial with two terms.**polynomial**: An algebraic expression with more than one term.**monomial**: A single term consisting of a product of numbers and variables.**trinomial**: A polynomial with three terms.

### Multiplication of Two Monomials

A monomial is a single term consisting of a product of numbers and variables. It is a relative of the polynomial, which is an algebraic expression with more than one term. The following are examples of monomials:

- [latex]3x[/latex]
- [latex]6xy[/latex]
- [latex]12[/latex]
- [latex]4x^2[/latex]

(Note that multiplying monomials is not the same as adding algebraic expressions—monomials do not have to involve ” like terms ” in order to be combined together through multiplication.)

When you multiply monomials, you multiply their integer coefficients together and, if they contain any of the same variables, add the exponents on those variables together.

For example:

- [latex](3x^2)(4x) = 12x^3[/latex]
- [latex](4xy)(5y^2) = 20xy^3[/latex]
- [latex](9)(2y^2) = 18y^2[/latex]
- [latex](5x)(3y) = 15xy[/latex]

### Multiplication of Monomials and Polynomials

A monomial can be multiplied by a polynomial of any size (note that a polynomial is called a binomial if it has two terms and a trinomial if it has three terms). The monomial should be multiplied by each term in the polynomial separately. Any negative sign on a term should be included in the multiplication of that term. The resulting polynomial will have the same number of terms as the polynomial in the problem.

For example:

- [latex](2x)(x^2 + 5) = 2x^3 + 10x[/latex]
- [latex]7(x^2y + 5) = 7x^2y + 35[/latex]
- [latex](x^3)(y^2 - 2x + 4) = x^3y^2 - 2x^4 + 4x^3[/latex]
- [latex]-3x(2xy - 3y^2 - 2) = -6x^2y + 9xy^2 + 6x[/latex]

### Multiplication of Two Binomials

Multiplying two binomials is less straightforward; however, there is a method that makes the process fairly convenient. “FOIL” is a mnemonic for the standard method of multiplying two binomials (hence the method is often referred to as the FOIL method). The word FOIL is an acronym for the four terms of the product:

- First (the “first” terms of each binomial are multiplied together)
- Outer (the “outside” terms are multiplied—i.e., the first term of the first binomial with the second term of the second)
- Inner (the “inside” terms are multiplied—i.e., the second term of the first binomial with the first term of the second)
- Last (the “last” terms of each binomial are multiplied together)

Once this process is complete, all the resulting terms are added together into a single polynomial.

The FOIL method can be written algebraically:

[latex](a+b)(c+d)=ac+ad+bc+bd[/latex]

- First terms: [latex]ac[/latex]
- Outside terms: [latex]ad[/latex]
- Inside terms: [latex]bc[/latex]
- Last terms: [latex]bd[/latex]

Remember that any negative sign on a term in a binomial should also be included in the multiplication of that term. Additionally, remember to simplify the resulting polynomial if possible by combining like terms.

### Example of Multiplying Binomials

Multiply the following binomials:

[latex](2x + 1)(3x - 2)[/latex]

Following the FOIL method, multiply the first, outside, inside, and last terms:

[latex]F: (2x)(3x) = 6x^2 \\ O: (2x)(-2) = -4x \\ I: (1)(3x) = 3x \\ L: (2)(-2) = -2 [/latex]

Now add all of these terms together:

[latex]6x^2 - 4x + 3x - 2[/latex]

Notice that two of these terms are like terms ([latex]-4x[/latex] and [latex]3x[/latex]) and can therefore be added together to simplify the expression further:

[latex]6x^2 - x - 2[/latex]

## Simplifying Radical Expressions

A radical expression that contains variables can often be simplified to a more basic expression, much as can expressions involving only integers.

### Learning Objectives

Simplify radical expressions containing variables

### Key Takeaways

#### Key Points

- If a radical is fully simplified, there is no factor of the radicand that can be written as a power greater than or equal to the index, there are no fractions under the radical sign, and there are no radicals in the denominator.
- When radical expressions contain variables, simplifying them follows the same process as it does for expressions containing only integers.
- Similarly, the rules for multiplying and dividing radical expressions still apply when the expressions contain variables.

#### Key Terms

**radicand**: The number or expression whose square root or other root is being considered; e.g., the 3 in [latex]\sqrt[n]{3}[/latex]. More simply, the number under the root symbol.

### Radical Expressions

Expressions that include roots are known as radical expressions. Recall that the [latex]n[/latex]th root of a number [latex]x[/latex] is a number [latex]r[/latex] that, when raised to the power of [latex]n[/latex], equals [latex]x[/latex]:

[latex]{r}^{n}=x[/latex]

where [latex]n[/latex] is the degree of the root. A root of degree 2 is called a square root; a root of degree 3 is called a cube root. Roots of higher degrees are referred to using ordinal numbers (e.g., fourth root, twentieth root, etc.).

### Simplified Form

A radical expression is said to be in simplified form if:

- there is no factor of the radicand that can be written as a power greater than or equal to the index,
- there are no fractions under the radical sign, and
- there are no radicals in the denominator.

### Example

For example, let’s write the radical expression [latex]\sqrt { \frac { 32 }{ 5 } }[/latex] in simplified form, we can proceed as follows. First, look for a perfect square under the square root sign, and remove it:

[latex]\displaystyle \sqrt { \frac { 32 }{ 5 } } =\sqrt { \frac { 16\cdot 2 }{ 5 } } = \sqrt {4^2 \cdot \frac { 2 }{ 5 } }= 4\sqrt { \frac { 2 }{ 5 } }[/latex]

Next, separate the fraction under the radical sign:

[latex]\displaystyle 4\sqrt { \frac { 2 }{ 5 } } =\frac { 4\sqrt { 2 } }{ \sqrt { 5 } }[/latex]

Finally, remove the radical from the denominator:

[latex]\displaystyle 4\sqrt { \frac { 2 }{ 5 } } =\frac { 4\sqrt { 2 } }{ \sqrt { 5 } } \cdot \frac { \sqrt { 5 } }{ \sqrt { 5 } } =\frac { 4\sqrt { 10 } }{ 5 }[/latex]

### Radical Expressions with Variables

For the purposes of simplification, radical expressions containing variables are treated no differently from expressions containing integers. For example, consider the following: [latex][/latex]

[latex]\sqrt{4x^2} = \sqrt{4} \cdot \sqrt{x^2} = 2x[/latex]

This follows the same logic that we used above, when simplifying the radical expression with integers:

[latex]\sqrt{32} = \sqrt{16} \cdot \sqrt{2} = 4\sqrt{2}[/latex]

### Example

Simplify the following expression:

[latex]\dfrac{\sqrt{16x^7}}{\sqrt[4]{x^2}}[/latex]

First, notice that there is a perfect square under the square root symbol, and pull that out:

[latex]\dfrac{\sqrt{16x^7}}{\sqrt[4]{x^2}} = \dfrac{\sqrt{16}\sqrt{x^7}}{\sqrt[4]{x^2}} = \dfrac{4 \cdot \sqrt{x^7}}{\sqrt[4]{x^2}} = 4 \cdot \dfrac{\sqrt{x^7}}{\sqrt[4]{x^2}}[/latex]

Recall that we can rewrite the numerator and denominator in rational exponent form, which will allow us to proceed with the division rule:

[latex]4 \cdot \dfrac{x^{\frac{7}{2}}}{x^{\frac{2}{4}}}[/latex]

Notice that the exponent in the denominator can be simplified, so we have:

[latex]4 \cdot \dfrac{x^{\frac{7}{2}}}{x^{\frac{1}{2}}}[/latex]

Recall the rule for dividing numbers with exponents, in which the exponents are subtracted. Applying the division rule yields:

[latex]4 \cdot \dfrac{x^{\frac{7}{2}}}{x^{\frac{1}{2}}} = 4 \cdot x^{\frac{7}{2}-\frac{1}{2}} = 4 \cdot x^{\frac{6}{2}} = 4x^3[/latex]

## Simplifying Exponential Expressions

The rules for operating on numbers with exponents can be applied to variables with exponents as well.

### Learning Objectives

Simplify exponential expressions containing variables

### Key Takeaways

#### Key Points

- The rules for operating on exponential expressions are the same for expressions with variables as they are for those with only integers.

#### Rules for Exponential Expressions

Recall the rules for operating on numbers with exponents, which are used when simplifying and solving problems in mathematics:

- Multiplying exponential expressions with the same base: [latex]a^m \cdot a^n = a^{m+n}[/latex]
- Dividing exponential expressions with the same base: [latex]\displaystyle \frac{{a}^{m}}{{a}^{n}}={a}^{m-n}[/latex]
- Raising an exponential expression to an exponent: [latex]{({a}^{n})}^{m}={a}^{n \cdot m}[/latex]
- Raising a product to an exponent: [latex]{(ab)}^{n}={a}^{n}{b}^{n}[/latex]

Previously, we have applied these rules only to expressions involving integers. However, they also apply to expressions involving a combination of both integers and variables. This makes them more broadly applicable in solving mathematics problems.

### Exponential Expressions with Variables

In terms of conducting operations, exponential expressions that contain variables are treated just as though they are composed of integers. For example, consider the rule for multiplying two numbers with exponents. We know that [latex](2 \cdot 5)^2 = 2^2 \cdot 5^2 [/latex]. The same rule applies to expressions with variables. The following statements therefore hold true:

- [latex](4a)^3 = 4^3 \cdot a^3[/latex]
- [latex](xy)^2 = x^2y^2[/latex]

Each of the other rules for operating on numbers applies to expressions with variables as well. You will see how each of these applies in the following examples.

### Example 1

Simplify the following expression:

[latex]\displaystyle \frac{4a^7}{a^2}[/latex]

Now apply the rule for dividing exponential expressions with the same base:

[latex]\displaystyle \frac{4a^7}{a^2} = 4a^{\left(7-2\right)} = 4a^5[/latex]

### Example 2

Simplify the following expression:

[latex](a^3)(a^2) + (2b^2)^3[/latex]

To simplify the first part of the expression, apply the rule for multiplying two exponential expressions with the same base:

[latex](a^3)(a^2) = a^5[/latex]

To simplify the second part of the expression, apply the rule for multiplying numbers with exponents:

[latex](2b^2)^3 = (2)^3 \cdot (b^2)^3 [/latex]

Now, since we know that [latex]2^3 = 2 \cdot 2 \cdot 2 = 8[/latex], we can plug that in. We can also apply the rule for raising a power to another exponent:

[latex](2b^2)^3 = 8b^6[/latex]

Combining the two terms, our original expression simplifies to:

[latex]a^5 + 8b^6[/latex]

## Rational Algebraic Expressions

The addition and subtraction of rational expressions are bound by all of the same rules as the addition and subtraction of fractions.

### Learning Objectives

Manipulate rational expressions that contain variables

### Key Takeaways

#### Key Points

- Always factor rational expressions before doing anything else.
- When two rational expressions are added to or subtracted from each other, each must first be multiplied by some constant such that both expressions have the same denominator.
- Once two rational expressions have the same denominator, their numerators can be combined. Then the overall remaining expression can be simplified.

#### Key Terms

**rational expression**: An expression in terms of the quotient of two polynomials.**prime factor**: A factor of a given integer that is also a prime number.**factor**: Any of various objects multiplied together to form some whole.**factoring**: The process of creating a list of items that, when multiplied together, will produce a desired quantity or expression.

Adding and subtracting fractions should be a familiar process, and we will rely on this concept in our discussion of adding and subtracting rational expressions.

[latex]\displaystyle \frac 1 2 +\frac 1 3 = \frac 3 6 + \frac 2 6 = \frac 5 6[/latex]

The key is finding the least common denominator of the two rational expressions: the smallest multiple of both denominators. Then, you rewrite the two fractions using this denominator. Finally, you add (or subtract) the fractions by combining the numerators and leaving the denominator alone.

But how do you find the least common denominator?

Consider this problem:

[latex]\displaystyle \frac 5 {12} + \frac 7 {30} = ?[/latex]

You could probably find the least common denominator if you played around with the numbers long enough. Here, we will show you a systematic method for finding least common denominators—a method that works with rational expressions just as well as it does with numbers.

### Finding the Least Common Denominator

We start, as usual, by factoring. For each of the denominators, we find all the prime factors —i.e., the prime numbers that multiply to give that number.

[latex]\displaystyle \frac 5 {2 \cdot 2 \cdot 3} + \frac 7 {2 \cdot 3 \cdot 5}[/latex]

If you are not familiar with the concept of prime factors, it may take a few minutes to get used to. [latex]2\cdot 2 \cdot 3[/latex] is [latex]12[/latex] broken into its prime factors: that is, it is the list of prime numbers that when multiplied together yield 12. Similarly, the prime factors of 30 are 2, 3, and 5. But why does this help?

Because [latex]12=2 \cdot 2 \cdot 3[/latex], any number whose prime factors include two 2s and one 3 will be a multiple of 12. Similarly, any number whose prime factors include a 2, a 3, and a 5 will be a multiple of 30.

The least common denominator is the smallest number that contains the overlap of both factored denominators: in this case, it must have two 2s, one 3, and one 5. Hence, the least common denominator must be [latex]2 \cdot 2 \cdot 3 \cdot 5 = 60[/latex].

Now we can finish the problem:

[latex]\begin{align} \frac {5} {2 \cdot 2 \cdot 3} + \frac {7} {2 \cdot 3 \cdot 5} &= \left(\frac {5} {2 \cdot 2 \cdot 3} \cdot \frac {5} {5} \right) + \left(\frac {7} {2 \cdot 3 \cdot 5} \cdot \frac {2} {2}\right) \\ &= \frac {25} {60} + \frac {14} {60}\\ &= \frac {39} {60} \\ &= \frac {13} {20} \end{align}[/latex]

This may look like a very strange way of solving problems that you have known how to solve since the third grade. However, you should spend a few minutes carefully following the above solution. Once you understand why [latex]2 \cdot 2 \cdot 3 \cdot 5 = 60[/latex] is guaranteed to be the least common denominator, you have the key concept required to add and subtract rational expressions.

### Addition and Subtraction of Rational Expressions

When applying this strategy to rational expressions, first look at the denominators of the two rational expressions and see if they are the same. If they are the same, then simply add or subtract the numerators from each other, leaving the denominator alone. If the two denominators are different, however, then you will need to use the above strategy of finding the least common denominator.

When we add or subtract rational expressions, we will not simply be considering the prime factors of integers when looking for the least common denominator. Rather, we will be looking for monomial and binomial factors that are common to both rational expressions. This requires factoring algebraic expressions.

For example, consider the expression [latex]2x^2 + 4[/latex]. Note that each term of the expression is divisible by 2; therefore, this can be rewritten by dividing 2 out of each term: [latex](2)(x^2 + 2)[/latex]. This expression therefore has two factors: [latex]2[/latex] and [latex](x^2 + 2)[/latex].

Follow the example below to see how this applies to solving addition and subtraction problems.

### Example

Subtract the following rational expressions:

[latex]\displaystyle \frac 3 {x^2y+2y}-\frac {4x}{x^2 + 2}[/latex]

We begin problems of this type by factoring. Notice that we can rewrite the first denominator in terms of its factors. We can pull [latex]y[/latex] out of the binomial, since it appears in both terms:

[latex]x^2y+2y = y(x^2 + 2)[/latex]

The denominator in the second fraction cannot be factored. The rational expressions therefore become:

[latex]\displaystyle \frac 3 {y(x^2 + 2)} - \frac {4x}{x^2 + 2}[/latex]

Notice the factors in the denominators. The first fraction has two factors: [latex]y[/latex] and [latex](x^2+2)[/latex]. The second fraction has only one factor: [latex](x^2 + 2)[/latex].

Now, as above, we need to find the smallest possible overlap including all the factors in both of these denominators. Through this logic, the least common denominator must have one [latex](x^2+2)[/latex] and one [latex]y[/latex].

We now rewrite both fractions with the common denominator (remember that if you multiply a denominator by a factor, you must also multiply the numerator of that fraction by the same factor):

[latex]\displaystyle \frac {3}{y(x^2+2)} - \frac {4x} {x^2+2} \cdot \dfrac{y}{y}[/latex]

[latex]\displaystyle \frac {3}{y(x^2+2)} - \frac {4x(y)} {y(x^2+2)}[/latex]

Subtracting fractions is easy once you have a common denominator! Now we can simply subtract the numerators:

[latex]\displaystyle \frac {3-4xy} {y(x^2+2)}[/latex]

### Conclusions

*First*, always factor rational expressions before doing anything else.

*Second*, follow the regular procedure for fractions, which in this case involves finding a common denominator.

*Third*, subtract the numerators while leaving the denominator alone.

*Finally*, simplify.