Games
Problems
Go Pro!


Do you have a question you would like to ask Professor Puzzler? Click here to ask your question!

This question comes from one of my Pre-Cal students, who wants to know if there's a nice rule like the "sum and product" factoring rule, that works when the roots are complex numbers.

The sum-and-product method he's referring to is this:

If we have a quadratic x2 + bx + c, and we can find two numbers (let's call them m and n) that add to b and multiply to c, then the quadratic factors into (x + m)(x + n). Here's an example:

Factor x2 + 13x + 36.

In order to factor this, I look for two numbers that add to 13, and multiply to 36. Can you find them? I usually start by asking, "What are two numbers that multiply to 36?" The first pair I think of is 6 x 6. But 6 + 6 isn't 13, so that doesn't work. Next I think of 9 x 4. Aha! 9 + 4 is 13. So, since 9 x 4 = 36 and 9 x 4 = 13, I conclude that:

x2 + 13x + 36 = (x + 4)(x + 9).

Okay, so now the question is, what if the quadratic factors with complex numbers? Is there a nice way of doing this factoring rule?

Let's start with an example:

x2 - 4x + 5

If I knew that the factorization of this resulted in complex numbers, I would remember another rule, that complex roots come in pairs: if one root is a + bi, then the other is a - bi.

So, we look for two numbers such that:

(a + bi) + (a - bi) = -4
(a + bi)(a - bi) = 5

Simplifying these gives:

2a = -4, or a = -2
a2 + b2 = 5
4 + b2 = 5
b2 = 1
b = +/- 1

Therefore, this factors as follows:

x2 - 4x + 5 = (x - 2 - i)(x - 2 + i) Multiply this out, and sure enough, it's true.

Let's try generalizing this a bit. Suppose the quadratic was x2 + mx + n, and we wanted to find complex roots with the sum and product method.

(a + bi) + (a - bi) = m
(a + bi)(a - bi) = n

2a = m
a2 + b= n

a = m/2

m2/4 + b2 = n
b = SQR(n - m2/4)

So let's take another example, and put our rule into practice.

x2 + 6x + 13

a is half of 6, or 3.

b is SQR{13 - 62/4) = SQR{13 - 9} = 2.

Therefore x2 + 6x + 13 = (x +3 + 2i)(x + 3 - 2i).

This isn't too bad, but it presumes that the leading coefficient of the quadratic is 1; things might get a bit dicier if it wasn't. And, of course, if you're paying close attention, the result we obtain is actually just a slightly re-arranged version of the quadratic formula as it would appear in the special case of the leading coefficient being one!

Everett, from Illinois, writes, "I was born in 1937 in Southern Illinois, Franklin County. We were not taught PEMDAS in school. When did they start teaching this order of operations. Is it taught all over the state now?"

Hi Everett, since the beginning of people writing down mathematical ideas, mathematicians have had to develop conventions for indicating the meaning of expressions on paper. Those rules have not always been consistent. For instance, as a precursor to parentheses, some mathematicians used to write expressions with a horizontal bar over the top to indicate that things should be grouped.

Consider the expressions 7 x 2 + 3. This looks like it should be 14 + 3 = 17. But if the author of a text wanted the addition to be done first, he would write:

    _____
7 x 2 + 3

Typographically, this was cumbersome, and eventually led to the idea that parentheses could be used, and would be simpler to write. This was first suggested in the early 1600s, so it was in vogue as a mathematical ordering notation long before you were born.

Exponents were first used much earlier than the 1600s, but there was no "official" way to write them. Some used Roman Numerals for exponents, some wrote a number after a variable, but not raised (thus, 3x meant 3 times x, but x3 meant x to the third power). It was probably Rene Descartes who made the raised notation popular, and it became the standard. Descartes was doing this in the mid 1600s (not too long after the parentheses started becoming popular). And because of the way it was written, outside the normal baseline of the equation, it had an implicit ordering to it. You would never see the following expression:

23 + 1

and interpret it as though the 3 and the 1 should be combined first, and then 2 raised to the 4th power.

So there you have the first two elements of PEMDAS - parentheses and exponents - that have been implicitly understood since the 1600s.

As for multiplication and division coming before addition and subtraction, I'm not clear on exactly when these became part of the standard ordering notation. However, if you took an Algebra class in high school, you used this ordering of operations, even if no one taught you a name for what you were doing. Consider the following examples:

Example One: Multiplication before Addition
5 + 3x

If multiplication was not evaluated before addition, this would be evaluated (as some of my Algebra students like to do) as:

5 + 3x = 5 + 3 · x = (5 + 3)x = 8x.

The ordering of multiplication and addition was implictly given in the rules for how we can manipulate terms in an expression.

Example Two: Division before Addition
5 + 1/x 

If division was not evaluated before addition, this would be evaluated as (5 + 1)/x or 6/x. Again, this order of operations was inherent in the rules for manipulating terms of an algebraic expression.

Which brings me to the answer to your question. First, I do think it's possible that you were never taught PEMDAS as a specific notational convention, but all the rules of the PEMDAS mnemonic were in existence long before you were born. Secondly, even if you weren't taught it specifically, you still used it when you did Algebra, and if you passed your algebra class, then you were doing it correctly! Finally, yes, PEMDAS (or BODMAS*) is taught consistently worldwide. There are still arguments that arise about some ambiguous notations (you may have read one or more posts about those), but PEMDAS is the standard convention for interpreting expressions worldwide.

* BODMAS is used (I believe) in Britain, and perhaps other places as well. B = Brackets, O = Order. Brackets are parentheses, of course, and Order is the word used for Exponents, so even though it looks different, it's the same convention.

S. Ventar writes, "I saw video that explains divisibility for 19. Multiply the last digit by 2 and add to left over digits. repeat until result two digits multiple of 19. Why does method work?"

Hi S! That's a great question. Let's do an example first, to make sure everyone understands the method. Let's take the number 65968 and do the process on it. Ready?

65968: 6596 + 2 x 8 = 6612
6612: 661 + 2 x 2 = 665
665: 66 + 2 x 5 = 76
76: 7 + 2 x 6 = 19

Since the result of this repeated process is 19, the number is divisible by 19. Note that you can stop the process anywhere you happen to know that a number is a multiple of 19. For instance, if you knew that 76 was a multiple of 19, you wouldn't have to do the last step. Similarly, if you knew that 76 wasn't a multiple of 19, you could stop there.

For completeness, let's do one that isn't a multiple of 19, and then we'll explore your questions of why this works. Let's do the number 6121.

6121: 612 + 2 x 1 = 614
614: 61 + 2 x 4 = 69
69: 6 + 2 x 9 = 24

And I know that 24 is not divisible by 19, so I conclude 6121 is not divisible by 19 either.

Before I go any further, I want to introduce you (in case you're unfamiliar) with a branch of mathematics we call "modular arithmetic." In modular arithmetic, we aren't dealing with equations; instead, we're dealing with something called "congruences." A congruence looks like this:

a ≡ b mod c

It looks like an equation, except that instead of an equals sign, the symbol in the middle has three bars. We read this congruence like this:

"a is congruent to b mod c."

It's a short-hand way of saying that if you subtract b from a, you get a multiple of c.

Thus, all of the following are true:

7 ≡ 1 mod 3 (7 - 1 = 6, which is a multiple of 3)
10 ≡ 1 mod 3 (10 - 1 = 9, which is a multiple of 3)
15 ≡ 0 mod 5 (15 - 0 = 15, which is a multiple of 5).

There are a couple of nice rules for congruences that will help us see why this divisibility rule works.

Multiplicative Congruence Property
If a ≡ b mod c, then ax ≡ bx mod c.

Additive Congruence Property
If a ≡ b mod c, and d ≡ e mod c, then a + d ≡ b + e mod c.

These should look very familiar to you; they are just like the multiplicative and additive properties for equality, except that they involve congruences (with the same modular base - note that the c stays constant throughout!).

With all of this in mind, let's explore what happens with our 19 divisibility rule. First of all, I'll start by pointing out that any integer can be written in the form 10x + y, with the y representing the last digit, and x representing the number formed by all the other digits. Here are some examples:

145: x = 14, y = 5; 145 = 10(14) + 5
32794: x = 3279, y = 4; 32794 = 10(3279) + 4

Let's suppose we have a number K which is divisible by 19. We can write K = 10x + y, for some integer x, and y representing the last digit of K. Using congruences, we can write:

Congruence 1. 10x + y ≡ 0 mod 19 

Now, just because K is divisible by 19 doesn't mean that 10x is divisible by 19. Let's say that when we divide 10x by 19, we get a remainder of z. This means we can write:

Congruence 2.  10x ≡ z mod 19

Subtracting the second congruence from the first gives us the following:

Congruence 3. y ≡ -z mod 19

If we do our process on the number 10x + y, we obtain the following: x + 2y. (divide 10x by 10, and add twice the last digit). Remember this result, because we're going to return to it later! If we start with 10x + y, the next number in our process is x + 2y. If we can show that x + 2y is congruent to 0 mod 19 whenever 10x + y is congruent to 0 mod 19, then we'll have shown that the divisibility rule works (because each step in the process will recursively be a multiple of 19 as well).

Now it's time to invoke the Multiplicative Congruence Property on Congruences 2 and 3, using the number 2 as our multiplier:

Congruence 4.  20x ≡ 2z mod 19 

Congruence 5.  2y ≡ -2z mod 19 

Now we note that 19x has no remainder when divided by 19, because x is an integer, so 19x must be a multiple of 19. This means:

Congruence 6.  19x ≡ 0 mod 19

Combining 4 and 6, using the Additive Congruence Property (technically, subtractive property, or multiplication by -1 and then addition) gives us:

Congruence 7.  x ≡ 2z mod 19 

Now add together Congruences 5 and 7:

Congruence 8. 2y + x ≡ -2z + 2z mod 19 

Congruence 9. 2y + x ≡ 0 mod 19.

In other words: if you start with a multiple of 19, and do the process described, you'll end up with another multiple of 19. And if you do the process on that number, you'll still have a multiple of 19. And so on, and so on. And that's why the process works.

Incidentally, I should add that as far as I know, no one actually uses this divisibility rule for anything; the more cumbersome a divisibility rule is, the less useful it is compared to doing long division. After all, if a number is divisible by 19, you probably want to know what the other factor is, so you'll end up doing long division anyway!

We recently had a blizzard up here in the north. We got 22 inches of snow, and although I've seen bigger storms, it's been a long time since I've seen one this big. You can see my boy here playing with his shovel on top of a newly plowed snowbank. You can put money on the fact that no one is going to be using that swingset behind him for a few months!

A friend commented that "it's snowing to beat the band," and then added that "to beat the band" is one of those strange English idioms that most of us can't even explain.

So let's try to explain it! Part of the difficulty with this idiom is that there are two words in it that can have multiple meanings:

Beat (verb)

  • To strike violently (My child beat on that snowbank with his shovel.)
  • To gain victory over (He beat us all in a game of "King of the Snowbank.")
  • To pulsate (Climbing on top of snowbanks makes his heart beat faster!)
  • To stir (You need to thoroughly beat the egg whites when making meringue.)

Band (noun)

  • a loop designed to hold things together (a rubber band)
  • a stripe (A mallard has a white band around its neck.)
  • a range of frequencies (the AM band, the FM band, etc)
  • a group of people with a common interest (Robin Hood's Merry Men were a band of bandits)
  • a group of musicians performing together (Seventy-six trombones would make for a very large band.)

Now, with four different verb meanings, and five different noun meanings, our knowledge of counting principles helps us to determine that there are 20 different possible meanings for this idiom!

Maybe it means "to violently strike Robin Hood's Merry Men," or "to pulsate a mallard's neck," or "to stir the FM band."

Okay, these are all silly. The definitions we're looking for are "to gain victory over" and "a group of musicians performing together."

The earliest usages of the phrase involve someone playing a musical instrument or singing loudly enough to overpower a musical band. If you "sing to beat the band," that means you're singing loudly enough that people can hear you over the sound of the band playing. Generally, nowadays, we don't think about singing loudly enough to be heard over a band, because we have microphones to help amplify our voices. But the first print appearances of this phrase occured right around the time Edison and others were developing the microphone (and they were being used for recording purposes rather than for live performances).

Eventually, the phrase took on a more generic meaning. The phrase now simply suggests a superlative. When I say that my little girl talks to beat the band, I'm not saying she talks loudly; I'm saying that she talks a lot! Similarly, when I say that the snow is falling to beat the band, I'm not saying it's falling loudly! 


I should add that there is some argument out there that it's a variation on the phrase "beat Banagher" or maybe "beat Banaghan," both of which would be Irish references to...well, it seems that even the Irish aren't fully convinced, since they're not sure how to spell it! Regardless, the first print references we have make it clear that we're using the music definition of band, so the Banagh (er/an) controversy isn't terribly relevant to our understanding of the phrase!

Since it's almost the new year, this image (click the image for a larger view) is making the rounds on facebook again, and everyone is reading it and saying, "WHAT? How does that work out to $667.95?"

The answer is, it doesn't. It works out to exactly what you thought it would work out to: 365 pennies, or $3.65. Unless it was Leap Year, and then it would work out to $3.66. Not terribly hard math.

However, even though "a penny a day" is what they said, "a penny a day" is not what they meant. How do I know that? I'll show you in just a minute.

What they meant was, on January 1st you put in one penny. On January 2nd, you put in two pennies. On the 3rd, three pennies. And so on, until December 31st, when you put in 365 pennies, because it's the 365th day of the year.

How do I know that's what they meant? Because there's a really nice formula to calculate the sum of the first n integers:

Sum = n(n + 1)/2

In this case, n = 365, so the sum is:

Sum = 365(365 + 1)/2 = 66,795.

And that's how I know that's what they meant - because if that's what they meant, the math works out correctly to $667.95.

And by the way...if it was leap year?

Sum = 366(366 + 1)/2 = 67,161, or $671.61.

So yes, this will work out to save you a pretty good sum of money by the end of the year. Maybe enough to pay a month's rent, depending on where you live!

Of course, it's not as good as doubling the number of pennies each day; that would save you a boatload of money over the course of a year:

1 + 2 + 4 + ... + 2n = 2n + 1 - 1

So: 1 + 2 + 4 + ... + 2365 = 2366  - 1 = 1.5 x 10110.*

Actually, scratch my last comment; that's not a boatload of money. If a penny's volume is 0.35 cm3, or 0.00000035 m3, that's a volume of 5.25 x 10103 m3. Considering the volume of the sun is 1.4 x 1027 m3, I don't think you're going to fit those pennies in a jar, a boat, or even all the planets of the solar system. Maybe we should just stick to the original plan.

Incidentally, there's also a "Dollar a Week Challenge" in which you save one dollar the first week, two dollars the second week, and so on for an entire year. It sounds like a lot more, since you're saving a dollar instead of a penny, but there are only 52 weeks in the year, so it works out like this:

Sum = 52(52 + 1)/2 = $1,378, which is only a litte more than twice the penny challenge.

If you wanted to get really interesting, you could do a "Dollar Square Weekly Challenge," which would look something like this:

In the first week, you save 12 = 1 dollar.
In the second week, you save 22 = 4 dollars.

And so forth. It turns out, there's a nice formula for the sum of squares as well:

Sum = n(n + 1)(2n + 1)/6

Sum = 52(52 + 1)(2 x 52 + 1)/6 = $48,230. That's a lot of money! How would it compare to a Penny Square Daily Challenge?

Sum = 365(365 + 1)(2 x 365 + 1)/6 = 16,275,715 pennies, or $162,757.15. So even though the Dollar Challenge saves more than the Penny Challenge, the Penny Square Challenge saves more than the Dollar Square Challenge.

It would be interesting to see how many weeks you'd have to do the Dollar Square Challenge in order for it to surpass the Penny Square Challenge for a year. I'll leave that do the reader to figure out!


* This formula is actually for a leap year. Since the first term of the sequence is 20, the 366th term is 2365.

Older posts

Ask Professor Puzzler

Do you have a question you would like to ask Professor Puzzler? Click here to ask your question!
Like us on Facebook to get updates about new resources
Home
Pro Membership
About
Privacy