Square roots and Logarithms Without a Calculator: Index

I’m doing something that I should have done a long time ago: collect past series of posts into a single, easy-to-reference post. The following posts formed my series on computing square roots and logarithms without a calculator (with the latest post added).

Part 1: Method #1: Trial and error.

Part 2: Method #2: An algorithm comparable to long division.

Part 3: Method #3: Introduction to logarithmic tables.

Part 4: Finding antilogarithms with a table.

Part 5: Pedagogical and historical thoughts on log tables.

Part 6: Computation of square roots using a log table.

Part 7: Method #4: Slide rules

Part 8: Method #5: By hand, using a couple of known logarithms base 10, the change of base formula, and the Taylor approximation \ln(1+x) \approx x.

Part 9: An in-class activity for getting students comfortable with logarithms when seen for the first time.

Part 10: Method #6: Mentally… anecdotes from Nobel Prize-winning physicist Richard P. Feynman and me.

Part 11: Method #7: Newton’s Method.

Part 12: Method #8: The formula \sqrt{b} \approx \displaystyle \frac{a+b}{2\sqrt{a}}

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 Jonathan Chen. His topic, from Precalculus: computing logarithms with base 10.

green line

What interesting (i.e., uncontrived) word problems using this topic can your students do now?

Computing logarithms with base 10 can appear in many scientific applications for word problems. To define the acidity or alkalinity of a substance, Chemists use the formula pH = \log [H^+]. “[H+] is the hydrogen ion concentration that is measured in moles per liter” (Stapel, n.d.). We know lemon juice is acidic because the pH value is less than 7. We know bleach is basic because the pH value is greater than 7. When a pH value is equal to 7, the solution is neutral. An example of something neutral would be pure water. Teacher can create word problems based on the information given about a liquid solution. Noise can be measured in decibels. The formula used to measure the strength of a sound is dB = 10 \log(I \div I_0). “I0 is the intensity of ‘threshold sound,’ or sound that can be barely be perceived” (Stapel, n.d.). Teachers can create word problems based on the defined terms of how many times more intense a sound is than the threshold sound. Similar problems with the topic of computing logarithms can be made involving earthquake intensity.

green line

How can this topic be used in your students’ future courses in mathematics or science?

As shown in the above answer, this topic can reappear in student’s future science course in the topic of pH levels, earthquake intensity, or “loudness” measured in decibels. In order to find the pH levels, [H+] concentration, or the [OH] concentration you may need to know how to calculate logarithms with base 10 when dealing with the equation pH = \log [H^+]. Similar things can be said about measuring “loudness” and earthquake intensity. Their formulas involve calculating logarithms with base 10. Other future topics students may encounter in mathematics are logarithmic functions, Euler’s number, natural log, and logarithm rules. While not all of these future topics are strongly related to the topic of calculating logarithms with base 10, they can be loosely connected to where the practice of calculating logarithms with base 10 makes it easier to understand and do things related to the future topics. With the topic of logarithmic rules, it can help better simply and calculate with logarithms with base 10.

green line

How was this topic adopted by the mathematical community?

Calculating logarithms with base 10 has been around since 1614. John Napier invented logarithms and ever since then small additions have been made. Additions such as a logarithmic table made it easier to solve logarithmic problems. The logarithmic tables are similar to the multiplication tables elementary schoolers memorize to calculate simple multiplication faster for their future problems. Many mathematicians made their contributions to add more to the logarithmic table to the point where the calculations reached up to 200,000. Aside from the logarithmic tables, there were other methods to calculate logarithms with base 10 such as the slide rule. It was also possible to memorize the values of the logs with base 10 of 1 through 10 and use the logarithmic rules to calculate bigger values. Because

\log 400 = \log(100 \times 4) = \log 4 + \log 100

by expansion and logarithmic rules, people can solve this problem my memorizing that \log 4 = 0.602 and knowing that \log 100 = \log 10^2 = 2. Knowing this makes the equation more clear to recognize and easier to solve by hand. Calculating logarithms with base 10 were used extensively until the creation of the calculator made it easier to calculate anything, including logarithms.

References

“The Log Log Duplex Trig” “Slide Rule”. (n.d.). Retrieved from Web Archive: https://web.archive.org/web/20090214020502/http://www.mccoys-kecatalogs.com/K%26EManuals/4081-3_1943/4081-3_1943.htm

Bourne, M. (n.d.). 4. Logarithms to Base 10. Retrieved from Interactive Mathematics: https://www.intmath.com/exponential-logarithmic-functions/4-logs-base-10.php

Calculating Base 10 Logarithms in your Head. (n.d.). Retrieved from Nerd Paradise: https://nerdparadise.com/math/base10logs

John Napier and the invention of logarithms, 1614; a lecture. (n.d.). Retrieved from Archive.org: https://archive.org/details/johnnapierinvent00hobsiala/page/18/mode/2up

Stapel, E. (n.d.). Logarithmic Word Problems. Retrieved from Purple Math: https://www.purplemath.com/modules/expoprob.htm

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 Andrew Sansom. His topic, from Precalculus: computing logarithms with base 10.

green line

D1. How can technology (YouTube, Khan Academy [khanacademy.org], Vi Hart, Geometers Sketchpad, graphing calculators, etc.) be used to effectively engage students with this topic?

The slide rule was originally invented around 1620, shortly after Napier invented the logarithm. In its simplest form, it uses two logarithmic scales that slide past each other, allowing one to multiply and divide numbers easily. If the scales were linear, aligning them would add two numbers together, but the logarithmic scale turns this into a multiplication problem. For example, the below configuration represents the problem: 14 \times 18=252.

Because of log rules, the above problem can be represented as:

\log 14 + \log 18 = \log 252

The C-scale is aligned against the 14 on the D-scale. The reticule is then translated so that it is over the 18 on the C-scale. The sum of the log of these two values is the log of their product.

Most modern students have never seen a slide rule before, and those that have heard of one probably know little about it other than the cliché “we put men on the moon using slide rules!” Consequently, there these are quite novel for students. A particularly fun, engaging activity to demonstrate to students the power of logarithms would be to challenge volunteers to a race. The student must multiply two three-digit numbers on the board, while the teacher uses a slide rule to do the same computation. Doubtless, a proficient slide rule user will win every time. This activity can be done briefly but will energize the students and show them that there may be something more to this “whole logarithm idea” instead of some abstract thing they’ll never see again.

green line

How can this topic be used in your students’ future courses in mathematics or science?

Computing logarithms with base 10, especially with using logarithm properties, easily leads to learning to compute logarithms in other bases. This generalizes further to logarithmic functions, which are one of the concepts from precalculus most useful in calculus. Integrals with rational functions usually become problems involving logarithms and log properties. Without mastery of the aforementioned rudimentary skills, the student is quickly doomed to be unable to handle those problems. Many limits, including the limit definition of e, Euler’s number, cannot be evaluated without logarithms.

Outside of pure math classes, the decibel is a common unit of measurement in quantities that logarithmic scales with base 10. It is particularly relevant in acoustics and circuit analysis, both topics in physics classes. In chemistry, the pH of a solution is defined as the negative base-ten logarithm of the concentration of hydrogen ions in that solution. Acidity is a crucially important topic in high school chemistry.

 

 

green line

A1. What interesting (i.e., uncontrived) word problems using this topic can your students do now?

Many word problems could be easily constructed involving computations of logarithms of base 10. Below is a problem involving earthquakes and the Richter scale. It would not be difficult to make similar problems involving the volume of sounds, the signal to noise ratio of signals in circuits, or the acidity of a solution.

The Richter Scale is used to measure the strength of earthquakes. It is defined as

M = \log(I/S)

where M is the magnitude, I is the intensity of the quake, and S is the intensity of a “standard quake”. In 1965, an earthquake with magnitude 8.7 was recorded on the Rat Islands in Alaska. If another earthquake was recorded in Asia that was half as intense as the Rat Islands Quake, what would its magnitude be?

Solution:
First, substitute our known quantity into the equation.

8.7=\log I_{rat}/S

Next, solve for the intensity of the Rat Island quake.

S \times 10^{8.7} = I_{rat}

Now, substitute the intensity of the new quake into the original equation.

M_{new}=\log (I_{new}/S)

=\log(0.5I_{rat}/S)

=\log (0.5S \cdot 10^{8.7}/S)

= \log (0.5 \cdot 10^{8.7})

= \log 0.5+ \log 10^{8.7}

=\log 0.5+8.7

=-0.303+8.7

=8.398

Thus, the new quake has magnitude 8.393 on the Richter scale.

References:
Earthquake data from Wikipedia’s List of Earthquakes (https://en.wikipedia.org/wiki/Lists_of_earthquakes#Largest_earthquakes_by_magnitude)

Slide rule picture is a screenshot of Derek Ross’s Virtual Slide Rule (http://www.antiquark.com/sliderule/sim/n909es/virtual-n909-es.html)

 

 

 

Decimal Approximations of Logarithms: 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 on the decimal expansions of logarithms.

Part 1: Pedagogical motivation: how can students develop a better understanding for the apparently random jumble of digits in irrational logarithms?

Part 2: Idea: use large powers.

Part 3: Further idea: use very large powers.

Part 4: Connect to continued fractions and convergents.

Part 5: Tips for students to find these very large powers.

 

Decimal Approximations of Logarithms (Part 5)

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:

In today’s post, I’ll summarize the past few posts to describe how talented Algebra II students, who have just been introduced to logarithms, can develop proficiency with the Laws of Logarithms while also understanding that the above answer is not just a meaningless jumble of digits. The only tools students will need are

To estimate \log_{10} 5.1264, Algebra II students can try to find a power of 5.1264 that is close to a power of 10. In principle, this can be done by just multiplying by 5.1264 until an answer decently close to 5.1264 arises. For the teacher who’s guiding students through this exploration, it might be helpful to know the answer ahead of time.

One way to do this is to use Wolfram Alpha to find the convergents of \log_{10} 5.1264. If you click this link, you’ll see that I entered

Convergents[Log[10,5.1264],15]

A little explanation is in order:

  • Convergents, predictably, is the Mathematica command for finding the convergents of a given number.
  • Log[10,5.1264] is the base-10 logarithm of 5.1264. By contrast, Log[5.1264] is the natural logarithm of 5.1264. Mathematica employs the convention of that \log should be used for natural logarithms instead of \ln, as base-10 logarithms are next to useless for mathematical researchers. That said, I freely concede that this convention is confusing to students who grew up thinking that \log should be used for base-10 logarithms and \ln for natural logarithms. (See also my standard joke about using natural logarithms.) Naturally, the 5.1264 can be changed for other logarithms.
  • The 15 means that I want Wolfram Alpha to give me the first 15 convergents of \log_{10} 5.1264. In most cases, that’s enough terms to provide a convergent whose denominator is at least six digits long. In the rare instance when this doesn’t happen, a number larger than 15 can be entered.

From Wolfram Alpha, I see that \displaystyle \frac{22}{31} is the last convergent with a numerator less than 100. For the purposes of this exploration, I interpret these fractions as follows:

  • The best suitable power of 5.1264 for an easy approximation on a scientific calculation will be (5.1264)^{31}. In this context, “best” means something that’s close to a power of 10 but less than 10^{100}. Students entering (5.1264)^{31} into a calculator will find

(5.1264)^{31} \approx 1.009687994 \times 10^{22}

(5.1264)^{31} \approx 10^{22}

In other words, the denominator of the convergent \displaystyle \frac{22}{31} gives the exponent for 5.1264, while the numerator gives the exponent for the approximated power of 10. Continuing with the Laws of Logarithms,

\log_{10} (5.1264)^{31} \approx \log_{10} 10^{22}

31 \log_{10} 5.1264 \approx 22

\log_{10} 5.1264 \approx \displaystyle \frac{22}{31}

\log_{10} 5.1264 \approx 0.709677\dots

A quick check with a calculator shows that this approximation is accurate to three decimal places. This alone should convince many students that the above apparently random jumble of digits is not so random after all.

While the above discussion should be enough for many students, some students may want to know how to find the rest of the decimal places with this technique. To answer this question, we again turn to the convergents of \log_{10} 5.1264 from Wolfram Alpha. From this list, we see that \displaystyle \frac{89,337}{125,860} is the first convergent with a denominator at least six digits long. The student therefore has two options:

Option #1. Ask the student to use Wolfram Alpha to raise 5.1264 to the denominator of this convergent. Surprisingly to the student, but not surprisingly to the teacher who knows about this convergent, the answer is very close to a power of 10: 10^{89,337}. The student can then use the Laws of Logarithms as before:

\log_{10} (5.1264)^{125,860} \approx \log_{10} 10^{89,337}

125,860 \log_{10} 5.1264 \approx 89,337

\log_{10} 5.1264 \approx \displaystyle \frac{89,337}{125,860}

\log_{10} 5.1264 \approx 0.70981249006\dots,

which matches the output of the calculator.

Option #2. Ask the student to “trick” a hand-held calculator into finding (5.1264)^{125,860}. This option requires the use of the convergent with the largest numerator less than 100, which was \displaystyle \frac{22}{31}.

  • Option #2A: Use the Microsoft Excel spreadsheet that I’ve written to perform the calculations that follow.
  • Option #2B: The student divides the smaller denominators into the larger denominator and finds the quotient and remainder. It turns out that 125,860 = 31 \times 4060 + 0. (This is a rare case where there happens to be no remainder.) Next, the student uses a hand-held calculate to compute

\displaystyle \left( \frac{(5.1264)^{31}}{10^{22}} \right)^{4060} \times (5.1264)^0

In this example, the \times (5.1264)^0 is of course superfluous, but I include it here to show where the remainder should be placed. Entering this in a calculator yields a result that is close to 10^{17}. (The teacher should be aware that some of the last few digits may differ from the more precise result given by Wolfram Alpha due to round-off error, but this discrepancy won’t matter for the purposes of the student’s explorations.) In other words,

\displaystyle \left( \frac{(5.1264)^{31}}{10^{22}} \right)^{4060} \times (5.1264)^0 \approx 10^{17},

which may be rearranged as

(5.1264)^{125,860} \approx 10^{89,337}

after using the Laws of Exponents. From this point, the derivation follows the steps in Option #1.

Decimal Approximations of Logarithms (Part 4)

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. The only tools that are needed are

  • The Laws of Logarithms
  • A hand-held scientific calculator
  • Access to the Wolfram Alpha website (optional)
  • A lot of patience multiplying x by itself repeatedly in a quest to find integer powers of x that are close to powers of 10.

In the previous post in this series, we found that

3^{153} \approx 10^{73}

and

3^{323,641} \approx 10^{154,416}.

Using the Laws of Logarithms on the latter provides an approximation of \log_{10} 3 that is accurate to an astounding ten decimal places:

\log_{10} 3^{323,641} \approx \log_{10} 10^{154,416}

323,641 \log_{10} 3 \approx 154,416

\log_{10} 3 \approx \displaystyle \frac{154,416}{323,641} \approx 0.477121254723598\dots.

Compare with:

\log_{10} 3 \approx 0.47712125471966\dots

Since hand-held calculators will generate identical outputs for these two expressions (up to the display capabilities of the calculator), this may lead to the misconception that the irrational number \log_{10} 3 is actually equal to the rational number \displaystyle \frac{154,416}{323,641}, so I’ll emphasize again that these two numbers are not equal but are instead really, really close to each other.

We now turn to a question that was deferred in the previous post.

Student: How did you know to raise 3 to the 323,641st power?

Teacher: I just multiplied 3 by itself a few hundred thousand times.

Student: C’mon, really. How did you know?

While I don’t doubt that some of our ancestors used this technique to find logarithms — at least before the discovery of calculus — today’s students are not going to be that patient. Instead, to find suitable powers quickly, we will use ideas from the mathematical theory of continued fractions: see Wikipedia, Mathworld, or this excellent self-contained book for more details.

To approximate \log_{10} x, the technique outlined in this series suggests finding integers m and n so that

x^n \approx 10^m,

or, equivalently,

\log_{10} x^n \approx \log_{10} 10^m

n \log_{10} x \approx m

\log_{10} x \approx \displaystyle \frac{m}{n}.

In other words, we’re looking for rational numbers that are reasonable close to \log_{10} x. Terrific candidates for such rational numbers are the convergents to the continued fraction expansion of \log_{10} x. I’ll defer to the references above for how these convergents can be computed, so let me cut to the chase. One way these can be quickly obtained is the free website Wolfram Alpha. For example, the first few convergents of \log_{10} 3 are

\displaystyle \frac{1}{2}, \frac{10}{21}, \frac{21}{44}, \frac{52}{109}, and \frac{73}{153}.

A larger convergent is \frac{154,416}{323,641}, our familiar friend from the previous post in this series.

As more terms are taken, these convergents get closer and closer to \log_{10} 3. In fact:

  • Each convergent is the best possible rational approximation to \log_{10} 3 using a denominator that’s less than the denominator of the next convergent. For example, the second convergent \displaystyle \frac{10}{21} is the closest rational number to \log_{10} 3 that has a denominator less than 44, the denominator of the third convergent.
  • The convergents alternate between slightly greater than \log_{10} 3 and slightly less than \log_{10} 3.
  • Each convergent \displaystyle \frac{m}{n} is guaranteed to be within \displaystyle \frac{1}{n^2} of \log_{10} 3. (In fact, if \displaystyle \frac{m}{n} and \displaystyle \frac{p}{q} are consecutive convergents, then \displaystyle \frac{m}{n} is guaranteed to be within \displaystyle \frac{1}{nq} of \log_{10} 3.)
  • As a practical upshot of the previous point: if the denominator of the convergent \displaystyle \frac{m}{n} is at least six digits long (that is, greater than 10^5), then \displaystyle \frac{m}{n} must be within \displaystyle \frac{1}{(10^5)^2} = 10^{-10} of \log_{10} 3… and it’ll probably be significantly closer than that.

So convergents provide a way for teachers to maintain the illusion that they found a power like 3^{323,641} by laborious calculation, when in fact they were quickly found through modern computing.

 

 

 

 

Decimal Approximations of Logarithms (Part 3)

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.

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

In the previous post in this series, we essentially used trial and error to find such powers of 3. We found

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

from which we can conclude

\log_{10} 3^{153} \approx \log_{10} 10^{73}

153 \log_{10} 3 \approx 73

\log_{10} 3 \approx \displaystyle \frac{73}{153} \approx 0.477124.

This approximation is accurate to five decimal places.

By now, I’d imagine that our student would be convinced that logarithms aren’t just a random jumble of digits… there’s a process (albeit a complicated process) for obtaining these decimal expansions. Of course, this process isn’t the best process, but it works and it only uses techniques at the level of an Algebra II student who’s learning about logarithms for the first time.

If nothing else, hopefully this lesson will give students a little more appreciation for their ancestors who had to perform these kinds of calculations without the benefit of modern computing.

We also saw in the previous post that larger powers can result in better and better approximation. Finding suitable powers gets harder and harder as the exponent gets larger. However, when a better approximation is found, the improvement can be dramatic. Indeed, the decimal expansion of a logarithm can be obtained up to the accuracy of a hand-held calculator with a little patience. For example, let’s compute

3^{323,641}

Predictably, the complaint will arise: “How did you know to try 323,641?” The flippant and awe-inspiring answer is, “I just kept multiplying by 3.”

I’ll give the real answer that question later in this series.

Postponing the answer to that question for now, there are a couple ways for students to compute this using readily available technology. Perhaps the most user-friendly is the free resource Wolfram Alpha:

3^{323,641} \approx 9.999970671 \times 10^{154,415} \approx 10^{154,416}.

That said, students can also perform this computation by creatively using their handheld calculators. Most calculators will return an overflow error if a direct computation of 3^{323,641} is attempted; the number is simply too big. A way around this is by using the above approximation 3^{153} \approx 10^{73}, so that 3^{153}/10^{73} \approx 1. Therefore, we can take large powers of 3^{153}/10^{73} without worrying about an overflow error.

In particular, let’s divide 323,641 by $153$. A little work shows that

\displaystyle \frac{323,641}{153} = \displaystyle 2115 \frac{46}{153},

or

323,641 = 153 \times 2115  + 46.

This suggests that we try to compute

\displaystyle \left( \frac{3^{153}}{10^{73}} \right)^{2115} \times 3^{46},

and a hand-held calculator can be used to show that this expression is approximately equal to 10^{21}. Some of the last few digits will be incorrect because of unavoidable round-off errors, but the approximation of 10^{21} — all that’s needed for the present exercise — will still be evident.

By the Laws of Exponents, we see that

\displaystyle \left( \frac{3^{153}}{10^{73}} \right)^{2115} \times 3^{46} \approx 10^{21}

\displaystyle \frac{3^{153 \times 2115 + 46}}{10^{73 \times 2115}} \approx 10^{21}

\displaystyle \frac{3^{323,641}}{10^{154,395}} \approx 10^{21}

3^{323,641} \approx 10^{154,395} \times 10^{21}

3^{323,641} \approx 10^{154,395+21}

3^{323,641} \approx 10^{154,416}.

Whichever technique is used, we can now use the Laws of Logarithms to approximate \log_{10} 3:

\log_{10} 3^{323,641} \approx \log_{10} 10^{154,416}

323,641 \log_{10} 3 \approx 154,416

\log_{10} 3 \approx \displaystyle \frac{154,416}{323,641} \approx 0.477121254723598\dots.

This approximation matches the decimal expansion of \log_{10} 3  to an astounding ten decimal places:

\log_{10} 3 \approx 0.47712125471966\dots

Since hand-held calculators will generate identical outputs for these two expressions (up to the display capabilities of the calculator), this may lead to the misconception that the irrational number \log_{10} 3 is actually equal to the rational number \displaystyle \frac{154,416}{323,641}, so I’ll emphasize again that these two numbers are not equal but are instead really, really close to each other.

Summarizing, Algebra II students can find the decimal expansion of \log_{10} x can be found up to the accuracy of a hand-held scientific calculator. The only tools that are needed are

  • The Laws of Logarithms
  • A hand-held scientific calculator
  • Access to the Wolfram Alpha website (optional)
  • A lot of patience multiply x by itself repeatedly in a quest to find integer powers of x that are close to powers of 10.

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).