Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 38 ยท Integers and Rational Numbers

Multiplying and Dividing Integers

Learn the sign rules for multiplying and dividing positive and negative integers, why a negative times a negative is positive, with examples and code.

Multiplying and dividing integers needs just one new idea: the sign of the answer. The size of the answer comes from the absolute values, exactly as with whole numbers.

Multiplication as repeated addition

3 ร— (โˆ’4) means three groups of โˆ’4: (โˆ’4) + (โˆ’4) + (โˆ’4) = โˆ’12. So a positive times a negative is negative.

What about (โˆ’3) ร— 4? By the commutative property it equals 4 ร— (โˆ’3) = โˆ’12. Also negative.

And (โˆ’3) ร— (โˆ’4)? Look at a pattern. Hold the second factor at โˆ’4 and decrease the first:

Product Result
3 ร— (โˆ’4) โˆ’12
2 ร— (โˆ’4) โˆ’8
1 ร— (โˆ’4) โˆ’4
0 ร— (โˆ’4) 0
(โˆ’1) ร— (โˆ’4) 4
(โˆ’2) ร— (โˆ’4) 8

Each step down in the first factor adds 4 to the result. For the pattern to continue, (โˆ’1) ร— (โˆ’4) must be +4. That is why a negative times a negative is positive. (The distributive property gives a formal proof, but the pattern shows the idea.)

The sign rules

Signs of the factors Sign of the product
positive ร— positive positive
negative ร— negative positive
positive ร— negative negative
negative ร— positive negative

A quick method: same signs โ†’ positive; different signs โ†’ negative.

For a product of several numbers, count the negatives. An even number of negative factors gives a positive product, an odd number gives a negative one. For example, (โˆ’2) ร— (โˆ’3) ร— (โˆ’4): first (โˆ’2) ร— (โˆ’3) = 6, then 6 ร— (โˆ’4) = โˆ’24. Three negatives: negative.

Python Sign of a product by counting negatives

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Dividing integers

Division is the inverse of multiplication, so the sign rules are the same:

  • 12 รท (โˆ’3) = โˆ’4, because (โˆ’4) ร— (โˆ’3) = 12.
  • (โˆ’12) รท (โˆ’3) = 4, because 4 ร— (โˆ’3) = โˆ’12.
  • (โˆ’12) รท 3 = โˆ’4.
  • 0 รท (โˆ’5) = 0, while (โˆ’5) รท 0 is undefined.

Same signs โ†’ positive quotient; different signs โ†’ negative quotient.

Python Multiplication and division tables with signs

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

(Python prints 0.0 or -0.0 in some zero cases; the mathematical value is 0.)

Exponents and signs

An exponent counts how many times the base is multiplied. With a negative base:

  • (โˆ’2)ยฒ = (โˆ’2)(โˆ’2) = 4
  • (โˆ’2)ยณ = (โˆ’2)(โˆ’2)(โˆ’2) = โˆ’8
  • (โˆ’2)โด = 16

An even power of a negative number is positive; an odd power is negative. And as before, โˆ’2ยฒ means โˆ’(2ยฒ) = โˆ’4: the exponent applies only to the 2.

Order of operations with integers

Evaluate โˆ’3 ร— (4 โˆ’ 7)ยฒ + 10 รท (โˆ’5):

  1. Parentheses: 4 โˆ’ 7 = โˆ’3.
  2. Exponent: (โˆ’3)ยฒ = 9.
  3. Multiplication and division left to right: โˆ’3 ร— 9 = โˆ’27 and 10 รท (โˆ’5) = โˆ’2.
  4. Addition: โˆ’27 + (โˆ’2) = โˆ’29.
Python Check the calculation above

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Real-world use: average change

A town's temperature changes by โˆ’3 degrees each hour for 5 hours. Total change: 5 ร— (โˆ’3) = โˆ’15 degrees. If a diver descends 2 meters per minute for 6 minutes, the depth change is 6 ร— (โˆ’2) = โˆ’12 meters.

When unsure of a sign, estimate with a simpler pair. To check (โˆ’7) ร— (โˆ’6), think (โˆ’1) ร— (โˆ’1) = 1: negative times negative is positive, so the answer is 42, not โˆ’42.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is (โˆ’8) ร— (โˆ’5)?

    Same signs give a positive product: 8 ร— 5 = 40.
  2. 2. What is (โˆ’36) รท 9?

    Different signs give a negative quotient: 36 รท 9 = 4, so the answer is โˆ’4.
  3. 3. What is the sign of (โˆ’1) ร— (โˆ’2) ร— (โˆ’3) ร— (โˆ’4) ร— (โˆ’5)?

    There are five negative factors, an odd number, so the product is negative (it equals โˆ’120).
  4. 4. What is (โˆ’3)ยณ?

    (โˆ’3)(โˆ’3)(โˆ’3) = 9 ร— (โˆ’3) = โˆ’27.

Summary

  • Same signs give a positive product or quotient; different signs give a negative one.
  • A product with an even number of negative factors is positive.
  • Even powers of negatives are positive, odd powers negative; parentheses decide the base.
  • You cannot divide by zero, but 0 รท n = 0 for any non-zero n.

Next: Fraction Arithmetic