Decimal Approximations of Logarithms (Part 2)

While some common (i.e., base-10) logarithms work out evenly, like \log_{10} 10,000, most do not. Here is the typical output when a scientific calculator computes a logarithm:

To a student first learning logarithms, the answer is just an apparently random jumble of digits; indeed, it can proven that the answer is irrational. With a little prompting, a teacher can get his/her students wondering about how people 50 years ago could have figured this out without a calculator. This leads to a natural pedagogical question:

Can good Algebra II students, using only the tools at their disposal, understand how decimal expansions of base-10 logarithms could have been found before computers were invented?

Here’s a trial-and-error technique — an exploration activity — that is within the grasp of Algebra II students. It’s simple to understand; it’s just a lot of work. While I don’t have a specific reference, I’d be stunned if none of our ancestors tried something along these lines in the years between the discovery of logarithms (1614) and calculus (1666 or 1684).

To approximate \log_{10} x, look for integer powers of x that are close to powers of 10.

I’ll illustrate this idea with \log_{10} 3.

3^1 = 3

3^2 = 9

Not bad… already, we’ve come across a power of 3 that’s decently close to a power of 10. We see that

3^2 = 9 < 10^1

and therefore

\log_{10} 3^2 < 1

2 \log_{10} 3< 1

\log_{10} 3< \displaystyle \frac{1}{2} = 0.5

Let’s keep going. We just keep multiplying by 3 until we find something close to a power of 10. In principle, these calculations could be done by hand, but Algebra II students can speed things up a bit by using their scientific calculators.

3^3 = 27

3^4 = 81

3^5 = 243

3^6 = 729

3^7 = 2,187

3^8 = 6,561

3^9 = 19,683

3^{10} = 59,049

3^{11} = 177,147

3^{12} = 531,441

3^{13} = 1,594,323

3^{14} = 4,782,969

3^{15} = 14,348,907

3^{16} = 43,046,721

3^{17} = 129,140,163

3^{18} = 387,420,489

3^{19} = 1,162,261,467

3^{20} = 3,486,784,401

3^{21} = 10,460,353,203

This looks pretty good too. (Students using a standard ten-digit scientific calculator, of course, won’t be able to see all 11 digits.) We see that

3^{21} > 10^{10}

and therefore

\log_{10} 3^{21} > \log_{10} 10^{10}

21 \log_{10} 3 > 10

\log_{10} 3 > \displaystyle \frac{10}{21} = 0.476190\dots

Summarizing our work so far, we have

0.476190\dots < \log_{10} 3 < 0.5.

We also note that this latest approximation actually gives the first two digits in the decimal expansion of \log_{10} 3.

To get a better approximation of \log_{10} 3, we keep going. I wouldn’t blame Algebra II students a bit if they use their scientific calculators for these computations — but, ideally, they should realize that these calculations could be done by hand by someone very persistent.

3^{22} = 31,381,059,609

3^{23} = 94,143,178,827

3^{24} = 282,429,536,481

3^{25} = 847,288,609,443

3^{26} = 2,541,865,828,329

3^{27} = 7,625,597,484,987

3^{28} = 22,876,792,454,961

3^{29} = 68,630,377,364,883

3^{30} = 205,891,132,094,649

3^{31} = 617,673,396,283,947

3^{32} = 1,853,020,188,851,841

3^{33} = 5,559,060,566,555,523

3^{34} = 16,677,181,699,666,569

3^{35} = 50,031,545,098,999,707

3^{36} = 150,094,635,296,999,121

3^{37} = 450,283,905,890,997,363

3^{38} = 1,350,851,717,672,992,089

3^{39} = 4,052,555,153,018,976,267

3^{40} = 12,157,665,459,056,928,801

3^{41} = 36,472,996,377,170,786,403

3^{42} = 109,418,989,131,512,359,209

3^{43} = 328,256,967,394,537,077,627

3^{44} = 984,770,902,183,611,232,881

Using this last line, we obtain

3^{44} < 10^{21}

and therefore

\log_{10} 3^{44} < \log_{10} 10^{21}

44 \log_{10} 3 < 21

\log_{10} 3 < \displaystyle \frac{21}{44} = 0.477273\dots

Summarizing our work so far, we have

0.476190\dots < \log_{10} 3 < 0.477273\dots.

A quick check with a calculator shows that \log_{10} 3 = 0.477121\dots. In other words,

  • This technique actually works!
  • This last approximation of 0.477273\dots actually produced the first three decimal places of the correct answer!

With a little more work, the approximations

3^{109} \approx 1.014417574 \times 10^{52} > 10^{52}

3^{153} \approx 9.989689095 \times 10^{72} < 10^{73}

can be found, yielding the tighter inequalities

\displaystyle \frac{52}{109} < \log_{10} 3 < \displaystyle \frac{73}{153},

or

0.477064\dots < \log_{10} 3 < 0.477124.

Now we’re really getting close… the last approximation is accurate to five decimal places.

Decimal Approximations of Logarithms (Part 1)

My latest article on mathematics education, titled “Developing Intuition for Logarithms,” was published this month in the “My Favorite Lesson” section of the September 2018 issue of the journal Mathematics Teacher. This is a lesson that I taught for years to my Precalculus students, and I teach it currently to math majors who are aspiring high school teachers. Per copyright law, I can’t reproduce the article here, though the gist of the article appeared in an earlier blog post from five years ago.

Rather than repeat the article here, I thought I would write about some extra thoughts on developing intuition for logarithms that, due to space limitations, I was not able to include in the published article.

While some common (i.e., base-10) logarithms work out evenly, like \log_{10} 10,000, most do not. Here is the typical output when a scientific calculator computes a logarithm:

To a student first learning logarithms, the answer is just an apparently random jumble of digits; indeed, it can proven that the answer is irrational. With a little prompting, a teacher can get his/her students wondering about how people 50 years ago could have figured this out without a calculator. This leads to a natural pedagogical question:

Can good Algebra II students, using only the tools at their disposal, understand how decimal expansions of base-10 logarithms could have been found before computers were invented?

Students who know calculus, of course, can do these computations since

\log_{10} x = \displaystyle \frac{\ln x}{\ln 10},

and the Taylor series

\ln (1+t) = t - \displaystyle \frac{t^2}{2} + \frac{t^3}{3} - \frac{t^4}{4} + \dots,

a standard topic in second-semester calculus, can be used to calculate \ln x for values of x close to 1. However, a calculation using a power series is probably inaccessible to bright Algebra II students, no matter how precocious they are. (Besides, in real life, calculators don’t actually use Taylor series to perform these calculations; see the article CORDIC: How Hand Calculators Calculate, which appeared in College Mathematics Journal, for more details.)

In this series, I’ll discuss a technique that Algebra II students can use to find the decimal expansions of base-10 logarithms to surprisingly high precision using only tools that they’ve learned in Algebra II. This technique won’t be very efficient, but it should be completely accessible to students who are learning about base-10 logarithms for the first time. All that will be required are the Laws of Logarithms and a standard scientific calculator. A little bit of patience can yield the first few decimal places. And either a lot of patience, a teacher who knows how to use Wolfram Alpha appropriately, or a spreadsheet that I wrote can be used to obtain the decimal approximations of logarithms up to the digits displayed on a scientific calculator.

I’ll start this discussion in my next post.

Engaging students: Computing logarithms with base 10

In my capstone class for future secondary math teachers, I ask my students to come up with ideas for engaging their students with different topics in the secondary mathematics curriculum. In other words, the point of the assignment was not to devise a full-blown lesson plan on this topic. Instead, I asked my students to think about three different ways of getting their students interested in the topic in the first place.

I plan to share some of the best of these ideas on this blog (after asking my students’ permission, of course).

This student submission comes from my former student Katelyn Kutch. Her topic, from Precalculus: computing logarithms with base 10.

green line

How has this topic appeared in the news?

http://www.seeitmarket.com/the-log-blog-trading-with-music-and-logarithmic-scale-investing-14879/ . This website gives an insight into logarithms that many students would not know and I think that what is has to say is quite interesting. While this may not be a news article, it includes many methods in which logarithms can and are being used in the world. It also gives some insight into the history of logarithms. I feel like showing the students this website would get them interested in logarithms because they can see what logarithms can do, like tell us the magnitude of an earthquake on the Richter Scale. Students may not find logarithms interesting, but I feel like most would find this interesting.

green line

How could you as a teacher create an activity or project that involves your topic?

http://mathequalslove.blogspot.com/2014/01/introducing-logarithms-with-foldables.html . This website gives multiples games that teachers can do with logarithms, not just base 10, but for all logarithms. The teacher had foldables that the students put their notes in for logarithms and personally, as a kinesthetic learner, that is something that I loved when teachers did it. It helped me visually put down the notes and it was something that I could keep to refer to. The teacher also had Log War, Log Bingo, and Log Speed Dating. Students always respond better when a sense of fun is involved in the lesson and this teacher proved that when one of her students asked about another game involving the subject. The games are ones that students interact with the teacher, with each other, and it enhances their own thinking because they are having to do calculations, correctly, in order to win the game. This seems like a wonderful website to pull from when wanting to do something fun with a lesson.

 

green line

What interesting things can you say about the people who contributed to the discovery and/or the development of this topic?

In 1614 a Scottish mathematician by the name of John Napier published his discovery for logarithms. Napier worked with an English mathematician by the name of Henry Briggs. The two of them adjusted Napier’s original logarithm to the form that we use today. After Napier passed away, Briggs continued their work alone and published, in 1624, a table of logarithms that calculated 14 decimal places for numbers between 1 and 20,000, and numbers between 90,000 and 100,000. In 1628 Adriaan Vlacq, a Dutch publisher, published a 10 decimal place table for values between 1 and 100,000, which included the values for 70,000 that were not previously published. Both men worked on setting up log trigonometric tables. Later, the notation Log(y) was adopted in 1675, by Leibniz, and soon after he connected Log(y) to the integral of dy/y.

 

 

Engaging students: Solving logarithmic equations

In my capstone class for future secondary math teachers, I ask my students to come up with ideas for engaging their students with different topics in the secondary mathematics curriculum. In other words, the point of the assignment was not to devise a full-blown lesson plan on this topic. Instead, I asked my students to think about three different ways of getting their students interested in the topic in the first place.

I plan to share some of the best of these ideas on this blog (after asking my students’ permission, of course).

This student submission again comes from my former student Anna Park. Her topic: how to engage Algebra II or Precalculus students when solving logarithmic equations.

green line

Application:

 

The students will each be given a card with a) a logarithmic equation solution and b) a new logarithmic equation. The student that has a number one on the back of their card will begin the game. The student will stand up and tell the rest of the class what they have for b) the Log equation they have, then the student with the corresponding card will read their solution a) to the first students problem. If that student is correct they will read part b) the new log equation. Then another student that has the logarithmic solution will stand up and say their solution a) and then read their new log equation b). This will continue until the last student stands with their new equation and it loops back to student number one’s solution. This will end the game. This game requires students to solve logarithmic equations and recognize how to rewrite a logarithmic equation. There will be an appropriate amount of time before the game begins so the students can work backwards to find their logarithmic equation that matches their solution.

 

green line

History:

 

John Napier was the mathematician that introduced logarithms. The way he came up with logarithms is very fascinating, especially how long it took him to develop the logarithm table. He first published his work on logarithms in 1614. He published the findings under “A Description of the Wonderful Table of Logarithms.” He named them logarithms after two Greek words; logos, meaning proportion, and arithmos, meaning number. His discovery was based off of his imagination of two particles traveling along two parallel lines. One line had infinite length and the other had a finite length. He imagined both particles starting at the same horizontal positions with the same velocity. The first line’s velocity was proportional to the distance, which meant that the particle was covering equal distance in equal time. Whereas the second particle’s velocity was proportional with the distance remaining. His findings were that the distance not covered by the second line was the sine and the distance of the first line was the logarithm of the sine. This showed that the sines decreased and the logarithms increased. This also resulted in the sines decreasing in geometric proportion and the logarithms increasing in arithmetic proportion. He made his logarithm tables by taking increments of arc (theta) every minute, listing the sine of each minute by arc, and the corresponding logarithm. Completing his tables, Napier computed roughly ten million entries, and he selected the appropriate values. Napier said that his findings and completing this table took him about 20 years, which means he probably started his work in 1594.

Resource: http://www.maa.org/press/periodicals/convergence/logarithms-the-early-history-of-a-familiar-function-john-napier-introduces-logarithms

 

 

green line

Technology:

 

I have found that when it comes to remembering rules, sometime the cheesiest of songs help student’s to remember the rules. It is also a very good engage before the students start with the lesson. The chorus is typically the most important content for the student’s to remember. Here are two videos that would help the student’s to remember how to compute logarithms.

The first video is a song from Youtube set to the song Thriller by Michael Jackson. The song is produced very well and is very engaging throughout the whole song.

The Second video is of a student’s project  on Youtube of how to remember how to compute logarithms to the song Under the sea by the little mermaid. Though the production isn’t as good as the first video, the young girls do a good job at explaining how to solve logarithms.

 

 

My Favorite One-Liners: Part 80

In this series, I’m compiling some of the quips and one-liners that I’ll use with my students to hopefully make my lessons more memorable for them.

Today’s awful pun comes courtesy of Math With Bad Drawings. Suppose we need to solve for x in the following equation:

2^{2x+1} = 3^{x}.

Naturally, the first step is taking the logarithm of both sides. But with which base? There are two reasonable options for most handheld scientific calculators: base-10 and base-e. So I’ll tell the class my preference:

I’m organic; I only use natural logs.

 

My Favorite One-Liners: Part 68

In this series, I’m compiling some of the quips and one-liners that I’ll use with my students to hopefully make my lessons more memorable for them.

When discussing the Laws of Logarithms, I’ll make a big deal of the fact that one law converts a multiplication problem into a simpler addition problem, while another law converts exponentiation into a simpler multiplication problem.

After a few practice problems — and about 3 minutes before the end of class — I’ll inform my class that I’m about to tell the world’s worst math joke. Here it is:

After the flood, the ark landed, and Noah and the animals got out. And God said to Noah, “Go forth, be fruitful, and multiply.” So they disembarked.

Some time later, Noah went walking around and saw the two dogs with their baby puppies and the two cats with their baby kittens. However, he also came across two unhappy, frustrated, and disgruntled snakes. The snakes said to Noah, “We’re having some problems here; would you mind knocking down a tree for us?”

Noah says, “OK,” knocks down a tree, and goes off to continue his inspections.

Some time later, Noah returns, and sure enough, the two snakes are surrounding by baby snakes. Noah asked, “What happened?”

The snakes replied, “Well, you see, we’re adders. We need logs to multiply.”

After the laughter and groans subside, I then dismiss my class for the day:

Go forth, and multiply (pointing to the door of the classroom). For most of you, don’t be fruitful yet, but multiply. You’re dismissed.

My Favorite One-Liners: Part 8

In this series, I’m compiling some of the quips and one-liners that I’ll use with my students to hopefully make my lessons more memorable for them.

At many layers of the mathematics curriculum, students learn about that various functions can essentially commute with each other. In other words, the order in which the operations is performed doesn’t affect the final answer. Here’s a partial list off the top of my head:

  1. Arithmetic/Algebra: a \cdot (b + c) = a \cdot b + a \cdot c. This of course is commonly called the distributive property (and not the commutative property), but the essential idea is that the same answer is obtained whether the multiplications are performed first or if the addition is performed first.
  2. Algebra: If a,b > 0, then \sqrt{ab} = \sqrt{a} \sqrt{b}.
  3. Algebra: If a,b > 0 and x is any real number, then (ab)^x = a^x b^x.
  4. Precalculus: \displaystyle \sum_{i=1}^n (a_i+b_i) = \displaystyle \sum_{i=1}^n a_i + \sum_{i=1}^n b_i.
  5. Precalculus: \displaystyle \sum_{i=1}^n c a_i = c \displaystyle \sum_{i=1}^n a_i.
  6. Calculus: If f is continuous at an interior point c, then \displaystyle \lim_{x \to c} f(x) = f(c).
  7. Calculus: If f and g are differentiable, then (f+g)' = f' + g'.
  8. Calculus: If f is differentiable and c is a constant, then (cf)' = cf'.
  9. Calculus: If f and g are integrable, then \int (f+g) = \int f + \int g.
  10. Calculus: If f is integrable and c is a constant, then \int cf = c \int f.
  11. Calculus: If f: \mathbb{R}^2 \to \mathbb{R} is integrable, \iint f(x,y) dx dy = \iint f(x,y) dy dx.
  12. Calculus: For most differentiable function f: \mathbb{R}^2 \to \mathbb{R} that arise in practice, \displaystyle \frac{\partial^2 f}{\partial x \partial y} = \displaystyle \frac{\partial^2 f}{\partial y \partial x}.
  13. Probability: If X and Y are random variables, then E(X+Y) = E(X) + E(Y).
  14. Probability: If X is a random variable and c is a constant, then E(cX) = c E(X).
  15. Probability: If X and Y are independent random variables, then E(XY) = E(X) E(Y).
  16. Probability: If X and Y are independent random variables, then \hbox{Var}(X+Y) = \hbox{Var}(X) + \hbox{Var}(Y).
  17. Set theory: If A, B, and C are sets, then A \cup (B \cap C) = (A \cup B) \cap (A \cup C).
  18. Set theory: If A, B, and C are sets, then A \cap (B \cup C) = (A \cap B) \cup (A \cap C).

However, there are plenty of instances when two functions do not commute. Most of these, of course, are common mistakes that students make when they first encounter these concepts. Here’s a partial list off the top of my head. (For all of these, the inequality sign means that the two sides do not have to be equal… though there may be special cases when equality happens to happen.)

  1. Algebra: (a+b)^x \ne a^x + b^x if x \ne 1. Important special cases are x = 2, x = 1/2, and x = -1.
  2. Algebra/Precalculus: \log_b(x+y) = \log_b x + \log_b y. I call this the third classic blunder.
  3. Precalculus: (f \circ g)(x) \ne (g \circ f)(x).
  4. Precalculus: \sin(x+y) \ne \sin x + \sin y, \cos(x+y) \ne \cos x + \cos y, etc.
  5. Precalculus: \displaystyle \sum_{i=1}^n (a_i b_i) \ne \displaystyle \left(\sum_{i=1}^n a_i \right) \left( \sum_{i=1}^n b_i \right).
  6. Calculus: (fg)' \ne f' \cdot g'.
  7. Calculus \left( \displaystyle \frac{f}{g} \right)' \ne \displaystyle \frac{f'}{g'}
  8. Calculus: \int fg \ne \left( \int f \right) \left( \int g \right).
  9. Probability: If X and Y are dependent random variables, then E(XY) \ne E(X) E(Y).
  10. Probability: If X and Y are dependent random variables, then \hbox{Var}(X+Y) \ne \hbox{Var}(X) + \hbox{Var}(Y).

All this to say, it’s a big deal when two functions commute, because this doesn’t happen all the time.

green lineI wish I could remember the speaker’s name, but I heard the following one-liner at a state mathematics conference many years ago, and I’ve used it to great effect in my classes ever since. Whenever I present a property where two functions commute, I’ll say, “In other words, the order of operations does not matter. This is a big deal, because, in real life, the order of operations usually is important. For example, this morning, you probably got dressed and then went outside. The order was important.”

 

My Favorite One-Liners: Part 1

In this series, I’m compiling some of the quips and one-liners that I’ll use with my students to hopefully make my lessons more memorable for them.

One of the most common student mistakes with logarithms is thinking that

\log_b(x+y) = \log_b x + \log_b y.

Whenever students make this mistake, I call it the Third Classic Blunder. The first classic blunder, of course, is getting into a major land war in Asia. The second classic blunder is getting into a battle of wits with a Sicilian when death is on the line. And the third classic blunder is thinking that \log_b(x+y) somehow simplfies as \log_b x + \log_b y.

Sadly, as the years pass, fewer and fewer students immediately get the cultural reference. On the bright side, it’s also an opportunity to introduce a new generation to one of the great cinematic masterpieces of all time.

One of my colleagues calls this mistake the Universal Distributive Law, where the \log_b distributes just as if x+y was being multiplied by a constant. Other mistakes in this vein include  \sqrt{x+y} = \sqrt{x} + \sqrt{y}  and  (x+y)^2 = x^2 + y^2.

Along the same lines, other classic blunders are thinking that

\left(\log_b x\right)^n  simplifies as  \log_b \left(x^n \right)

and that

\displaystyle \frac{\log_b x}{\log_b y}  simplifies as  \log_b \left( \frac{x}{y} \right).

I’m continually amazed at the number of good students who intellectually know that the above equations are false but panic and use them when solving a problem.

Computing e to Any Power: Index

I’m doing something that I should have done a long time ago: collecting a series of posts into one single post. The following links comprised my series examining one of Richard Feynman’s anecdotes about mentally computing e^x for three different values of x.

Part 1: Feynman’s anecdote.

Part 2: Logarithm and antilogarithm tables from the 1940s.

Part 3: A closer look at Feynman’s computation of e^{3.3}.

Part 4: A closer look at Feynman’s computation of e^{3}.

Part 5: A closer look at Feynman’s computation of e^{1.4}.