Skip to content
RMIT University Library - Learning Lab

A1.1 Algebraic operations

 

A page in Arabic of one of the earliest books on Algebra
A page from Al-Khwarizmis “al-Kitab al-muhtasar fi hisab al-gabr wa-l-muqabala”, an early book on algebra. (Image from en.wikipedia.org )

This section introduces the basic skills for addition, subtraction, multiplication and division (+ - × ÷) of algebraic expressions.

Courses in science, engineering and other fields require you to have these skills.

M: Hi, this is Martin Lindsay from the Study and Learning Centre at RMIT University. This is a short movie on operations with algebra. First of all make sure you can tell the difference between like terms and unlike terms. Like terms contain exactly the same pro-numerals, in other words letters or variables, so look at the like terms down the left hand column and compare them with the unlike terms in the right hand column, in particular look at the last term, seven E F and eight F E, they are in fact like terms. Only like terms can be added or subtracted. For instance, in this example, seven E plus 10 E, the terms are alike, therefore they can be added to give you 17 E. But look at this one, be careful because here we have two terms, the X squared term and the X term so we have to add them separately, so three X squared minus X squared minus four X squared gives us minus two X squared, and two X, which is different to the X squared term must be left alone so the answer is minus two X squared plus two X.

Similarly if you look at this example in red, there’s a U V term which is the same as V U and that is different to the U term therefore that gives us minus two U V plus three U, we keep them separate, we can’t add minus two U V to three U. And finally six R squared S minus two R S squared, they look similar but they are not the same, these are two unlike terms so we can’t simplify this expression.

Now before we move on to multiplying and dividing algebraic terms make sure you are familiar with the multiplication and dividing of positive and negative numbers on this slide. So study this carefully before moving onto the next slide.

But let’s multiply some pro-numerals. Here’s the first example, minus four times three B, multiply the numbers together, minus four and minus three gives you plus 12 and then just tag on the B afterwards so the answer is 12 B. Here’s another one, multiply out the numbers first, three times minus 15 gives you minus 15, now multiply the pro-numeral, E and E squared is E cubed, so the answer is minus 15 E cubed.

The next example in red multiply out, as before, the numbers, minus two times minus four is plus eight, then the pro-numerals, there’s a U squared term and there are Vs there, V times V is a V squared, so the answer is eight U squared V squared. Notice in these examples that because we’re multiplying the actual terms can be different, so make sure you know the difference between adding and subtracting where the pro‑numerals must be exactly the same, multiplying and dividing the pro-numerals can be different.

Finally minus three P Q times minus two Q times P, multiply out the numbers, that gives you plus six, P times P is P squared, Q times Q is Q squared, so the answer is six P squared Q squared. Now in this slide we’re dividing pro-numerals, so the first term minus 12 W Y Z divided by the second term three Y Z, express that as a fraction first and look for terms that will cancel top and bottom, in this case the Ys cancel top and bottom and the Zs cancel top and bottom, notice three will divide into 12 four times, so the answer is minus four W.

Here’s another one slightly more complicated. Now in this slide we’re dividing pro‑numerals, so the first term minus 12 W Y Z divided by the second term three Y Z, express that as a fraction first and look for terms that will cancel top and bottom, in this case the Ys cancel top and bottom and the Zs cancel top and bottom, notice three will divide into 12 four times so the answer is minus four W.

Here’s another one slightly more complicated. Writing it as a fraction, minus two M squared N over six M N squared, and then in the third term I’ve expanded the M squared so it’s M times N and then I’ve tacked the N on the end of that and I’ve done the same thing with the denominator with N squared N times N, so you can clearly see where the Ms and the Ns cancel, giving you an answer of minus M over three N. Notice minus on the top divided by plus on the bottom gives you an answer of minus.

And finally in blue there’s a multiplication and a division so you again express that as a fraction, expand the A squared and then cancel top and bottom terms giving you an answer of two A. Now we’ll move on to some slightly harder problems with algebra, but notice the rule that we use first of all, in other words if an expression has brackets in it that must be done first, secondly if there are indices you do that next, thirdly you do multiplying and dividing and lastly you do adding and subtraction.

So let’s do some examples. Three S T minus three S times four T, notice we have a negative sign and a multiplication sign, so the times is worked out first, so three S times four T is 12 S T, notice now we have subtraction, three S T minus 12 S T, notice the terms are alike therefore we can subtract them, three minus 12 is minus nine S T.

Let’s look at this one. We’ve got two terms in brackets and a division, so the brackets are worked out first, even though there’s a plus inside the brackets must be worked out first, which gives us six X Y, then we divide that by two X, express that as a fraction, cancel any terms, Xs cancel here, twos go into six three times so the answer is three Y.

And finally look at this one. We have brackets, multiplication, addition and division. So the brackets is worked out first, that gives as minus 10 A squared B squared in the second line, then I write out the rest, plus two A cubed B cubed divided by A B, what do we do next, well we have division which becomes ... comes before addition, therefore we divide the two A cubed B cubed by A B, writing that as a fraction, simplifying by cancelling like terms and then in the final line we’ve just got two terms which we can add together. Notice again that the terms are exactly the same, A squared B squared, therefore we can add them, minus 10 plus two gives us minus eight A squared B squared.

Now try some questions for yourself. The answers to these questions are on the next slide. Thanks for watching this short video.

Like and Unlike Terms

Like terms contain exactly the same pro-numerals. 1 A pro-numeral is a combination of letters, symbols and numbers. For example, \(3x\) is a pro-numeral. In algebra, when we write \(3x\) we really mean \(3\times x\). Another example of a pro-numeral is \(5ab\). This means \(5\times a\times b\). Note that \(5ab=5ba\). The order of the letters and numbers is not important but usually we write numbers first and use alphabetical order for the letters. While \(5ba\) is correct, it is more common to write \(5ab\). The following table gives some examples of like and unlike terms.

Like Terms Unlike Terms
\(3x,5x\) \(3x,5y\)
\(2a,-3a\) \(3a,3\)
\(m^{2},7m^{2}\) \(m^{2},7m\)
\(2ab,3ab\) \(2a^{2}b,3ab^{2}\)
\(3xyz,5xyz\) \(3xyz,3xy\)
\(3ef,3fe\) \(3ef,\,3eg\)
\(6\alpha\beta\), \(\beta\alpha\) \(6\alpha\beta\gamma\), \(6\alpha\beta\)

For some practice, please go to Exercise 1 below.

Addition and Subtraction

The essential rule is:


Only like terms may be added or subtracted.


Example 1. \[\begin{align*} 7e+10e & =7\times e+10\times e\\ & =\left(7+10\right)e\\ & =17e. \end{align*}\] In practice we would not put in the first line. It is included to reinforce what \(7e\) and \(10e\) mean. In practice we would probably go straight to the answer. That is \(7e+10e=17e\).

Example 2. \[\begin{align*} 3x^{2}-x^{2}-4x^{2} & =\left(3-1-4\right)x^{2}\\ & =-2x^{2}. \end{align*}\]

Example 3. 2 This example shows how we can gather different like terms. In this case \(m\) and \(n\). \[\begin{align*} 3m-4n+6m+n & =\left(3+6\right)m+\left(-4+1\right)n\\ & =9m-3n. \end{align*}\]

Example 4. \[\begin{align*} 3a-b-5a+4ab-3b+ab & =\left(3-5\right)a+\left(-1-3\right)b+\left(4+1\right)ab\\ & =-2a-4b+5ab. \end{align*}\]

Example 5. \[\begin{align*} 3x-x^{2} & \quad\mathrm{there\textrm{ are no like terms so nothing can be done.}} \end{align*}\]

Example 6. \[\begin{align*} p+2p-3 & =3p-3. \end{align*}\]

Example 7. \[ 8uv+3u-10vu=-2uv+3u. \]

Example 8. \[ 6r^{2}s-2rs^{2}\quad\mathrm{there\textrm{ are no like terms so nothing can be done.}} \]

For some practice, please go to Exercise 2 below.

Multiplication

Both like and unlike terms may be multiplied. When multiplying two or more terms consider: 1. The sign of the answer.3 In doing the multiplication, remember the basic rules for determining the sign of the product. \[\begin{align*} \left(+ve\right)\times\left(+ve\right) & =\left(+ve\right)\\ \left(+ve\right)\times\left(-ve\right) & =\left(-ve\right)\\ \left(-ve\right)\times\left(+ve\right) & =\left(-ve\right)\\ \left(-ve\right)\times\left(-ve\right) & =\left(+ve\right). \end{align*}\]

  1. The product of the terms.

Here are some examples:

\[\begin{array}{l} 1.\quad\left(-4\right)\times\left(-3b\right)=12b\\ 2.\quad-2\times6y=-12y\\ 3.\quad2e\times\left(-5e^{2}\right)=-10e^{3}\\ 4.\quad\left(-2u^{2}v\right)\times\left(-4v\right)=8u^{2}v^{2}\\ 5.\quad-3pq\times\left(-2q\right)\times p=6p^{2}q^{2} \end{array}\]

Division

In algebra, we often use fractions. For example: 4 In this case the top term, 2 is called the numerator, the bottom term 5, is called the denominator and the horizontal line between them is called the fraction bar, division bar or vinculum. \[ \frac{2}{5}=2\div5. \] Similarly for algebraic terms: \[ \frac{2x^{2}yz}{3xy^{2}}=2x^{2}yz\div3xy^{2}. \] When dividing algebraic terms:

  1. Rewrite as a fraction if necessary

  2. Expand any powers

  3. Establish the sign of the answer5 In doing the division, remember the basic rules for determining the sign of the quotient. \[\begin{align*} \left(+ve\right)\div\left(+ve\right) & =\left(+ve\right)\\ \left(+ve\right)\div\left(-ve\right) & =\left(-ve\right)\\ \left(-ve\right)\div\left(+ve\right) & =\left(-ve\right)\\ \left(-ve\right)\div\left(-ve\right) & =\left(+ve\right). \end{align*}\]

  4. Cancel any common factors

Examples

  1. Divide \(-12wyz\) by \(3yz\).
    Solution: \[\begin{align*} -12wyz\div3yz & =\frac{-12wyz}{3yz}\quad\textrm{write as a fraction}\\ & =-\frac{12wyz}{3yz}\quad\textrm{determine sign}\\ & =-4w\quad\textrm{cancel common factors}. \end{align*}\]

  2. Divide \(2m^{2}n\) by \(-6mn^{2}\).
    Solution: \[\begin{align*} 2m^{2}n\div6mn^{2} & =\frac{2m^{2}n}{-6mn^{2}}\\ & =-\frac{2m^{2}n}{6mn^{2}}\\ & =-\frac{m}{3n}. \end{align*}\]

  3. Simplify \(6a^{2}\times4ab\div12ab.\)
    Solution: \[\begin{align*} 6a^{2}\times4ab\div12ab & =\frac{6a^{2}\times4ab}{12ab}\quad\textrm{write as a fraction}\\ & =\frac{24a^{3}b}{12ab}\quad\textrm{establish sign and expand powers}\\ & =2a^{2}\quad\textrm{cancel common factors}. \end{align*}\]

  4. Divide \(m+2\) by \(4m\) \[ \left(m+2\right)\div4m=\frac{m+2}{4m}. \] There are no common factors and so it is not possible to simplify further.

For practice examples see Exercise 3.

Order of Operations

The basic operations of arithmetic are multiplication, division, addition and subtraction. Usually the order in which we perform the operations is important.

For example, what is the answer to the following arithmetic problem \[ 4+3\times2+5\;? \] At first sight there are several possible answers.

Working from left to right we get: \[\begin{align*} 4+3\times2+5 & =7\times2+5\\ & =14+5\\ & =19. \end{align*}\] Working from right to left we get: \[\begin{align*} 4+3\times2+5 & =4+3\times7\\ & =4+21\\ & =25. \end{align*}\]

If we do the multiplication first we get another answer: \[\begin{align*} 4+3\times2+5 & =4+6+5\\ & =15. \end{align*}\] Yet another answer is obtained by doing the additions first: \[\begin{align*} 4+3\times2+5 & =7\times7\\ & =49. \end{align*}\] Mathematicians don’t like imprecision. In order to allow only one answer to the problem we perform operations in the following order:

  1. Brackets

  2. Indices

  3. Multiplication and Division from left to right

  4. Addition and Subtraction

Using the first letters (bold) we get the abbreviation BIMDAS.

Applying this rule the answer to our problem is \[\begin{align*} 4+3\times2+5 & =4+6+5\quad\textrm{multiplication first}\\ & =15\quad\textrm{then addition}. \end{align*}\]

Examples:

  1. \(3\times2+4=6+4=10.\)

  2. \(3+2\times4=3+8=11\).

  3. \(\left(3+2\right)\times4=5\times4=20.\)

  4. \(3-2^{2}=3-2\times2=3-4=-1\).

  5. \(\left(3-2\right)^{2}=\left(3-2\right)\times\left(3-2\right)=1\times1=1\).

  6. \(3^{2}-2^{2}=3\times3-2\times2=9-4=5\).

  7. \(3st-3s\times4t=3st-12st=-9st\).

For some practice, see Exercise 4.

Exercise 1

Which of the five terms on the right is a like term with the term on the left?

\[\begin{array}{llllllll} 1) & 3x & | & 3 & 2x & 3x^{2} & 2xy & 4x^{2}a\\ 2) & 2ab & | & 2a & 2b & 3x^{2} & 6abc & 12ab\\ 3) & 2x^{2} & | & x & 2x & 5x^{2} & 4x & 4x^{3}\\ 4) & 3xy^{2} & | & 3 & 3xy & 3x^{2}xy^{2} & 3y^{2} & y^2x\\ 5) & 2m^{2}n & | & n & mn^{2} & 8mn & 2m^{2} & 4nm^{2}\\ 6) & 4ab^{2}c & | & 4 & 2ab^{2}c & 4abc & 8b^{2}c & 4cba \end{array}\]

\[\begin{array}{lllllllllllllll} 1.\;2x & & 2.\;12ab & & 3.\;5x^{2} & & 4.\;y^2x & & 5.\;4nm^{2} & & 6.\;2ab^{2}c\end{array}\]

Exercise 2

Simplify each of the following:

\[\begin{array}{lllllll} & & a)\;13x+4-3x-1 & & & & b)\;10mn+5m+12mn+6m\\ & & c)\;3xy^{2}+2xy+5xy^{2}+3xy & & & & d)\;5xy+6m-2xy-2m\\ & & e)\;x+y+2x-y & & & & f)\;3a+5b-a-6b\\ & & g)\;x+4y-x-2y & & & & h)\;7x-4m-5x-3m\\ & & i)\;4x-5x-3y+5x & & & & j)\;9mn-3m-n+4m^{2} \end{array}\]

\[\begin{array}{llllllllll} & a)\;10x+3 & & b)\;22mn+11m & & c)\;8xy^{2}+5xy & & d)\;3xy+4m & & e)\;3x\\ & f)\;2a-b & & g)\;2y & & h)\;2x-7m & & i)\;5x-3y & & j)\;9mn-3m-n+4m^{2} \end{array}\]

Exercise 3

Simplify the following algebraic expressions:

\[\begin{array}{lllllll} 1. & & a)\;5\times2k & & & & b)\;4a\times3ab\\ & & c)\;y\times3y & & & & d)\;4m\times\left(-3mn\right)\\ & & e)\;m\times39\times5 & & & & f)\;2ab\times3bc\times\left(-4\right)\\ & & g)\;2ab^{2}\times3ac & & & & h)\;4m\times\left(-5kmp\right)\\ \\ \\ 2. & & a)\;18ef\div6f & & & & b)\;-100uvw\div100w\\ & & c)\;24gh^{2}\div8gh & & & & d)\;3m^{2}n\div12mn^{2}\\ & & e)\;rs\times2st\div2s & & & & f)\;3jk\times12km\div9jkm\\ & & g)\;10p\times3qp\div16pq & & & & h)\;4yz\times5w^{2}z\div10wy \end{array}\]

\[\begin{array}{llllllll} 1. & a)\;10k & & b)\;12a^{2}b & & c)\;3y^{2} & & d)\;-12m^{2}n\\ & e)\;15mp & & f)\;-24ab^{2}c & & g)\;6a^{2}b^{2}c & & h)\;-20km^{2}p\\ \\ 2. & a)\;3e & & b)\;-uv & & c)\;3h & & d)\;m/4n\\ & e)\;rst & & f)\;4k & & g)\;15p/8 & & h)\;2wz^{2} \end{array}\]

Exercise 4

Simplify the following expressions:

\[\begin{array}{lllll} 1)\;18+\left(3\times\left(-5\right)\right) & & & & 2)\;3\times\left(-4\right)+\left(8\times2\right)\\ 3)\;10-5^{2}+3 & & & & 4)\;\left(10-5\right)^{2}+3\\ 5)\;10^{2}-5^{2} & & & & 6)\;\left(10-5\right)^{2}\\ 7)\;3m+2\times3m & & & & 8)\;6ab-3a\times4b\\ 9)\;16gh-4gh\times4 & & & & 10)\;9b-3b\times2k+2k\times b \end{array}\]

\[\begin{array}{lllllllll} 1.\;3 & & 2.\;4 & & 3.\;-12 & & 4.\;28 & & 5.\;75\\ 6.\;25 & & 7.\;9m & & 8.\;-6ab & & 9.\;0 & & 10.\;9b-4bk \end{array}\]

Download this page, A1.1 Algebraic operations (PDF 231KB)