1 Algebra Tips and Tricks Part I (Combining Terms, Distributing, Functions, Graphing)

Here are a few algebra tips and tricks to get you started. In later chapters, we will have some “just-in-time” algebra review, so you’ll review an algebra concept just before you need it.

Combining Like terms

A term is one or more things multiplied together: for example, [latex]xyz[/latex] is a term since it is [latex]x[/latex] times [latex]y[/latex] times [latex]z[/latex], [latex]b^2[/latex] is a term, since it is [latex]b[/latex] times [latex]b.[/latex] and [latex]x[/latex] is a term. If there is also a number multiplied in front of a term, that is called the coefficient (if no coefficient is present, the coefficient is [latex]1[/latex]). Two terms are like terms if they have the same variables multiplied (but may have different coefficients). If two like terms are added together, they can be combined into one term by adding the coefficients.

Combine like terms: [latex]ab - a^2 + 2ab - 3a^2[/latex].

\begin{align*}
ab – a^2 + 2ab – 3a^2 & = 1ab + (-1)a^2 + 2ab + (-3)a^2 \qquad \text{(Clarify coefficients)} \\
& = 1ab + 2ab + (-1)a^2 + (-3)a^2 \qquad \text{(Group like terms)} \\
& = (1+2)ab + (-1+-3)a^2 \qquad \text{(Add coefficients)} \\
& = \boxed{3ab – 4a^2}
\end{align*}

Distributing

If you are multiplying by a sum in parentheses, the rule is to distribute

[latex]a(b + c) = ab + ac[/latex]

Here is another version in “table” form.

[latex]\begin{array}{c|cc} & b & +c \\ \hline a & ab & +ac \end{array}[/latex]

It works, check it out: \begin{align*}
3(4 + 5) & = 3(4) + 3(5) \\
3(9) & = 12 + 15 \\
27 & = 27
\end{align*}
Here is an example:
 

Distribute and combine like terms: [latex]3a(2a - b) - (b-a^2)[/latex].

\begin{align*}
3a(2a – b) – (b-a^2) & = 3a(2a – b) + -1(b – a^2) \\
& = 6a^2 – 3ab – b + a^2 \qquad \text{(Notice the $\mathbf{+a^2}$)}\\ & = \boxed{7a^2 – 3ab – b}
\end{align*}

Foiling

When multiplying two sums, every term of the first must be multiplied by every term of the second. Thus, if there are two terms in the first sum and two in the second, there are four total terms in the product: the (f)irst two terms, the (o)utside terms, the (i)nside terms, and the (l)ast two terms. We can use the acronym “foil”:

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

Here is the same calculation in table form:

[latex]\begin{array}{c|cc} & c & +d \\ \hline a & ac & +ad \\ +b & +bc & +bd \end{array}[/latex]

Here is an example:
 

Foil: [latex](3a + 4b)(a^2 - ab)[/latex].

\begin{align*}
(3a + 4b)(a^2 – ab) & = (3a)(a^2) + (3a)(-ab) + (4b)(a^2) + (4b)(-ab) \\
& = 3a^3 – 3a^2b +4a^2b – 4ab^2 \\
& = \boxed{3a^3 + a^2b – 4ab^2} \end{align*}

Distributing with three terms

When you have three expressions multiplied together, things get a bit trickier. Let’s do some examples.
 

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

To do this, we first multiply the [latex](x - 2)(x + 1)[/latex]. This is [latex]x^2 +x - 2x - 2 = x^2 - x - 2[/latex]. We then multiply [latex](x^2 - x - 2)(x + 3)[/latex]. This is done by combining every term in the first product with every term in the last product. One way to do this is [latex]x[/latex] times everything in [latex]x^2 - x - 2[/latex], plus [latex]3[/latex] times everything in [latex]x^2 - x - 2[/latex].
\begin{align*}
(x – 2)(x + 1)(x + 3) & = (x^2 – x – 2)(x + 3) \\
& = (x^2 – x – 2)(x) + (x^2 – x – 2)(3) \\
& = x^3 – x^2 – 2x + 3x^2 – 3x – 6 \\
& = \boxed{x^3 + 2x^2 – 5x – 6}
\end{align*}
There you go.

Alternatively, we can use the table method. We start by foiling two of the terms together

[latex]\begin{array}{c|cc} & x & - 2 \\ \hline x & \color{blue}{x^2} & \color{blue}{-2x} \\ +1 & \color{blue}{+1x} & \color{blue}{-2} \end{array}[/latex]

Adding the blue terms, we get an intermediate answer of [latex]\color{blue}{x^2 - x -2}[/latex]. Now we can multiply this by [latex]x+3[/latex].

[latex]\begin{array}{c|ccc} & \color{blue}{x^2} & \color{blue}{-x} & \color{blue}{-2} \\ \hline x & \color{red}{x^3} & \color{red}{-x^2} & \color{red}{-2x} \\ +3 & \color{red}{+3x^2} & \color{red}{-3x} & \color{red}{+6} \end{array}[/latex]

Combining like terms gives the answer [latex]\boxed{\color{red}{x^3 + 2x^2 - 5x + 6}}[/latex], the same answer we got before!
 

Find [latex](x + 4)^3[/latex].

We see this is the same thing as [latex](x + 4)(x + 4)(x + 4)[/latex]. We then can do
\begin{align*}
(x + 4)(x + 4)(x + 4) & = (x^2 + 8x + 16)(x + 4) \\
& = (x^2 + 8x + 16)(x) + (x^2 + 8x + 16)(4) \\
& = x^3 + 8x^2 + 16x + 4x^2 + 32x + 64 \\
& = \boxed{x^3 + 12x^2 + 48x + 64}
\end{align*}
I won’t do it this time, but you could use the table method if you prefer that!
 

Functions

A function is anything that produces an output for every possible input. So for example, [latex]f(x) = 2x[/latex] is the function that take in an input [latex]x[/latex], and outputs double [latex]x[/latex] (i.e. [latex]f(3) = 6[/latex], [latex]f(4) = 8[/latex], [latex]f(5) = 10[/latex], etc.).

Here are some examples:
 

If [latex]g(x) = 2^x[/latex], find [latex]g(3)[/latex] and [latex]g(4)[/latex].

We see that [latex]g(3) = 2^3 = \boxed{8}[/latex], and [latex]g(4) = 2^4 = \boxed{16}[/latex].
 

If [latex]h(x) = 2x + 3[/latex], find [latex]h(5)[/latex], [latex]h(y)[/latex], and [latex]h(x + 1)[/latex].

In each case, just replace the [latex]x[/latex] with the input to the function. For example, [latex]h(5) = 2(5) + 3 = 13[/latex], and [latex]h(y) = 2(y) + 3 = \boxed{2y + 3}[/latex].

A tricky one is [latex]h(x + 1)[/latex]. Here, we replace the [latex]x[/latex] with [latex](x + 1)[/latex] in the formula.

Tip: Always do substitutions or replacements like this in parentheses to keep it all together.

Here is what it would look like:
\begin{align*}
h({\color{red} x}) & = 2{\color{red} x} + 3 \\
h({\color{blue} x+1}) & = 2{\color{blue} (x+1)} + 3 \\
& = 2x + 2 + 3 \\
& = \boxed{2x+5}.
\end{align*}
 

If [latex]m(x) = 3x - 1[/latex], find [latex]m(4x + 1)[/latex].

We have to replace the [latex]x[/latex] with [latex]4x+1[/latex] in the formula. So we have
\begin{align*}
m(x) & = 3x – 1 \\
m(4x+1) & = 3(4x+1) – 1 \\
& = 12x + 3 – 1 \\
& = \boxed{12x + 2}.
\end{align*}
 

If [latex]f(x) = x^2 - 4x[/latex] and [latex]g(x) = 2x+5[/latex], what is [latex]f(g(x))[/latex]?

Here, the idea is to replace [latex]x[/latex] with [latex]g(x)[/latex] in the formula. In other words, [latex]x[/latex] becomes [latex]2x+5[/latex]:
\begin{align*}
f(x) & = x^2 – 4x \\
f(g(x)) = f(2x+5) & = (2x+5)^2 – 4(2x+5) \\
& = 4x^2 + 10x + 10x + 25 – 8x – 20 \\
& = \boxed{4x^2 + 12x + 5}.
\end{align*}

Graphing Functions

Graphing is a great way to visualize a function. For example, consider the graph of [latex]f(x) = x^2[/latex].

A parabola, a graph that goes through the middle point (0, 0) and goes up in both directions

Choose any point on the curve. If you go down to the [latex]x[/latex]-axis, you’ll get the input value, and if you go directly left (or right) to the [latex]y[/latex]-axis, you’ll get the output value. For example,

Shows how the x-value of each point on the graph gives a horizontal position, and the y-value gives a vertical position." class="aligncenter size-medium wp-image-443

This reflects the fact that [latex]f(2) = 2^2 = 4[/latex].

Note: Anything with multiple outputs for one input is considered not a function. A handy way to determine this is the “vertical line test” — any vertical line should hit a function only once.
Shows that for a function, a vertical line cannot intersect the graph more than once.

Table method for graphing

If you want to graph a function by hand, a way that works for virtually any function is the table method. Say we want to do the following:

Graph [latex]g(x) = x^2 + 2x[/latex] using the table method.

We can just start by plugging in some values like [latex]x = -2[/latex], [latex]x = -1[/latex], [latex]x = 0[/latex], etc., and fill out a whole table. For example, for [latex]x = -2[/latex], we can compute [latex]g(-2) = (-2)^2 + 2(-2) = 4 -4 = 0[/latex]. Since [latex]g(-2) = 0[/latex], we know that the point [latex](x, y) = (-2, 0)[/latex] lies on the graph. Filling out the rest of the table, we get

$$
\begin{array}{cccc}
\mathbf{x} & \mathbf{x^2 + 2x} & \mathbf{g(x)} & \mathbf{(x, y)} \\
-2 & (-2)^2 + 2(-2) & 0 & (-2, 0) \\
-1 & (-1)^2 + 2(-1) & -1 & (-1, -1) \\
0 & (0)^2 + 2(0) & 0 & (0, 0) \\
1 & (1)^2 + 2(1) & 3 & (1, 3) \\
2 & (2)^2 + 2(2) & 8 & (2, 8)
\end{array}
$$

We can then plot these input-output pairs on the graph, and they trace out a curve. (Note that the pair [latex](2, 8)[/latex] didn’t fit on the graph.)

Demonstrates the point method of graphing, where points are found from the function, the points are plotted on a graph, and then the curve is drawn through the points.

License

Icon for the Creative Commons Attribution 4.0 International License

Informal Calculus Copyright © by Tyler Seacrest is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book