Treci la conținut

Lecția 12 · 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

Urmărește-ți progresul

Creează un cont gratuit ca să bifezi lecțiile și să reiei de unde ai rămas, pe orice dispozitiv.