Testing of the pH of hydrochloric acid.
Figure 1. The pH of hydrochloric acid is tested with litmus paper. (credit: David Berardan)

In chemistry, pH is used as a measure of the acidity or alkalinity of a substance. The pH scale runs from 0 to 14. Substances with a pH less than 7 are considered acidic, and substances with a pH greater than 7 are said to be alkaline. Our bodies, for instance, must maintain a pH close to 7.35 in order for enzymes to work properly. To get a feel for what is acidic and what is alkaline, consider the following pH levels of some common substances:

  • Battery acid: 0.8
  • Stomach acid: 2.7
  • Orange juice: 3.3
  • Pure water: 7 (at 25° C)
  • Human blood: 7.35
  • Fresh coconut: 7.8
  • Sodium hydroxide (lye): 14

To determine whether a solution is acidic or alkaline, we find its pH, which is a measure of the number of active positive hydrogen ions in the solution. The pH is defined by the following formula, where [latex]a[/latex] is the concentration of hydrogen ion in the solution

[latex]$$\begin{array}{l}\text{pH}=-\mathrm{log}\left(\left[{H}^{+}\right]\right)\hfill \\ \text{ }=\mathrm{log}\left(\frac{1}{\left[{H}^{+}\right]}\right)\hfill \end{array} $$[/latex]

The equivalence of [latex]-\mathrm{log}\left(\left[{H}^{+}\right]\right)[/latex] and [latex]\mathrm{log}\left(\frac{1}{\left[{H}^{+}\right]}\right)[/latex] is one of the logarithm properties we will examine in this section.

4.2.1 – Using the Product Rule for Logarithms

Recall that the logarithmic and exponential functions “undo” each other. This means that logarithms have similar properties to exponents. Some important properties of logarithms are given here. First, the following properties are easy to prove.

[latex]$$\begin{array}{l}{\mathrm{log}}_{b}1=0\\ {\mathrm{log}}_{b}b=1\end{array} $$[/latex]

For example, [latex]{\mathrm{log}}_{5}1=0[/latex] since [latex]{5}^{0}=1.[/latex] And [latex]{\mathrm{log}}_{5}5=1[/latex] since [latex]{5}^{1}=5.[/latex]

Next, we have the inverse property.

[latex]$$ \begin{array}{l}\hfill \\ {\mathrm{log}}_{b}\left({b}^{x}\right)=x\hfill \\ \text{ }{b}^{{\mathrm{log}}_{b}x}=x,x>0\hfill \end{array}$$[/latex]

For example, to evaluate [latex]\mathrm{log}\left(100\right),[/latex] we can rewrite the logarithm as [latex]{\mathrm{log}}_{10}\left({10}^{2}\right),[/latex] and then apply the inverse property [latex]{\mathrm{log}}_{b}\left({b}^{x}\right)=x[/latex] to get [latex]{\mathrm{log}}_{10}\left({10}^{2}\right)=2.[/latex]

To evaluate [latex]{e}^{\mathrm{ln}\left(7\right)},[/latex] we can rewrite the logarithm as [latex]{e}^{{\mathrm{log}}_{e}7},[/latex] and then apply the inverse property [latex]{b}^{{\mathrm{log}}_{b}x}=x[/latex] to get [latex]{e}^{{\mathrm{log}}_{e}7}=7.[/latex]

Finally, we have the one-to-one property.

[latex]{\mathrm{log}}_{b}M={\mathrm{log}}_{b}N\,\text{ if and only if}\,\text{ }M=N[/latex]

We can use the one-to-one property to solve the equation [latex]{\mathrm{log}}_{3}\left(3x\right)={\mathrm{log}}_{3}\left(2x+5\right)[/latex] for [latex]x.[/latex] Since the bases are the same, we can apply the one-to-one property by setting the arguments equal and solving for [latex]x:[/latex]

[latex]$$ \begin{array}{ll}3x=2x+5\,\,\,\,\,\hfill & \text{Set the arguments equal}\text{.}\hfill \\ \,\,\,\,x=5\hfill & \text{Subtract 2}x\text{.}\hfill \end{array}$$[/latex]

But what about the equation [latex]{\mathrm{log}}_{3}\left(3x\right)+{\mathrm{log}}_{3}\left(2x+5\right)=2?[/latex] The one-to-one property does not help us in this instance. Before we can solve an equation like this, we need a method for combining terms on the left side of the equation.

Recall that we use the product rule of exponents to combine the product of exponents by adding: [latex]{x}^{a}{x}^{b}={x}^{a+b}.[/latex] We have a similar property for logarithms, called the product rule for logarithms, which says that the logarithm of a product is equal to a sum of logarithms. Because logs are exponents, and we multiply like bases, we can add the exponents. We will use the inverse property to derive the product rule below.

Given any real number [latex]x[/latex] and positive real numbers [latex]\text{ }M,N,[/latex] and [latex]b,[/latex] where [latex]b\ne 1,[/latex] we will show

[latex]$$ {\mathrm{log}}_{b}\left(MN\right)\text{=}{\mathrm{log}}_{b}\left(M\right)+{\mathrm{log}}_{b}\left(N\right).$$[/latex]

Let [latex]m={\mathrm{log}}_{b}M[/latex] and [latex]n={\mathrm{log}}_{b}N.[/latex] In exponential form, these equations are [latex]{b}^{m}=M[/latex] and [latex]{b}^{n}=N.[/latex] It follows that

[latex]$$\begin{array}{lll}{\mathrm{log}}_{b}\left(MN\right)\hfill & ={\mathrm{log}}_{b}\left({b}^{m}{b}^{n}\right)\,\,\,\,\,\,\hfill & \text{Substitute for }M\text{ and }N.\hfill \\ \hfill & ={\mathrm{log}}_{b}\left({b}^{m+n}\right)\hfill & \text{Apply the product rule for exponents}.\hfill \\ \hfill & =m+n\hfill & \text{Apply the inverse property of logs}.\hfill \\ \hfill & ={\mathrm{log}}_{b}\left(M\right)+{\mathrm{log}}_{b}\left(N\right)\hfill & \text{Substitute for }m\text{ and }n.\hfill \end{array}$$[/latex]

Note that repeated applications of the product rule for logarithms allow us to simplify the logarithm of the product of any number of factors. For example, consider [latex]{\mathrm{log}}_{b}\left(wxyz\right).[/latex] Using the product rule for logarithms, we can rewrite this logarithm of a product as the sum of logarithms of its factors:

[latex]$${\mathrm{log}}_{b}\left(wxyz\right)={\mathrm{log}}_{b}w+{\mathrm{log}}_{b}x+{\mathrm{log}}_{b}y+{\mathrm{log}}_{b}z$$[/latex]

 

The Product Rule for Logarithms

The product rule for logarithms can be used to simplify a logarithm of a product by rewriting it as a sum of individual logarithms.

[latex]$${\mathrm{log}}_{b}\left(MN\right)={\mathrm{log}}_{b}\left(M\right)+{\mathrm{log}}_{b}\left(N\right)\text{ for }b>0 $$[/latex]

How To

Given the logarithm of a product, use the product rule of logarithms to write an equivalent sum of logarithms.

  1. Factor the argument completely, expressing each whole number factor as a product of primes.
  2. Write the equivalent expression by summing the logarithms of each factor.

Example 1 – Using the Product Rule for Logarithms

Expand [latex]{\mathrm{log}}_{3}\left(30x\left(3x+4\right)\right).[/latex]

We begin by factoring the argument completely, expressing [latex]30[/latex] as a product of primes.

[latex]{\mathrm{log}}_{3}\left(30x\left(3x+4\right)\right)={\mathrm{log}}_{3}\left(2\cdot 3\cdot 5\cdot x\cdot \left(3x+4\right)\right)[/latex]

Next we write the equivalent equation by summing the logarithms of each factor.

[latex]{\mathrm{log}}_{3}\left(30x\left(3x+4\right)\right)={\mathrm{log}}_{3}\left(2\right)+{\mathrm{log}}_{3}\left(3\right)+{\mathrm{log}}_{3}\left(5\right)+{\mathrm{log}}_{3}\left(x\right)+{\mathrm{log}}_{3}\left(3x+4\right)[/latex]

Try It

Expand [latex]{\mathrm{log}}_{b}\left(8k\right).[/latex]

Show answer

[latex]{\mathrm{log}}_{b}2+{\mathrm{log}}_{b}2+{\mathrm{log}}_{b}2+{\mathrm{log}}_{b}k=3{\mathrm{log}}_{b}2+{\mathrm{log}}_{b}k[/latex]

4.2.2 – Using the Quotient Rule for Logarithms

For quotients, we have a similar rule for logarithms. Recall that we use the quotient rule of exponents to combine the quotient of exponents by subtracting: [latex]\frac{{x}^{a}}{{x}^{b}}={x}^{a-b}.[/latex] The quotient rule for logarithms says that the logarithm of a quotient is equal to a difference of logarithms. Just as with the product rule, we can use the inverse property to derive the quotient rule.

Given any real number [latex]x[/latex] and positive real numbers [latex]M,[/latex] [latex]N,[/latex] and [latex]b,[/latex] where [latex]b\ne 1,[/latex] we will show

[latex]$${\mathrm{log}}_{b}\left(\frac{M}{N}\right)\text{=}{\mathrm{log}}_{b}\left(M\right)-{\mathrm{log}}_{b}\left(N\right). $$[/latex]

Let [latex]m={\mathrm{log}}_{b}M[/latex] and [latex]n={\mathrm{log}}_{b}N.[/latex] In exponential form, these equations are [latex]{b}^{m}=M[/latex] and [latex]{b}^{n}=N.[/latex] It follows that

[latex]$$\begin{array}{lll}{\mathrm{log}}_{b}\left(\frac{M}{N}\right)\hfill & ={\mathrm{log}}_{b}\left(\frac{{b}^{m}}{{b}^{n}}\right)\,\,\,\,\,\hfill & \text{Substitute for }M\text{ and }N.\hfill \\ \hfill & ={\mathrm{log}}_{b}\left({b}^{m-n}\right)\hfill & \text{Apply the quotient rule for exponents}.\hfill \\ \hfill & =m-n\hfill & \text{Apply the inverse property of logs}.\hfill \\ \hfill & ={\mathrm{log}}_{b}\left(M\right)-{\mathrm{log}}_{b}\left(N\right)\hfill & \text{Substitute for }m\text{ and }n.\hfill \end{array} $$[/latex]

For example, to expand [latex]\mathrm{log}\left(\frac{2{x}^{2}+6x}{3x+9}\right),[/latex] we must first express the quotient in lowest terms. Factoring and canceling we get,

[latex]$$\begin{array}{ll}\mathrm{log}\left(\frac{2{x}^{2}+6x}{3x+9}\right)=\mathrm{log}\left(\frac{2x\left(x+3\right)}{3\left(x+3\right)}\right)\hfill & \text{Factor the numerator and denominator}.\hfill \\ \text{ }=\mathrm{log}\left(\frac{2x}{3}\right)\hfill & \text{Cancel the common factors}.\hfill \end{array} $$[/latex]

Next we apply the quotient rule by subtracting the logarithm of the denominator from the logarithm of the numerator. Then we apply the product rule.

[latex]$$\begin{array}{l}\mathrm{log}\left(\frac{2x}{3}\right)=\mathrm{log}\left(2x\right)-\mathrm{log}\left(3\right)\hfill \\ \text{ }=\mathrm{log}\left(2\right)+\mathrm{log}\left(x\right)-\mathrm{log}\left(3\right)\hfill \end{array} $$[/latex]

The Quotient Rule for Logarithms

The quotient rule for logarithms can be used to simplify a logarithm or a quotient by rewriting it as the difference of individual logarithms.

[latex]$${\mathrm{log}}_{b}\left(\frac{M}{N}\right)={\mathrm{log}}_{b}M-{\mathrm{log}}_{b}N $$[/latex]

How To

Given the logarithm of a quotient, use the quotient rule of logarithms to write an equivalent difference of logarithms.

  1. Express the argument in lowest terms by factoring the numerator and denominator and canceling common terms.
  2. Write the equivalent expression by subtracting the logarithm of the denominator from the logarithm of the numerator.
  3. Check to see that each term is fully expanded. If not, apply the product rule for logarithms to expand completely.

Example 2 – Using the Quotient Rule for Logarithms

Expand [latex]{\mathrm{log}}_{2}\left(\frac{15x\left(x-1\right)}{\left(3x+4\right)\left(2-x\right)}\right).[/latex]

First we note that the quotient is factored and in lowest terms, so we apply the quotient rule.

[latex]{\mathrm{log}}_{2}\left(\frac{15x\left(x-1\right)}{\left(3x+4\right)\left(2-x\right)}\right)={\mathrm{log}}_{2}\left(15x\left(x-1\right)\right)-{\mathrm{log}}_{2}\left(\left(3x+4\right)\left(2-x\right)\right)[/latex]

Notice that the resulting terms are logarithms of products. To expand completely, we apply the product rule, noting that the prime factors of the factor 15 are 3 and 5.

[latex]$$\begin{array}{l}{\mathrm{log}}_{2}\left(15x\left(x-1\right)\right)-{\mathrm{log}}_{2}\left(\left(3x+4\right)\left(2-x\right)\right)=\left[{\mathrm{log}}_{2}\left(3\right)+{\mathrm{log}}_{2}\left(5\right)+{\mathrm{log}}_{2}\left(x\right)+{\mathrm{log}}_{2}\left(x-1\right)\right]-\left[{\mathrm{log}}_{2}\left(3x+4\right)+{\mathrm{log}}_{2}\left(2-x\right)\right]\hfill \\ \text{ }={\mathrm{log}}_{2}\left(3\right)+{\mathrm{log}}_{2}\left(5\right)+{\mathrm{log}}_{2}\left(x\right)+{\mathrm{log}}_{2}\left(x-1\right)-{\mathrm{log}}_{2}\left(3x+4\right)-{\mathrm{log}}_{2}\left(2-x\right)\hfill \end{array} $$[/latex]

Analysis

There are exceptions to consider in this and later examples. First, because denominators must never be zero, this expression is not defined for [latex]x=-\frac{4}{3}[/latex] and [latex]x=2.[/latex] Also, since the argument of a logarithm must be positive, we note as we observe the expanded logarithm, that [latex]x>0,[/latex] [latex]x>1,[/latex] [latex]x>-\frac{4}{3},[/latex] and [latex]x<2.[/latex] Combining these conditions is beyond the scope of this section, and we will not consider them here or in subsequent exercises.

Try It

Expand [latex]{\mathrm{log}}_{3}\left(\frac{7{x}^{2}+21x}{7x\left(x-1\right)\left(x-2\right)}\right).[/latex]

Show answer

[latex]{\mathrm{log}}_{3}\left(x+3\right)-{\mathrm{log}}_{3}\left(x-1\right)-{\mathrm{log}}_{3}\left(x-2\right)[/latex]

4.2.3 – Using the Power Rule for Logarithms

We’ve explored the product rule and the quotient rule, but how can we take the logarithm of a power, such as [latex]{x}^{2}?[/latex] One method is as follows:

[latex]$$\begin{array}{ll}{\mathrm{log}}_{b}\left({x}^{2}\right)\hfill & ={\mathrm{log}}_{b}\left(x\cdot x\right)\hfill \\ \hfill & ={\mathrm{log}}_{b}x+{\mathrm{log}}_{b}x\hfill \\ \hfill & =2{\mathrm{log}}_{b}x\hfill \end{array} $$[/latex]

Notice that we used the product rule for logarithms to find a solution for the example above. By doing so, we have derived the power rule for logarithms, which says that the log of a power is equal to the exponent times the log of the base. Keep in mind that, although the input to a logarithm may not be written as a power, we may be able to change it to a power. For example,

[latex]$$\begin{array}{lll}100={10}^{2}\,\,\,\,\,\hfill & \sqrt{3}={3}^{\frac{1}{2}}\,\,\,\,\,\hfill & \frac{1}{e}={e}^{-1}\hfill \end{array} $$[/latex]

The Power Rule for Logarithms

The power rule for logarithms can be used to simplify the logarithm of a power by rewriting it as the product of the exponent times the logarithm of the base.

[latex]$${\mathrm{log}}_{b}\left(MN\right)={\mathrm{log}}_{b}\left(M\right)+{\mathrm{log}}_{b}\left(N\right)\text{ for }b>0$$[/latex]

How To

Given the logarithm of a power, use the power rule of logarithms to write an equivalent product of a factor and a logarithm.

  1. Express the argument as a power, if needed.
  2. Write the equivalent expression by multiplying the exponent times the logarithm of the base.

Example 3 – Expanding a Logarithm with Powers

Expand [latex]{\mathrm{log}}_{2}{x}^{5}.[/latex]

The argument is already written as a power, so we identify the exponent, 5, and the base, [latex]x,[/latex] and rewrite the equivalent expression by multiplying the exponent times the logarithm of the base.

[latex]{\mathrm{log}}_{2}\left({x}^{5}\right)=5{\mathrm{log}}_{2}x[/latex]

Try It

Expand [latex]\mathrm{ln}{x}^{2}.[/latex]

Show answer

[latex]$$\mathrm{ln}{x}^{2}=\mathrm{ln}{(x\cdot x)}=\mathrm{ln}{x}+\mathrm{ln}{x}=2\mathrm{ln}x $$[/latex]

Example 4 – Rewriting an Expression as a Power before Using the Power Rule

Expand [latex]{\mathrm{log}}_{3}\left(25\right)[/latex] using the power rule for logs.

Expressing the argument as a power, we get [latex]{\mathrm{log}}_{3}\left(25\right)={\mathrm{log}}_{3}\left({5}^{2}\right).[/latex]

Next we identify the exponent, 2, and the base, 5, and rewrite the equivalent expression by multiplying the exponent times the logarithm of the base.

[latex]{\mathrm{log}}_{3}\left({5}^{2}\right)=2{\mathrm{log}}_{3}\left(5\right)[/latex]

Try It

Expand [latex]\mathrm{ln}\left(\frac{1}{{x}^{2}}\right).[/latex]

Show answer

[latex]-2\mathrm{ln}\left(x\right)[/latex]

Example 5 – Using the Power Rule in Reverse

Rewrite [latex]4\mathrm{ln}\left(x\right)[/latex] using the power rule for logs to a single logarithm with a leading coefficient of 1.

Because the logarithm of a power is the product of the exponent times the logarithm of the base, it follows that the product of a number and a logarithm can be written as a power. For the expression [latex]4\mathrm{ln}\left(x\right),[/latex] we identify the factor, 4, as the exponent and the argument, [latex]x,[/latex] as the base, and rewrite the product as a logarithm of a power: [latex]4\mathrm{ln}\left(x\right)=\mathrm{ln}\left({x}^{4}\right).[/latex]

 

Try It

Rewrite [latex]2{\mathrm{log}}_{3}4[/latex] using the power rule for logs to a single logarithm with a leading coefficient of 1.

Show answer

[latex]{\mathrm{log}}_{3}16[/latex]

4.2.4 – Expanding Logarithmic Expressions

Taken together, the product rule, quotient rule, and power rule are often called “laws of logs.” Sometimes we apply more than one rule in order to simplify an expression. For example:

[latex]$$\begin{array}{ll}{\mathrm{log}}_{b}\left(\frac{6x}{y}\right)\hfill & ={\mathrm{log}}_{b}\left(6x\right)-{\mathrm{log}}_{b}y\hfill \\ \hfill & ={\mathrm{log}}_{b}6+{\mathrm{log}}_{b}x-{\mathrm{log}}_{b}y\hfill \end{array}$$[/latex]

We can use the power rule to expand logarithmic expressions involving negative and fractional exponents. Here is an alternate proof of the quotient rule for logarithms using the fact that a reciprocal is a negative power:

[latex]$$\begin{array}{ll}{\mathrm{log}}_{b}\left(\frac{A}{C}\right)\hfill & ={\mathrm{log}}_{b}\left(A{C}^{-1}\right)\hfill \\ \hfill & ={\mathrm{log}}_{b}\left(A\right)+{\mathrm{log}}_{b}\left({C}^{-1}\right)\hfill \\ \hfill & ={\mathrm{log}}_{b}A+\left(-1\right){\mathrm{log}}_{b}C\hfill \\ \hfill & ={\mathrm{log}}_{b}A-{\mathrm{log}}_{b}C\hfill \end{array} $$[/latex]

We can also apply the product rule to express a sum or difference of logarithms as the logarithm of a product.

With practice, we can look at a logarithmic expression and expand it mentally, writing the final answer. Remember, however, that we can only do this with products, quotients, powers, and roots—never with addition or subtraction inside the argument of the logarithm.

Example 6 – Expanding Logarithms Using Product, Quotient, and Power Rules

Rewrite [latex]\mathrm{ln}\left(\frac{{x}^{4}y}{7}\right)[/latex] as a sum or difference of logs.

First, because we have a quotient of two expressions, we can use the quotient rule:

[latex]\mathrm{ln}\left(\frac{{x}^{4}y}{7}\right)=\mathrm{ln}\left({x}^{4}y\right)-\mathrm{ln}\left(7\right)[/latex]

Then seeing the product in the first term, we use the product rule:

[latex]\mathrm{ln}\left({x}^{4}y\right)-\mathrm{ln}\left(7\right)=\mathrm{ln}\left({x}^{4}\right)+\mathrm{ln}\left(y\right)-\mathrm{ln}\left(7\right)[/latex]

Finally, we use the power rule on the first term:

[latex]\mathrm{ln}\left({x}^{4}\right)+\mathrm{ln}\left(y\right)-\mathrm{ln}\left(7\right)=4\mathrm{ln}\left(x\right)+\mathrm{ln}\left(y\right)-\mathrm{ln}\left(7\right)[/latex]

Try It

Expand [latex]\mathrm{log}\left(\frac{{x}^{2}{y}^{3}}{{z}^{4}}\right).[/latex]

Show answer

[latex]2\mathrm{log}x+3\mathrm{log}y-4\mathrm{log}z[/latex]

Example 7 – Using the Power Rule for Logarithms to Simplify the Logarithm of a Radical Expression

Expand [latex]\mathrm{log}\left(\sqrt{x}\right).[/latex]

[latex]$$ \begin{array}{ll}\mathrm{log}\left(\sqrt{x}\right)\hfill & =\mathrm{log}{x}^{\left(\frac{1}{2}\right)}\hfill \\ \hfill & =\frac{1}{2}\mathrm{log}x\hfill \end{array} $$[/latex]

Try It

Expand [latex]\mathrm{ln}\left(\sqrt[3]{{x}^{2}}\right).[/latex]

Show answer

[latex]\frac{2}{3}\mathrm{ln}x[/latex]

Can we expand [latex]\mathrm{ln}\left({x}^{2}+{y}^{2}\right)?[/latex]

No. There is no way to expand the logarithm of a sum or difference inside the argument of the logarithm.

Example 8 – Expanding Complex Logarithmic Expressions

Expand [latex]{\mathrm{log}}_{6}\left(\frac{64{x}^{3}\left(4x+1\right)}{\left(2x-1\right)}\right).[/latex]

We can expand by applying the Product and Quotient Rules.

[latex]$$\begin{array}{lll}{\mathrm{log}}_{6}\left(\frac{64{x}^{3}\left(4x+1\right)}{\left(2x-1\right)}\right)\hfill & ={\mathrm{log}}_{6}64+{\mathrm{log}}_{6}{x}^{3}+{\mathrm{log}}_{6}\left(4x+1\right)-{\mathrm{log}}_{6}\left(2x-1\right)\hfill & \text{Apply the Quotient Rule}.\hfill \\ \hfill & ={\mathrm{log}}_{6}{2}^{6}+{\mathrm{log}}_{6}{x}^{3}+{\mathrm{log}}_{6}\left(4x+1\right)-{\mathrm{log}}_{6}\left(2x-1\right)\hfill & {\text{Simplify by writing 64 as 2}}^{6}.\hfill \\ \hfill & =6{\mathrm{log}}_{6}2+3{\mathrm{log}}_{6}x+{\mathrm{log}}_{6}\left(4x+1\right)-{\mathrm{log}}_{6}\left(2x-1\right)\hfill & \text{Apply the Power Rule}.\hfill \end{array}$$[/latex]

Try It

Expand [latex]\mathrm{ln}\left(\frac{\sqrt{\left(x-1\right){\left(2x+1\right)}^{2}}}{\left({x}^{2}-9\right)}\right).[/latex]

Show answer

[latex]\frac{1}{2}\mathrm{ln}\left(x-1\right)+\mathrm{ln}\left(2x+1\right)-\mathrm{ln}\left(x+3\right)-\mathrm{ln}\left(x-3\right)[/latex]

4.2.5 – Condensing Logarithmic Expressions

We can use the rules of logarithms we just learned to condense sums, differences, and products with the same base as a single logarithm. It is important to remember that the logarithms must have the same base to be combined. We will learn later how to change the base of any logarithm before condensing.

How To

Given a sum, difference, or product of logarithms with the same base, write an equivalent expression as a single logarithm.

  1. Apply the power property first. Identify terms that are products of factors and a logarithm, and rewrite each as the logarithm of a power.
  2. Next apply the product property. Rewrite sums of logarithms as the logarithm of a product.
  3. Apply the quotient property last. Rewrite differences of logarithms as the logarithm of a quotient.

Example 9 – Using the Product and Quotient Rules to Combine Logarithms

Write [latex]{\mathrm{log}}_{3}\left(5\right)+{\mathrm{log}}_{3}\left(8\right)-{\mathrm{log}}_{3}\left(2\right)[/latex] as a single logarithm.

Using the product and quotient rules

[latex]{\mathrm{log}}_{3}\left(5\right)+{\mathrm{log}}_{3}\left(8\right)={\mathrm{log}}_{3}\left(5\cdot 8\right)={\mathrm{log}}_{3}\left(40\right)[/latex]

This reduces our original expression to

[latex]{\mathrm{log}}_{3}\left(40\right)-{\mathrm{log}}_{3}\left(2\right)[/latex]

Then, using the quotient rule

[latex]{\mathrm{log}}_{3}\left(40\right)-{\mathrm{log}}_{3}\left(2\right)={\mathrm{log}}_{3}\left(\frac{40}{2}\right)={\mathrm{log}}_{3}\left(20\right)[/latex]

 

Try It

Condense [latex]\mathrm{log}3-\mathrm{log}4+\mathrm{log}5-\mathrm{log}6.[/latex]

Show answer

[latex]\mathrm{log}\left(\frac{3\cdot 5}{4\cdot 6}\right);[/latex] can also be written [latex]\mathrm{log}\left(\frac{5}{8}\right)[/latex] by reducing the fraction to lowest terms.

Example 10 – Condensing Complex Logarithmic Expressions

Condense [latex]{\mathrm{log}}_{2}\left({x}^{2}\right)+\frac{1}{2}{\mathrm{log}}_{2}\left(x-1\right)-3{\mathrm{log}}_{2}\left({\left(x+3\right)}^{2}\right).[/latex]

We apply the power rule first:

[latex]{\mathrm{log}}_{2}\left({x}^{2}\right)+\frac{1}{2}{\mathrm{log}}_{2}\left(x-1\right)-3{\mathrm{log}}_{2}\left({\left(x+3\right)}^{2}\right)={\mathrm{log}}_{2}\left({x}^{2}\right)+{\mathrm{log}}_{2}\left(\sqrt{x-1}\right)-{\mathrm{log}}_{2}\left({\left(x+3\right)}^{6}\right)[/latex]

Next we apply the product rule to the sum:

[latex]{\mathrm{log}}_{2}\left({x}^{2}\right)+{\mathrm{log}}_{2}\left(\sqrt{x-1}\right)-{\mathrm{log}}_{2}\left({\left(x+3\right)}^{6}\right)={\mathrm{log}}_{2}\left({x}^{2}\sqrt{x-1}\right)-{\mathrm{log}}_{2}\left({\left(x+3\right)}^{6}\right)[/latex]

Finally, we apply the quotient rule to the difference:

[latex]{\mathrm{log}}_{2}\left({x}^{2}\sqrt{x-1}\right)-{\mathrm{log}}_{2}\left({\left(x+3\right)}^{6}\right)={\mathrm{log}}_{2}\frac{{x}^{2}\sqrt{x-1}}{{\left(x+3\right)}^{6}}[/latex]

 

Try It

Condense [latex]4\left(3\mathrm{log}\left(x\right)+\mathrm{log}\left(x+5\right)-\mathrm{log}\left(2x+3\right)\right).[/latex]

Show answer

[latex]\mathrm{log}\frac{{x}^{12}{\left(x+5\right)}^{4}}{{\left(2x+3\right)}^{4}};[/latex] this answer could also be written [latex]\mathrm{log}{\left(\frac{{x}^{3}\left(x+5\right)}{\left(2x+3\right)}\right)}^{4}.[/latex]

Example 11 – Rewriting as a Single Logarithm

Rewrite [latex]2\mathrm{log}x-4\mathrm{log}\left(x+5\right)+\frac{1}{x}\mathrm{log}\left(3x+5\right)[/latex] as a single logarithm.

We apply the power rule first:

[latex]\mathrm{log}\left(x+5\right)+\frac{1}{x}\mathrm{log}\left(3x+5\right)=\mathrm{log}\left({x}^{2}\right)-\mathrm{log}{\left(x+5\right)}^{4}+\mathrm{log}\left({\left(3x+5\right)}^{{x}^{-1}}\right)[/latex]

Next we rearrange and apply the product rule to the sum:

[latex]\mathrm{log}\left({x}^{2}\right)-\mathrm{log}{\left(x+5\right)}^{4}+\mathrm{log}\left({\left(3x+5\right)}^{{x}^{-1}}\right)[/latex]

[latex]=\mathrm{log}\left({x}^{2}\right)+\mathrm{log}\left({\left(3x+5\right)}^{{x}^{-1}}\right)-\mathrm{log}{\left(x+5\right)}^{4}[/latex]

[latex]=\mathrm{log}\left({x}^{2}{\left(3x+5\right)}^{{x}^{-1}}\right)-\mathrm{log}{\left(x+5\right)}^{4}[/latex]

Finally, we apply the quotient rule to the difference:

[latex]=\mathrm{log}\left({x}^{2}{\left(3x+5\right)}^{{x}^{-1}}\right)-{\mathrm{log}\left(x+5\right)}^{4}=\mathrm{log}\frac{{x}^{2}{\left(3x+5\right)}^{{x}^{-1}}}{{\left(x+5\right)}^{4}}[/latex]

Try It

Rewrite [latex]\mathrm{log}\left(5\right)+0.5\mathrm{log}\left(x\right)-\mathrm{log}\left(7x-1\right)+3\mathrm{log}\left(x-1\right)[/latex] as a single logarithm.

Show answer

[latex]\mathrm{log}\left(\frac{5{\left(x-1\right)}^{3}\sqrt{x}}{\left(7x-1\right)}\right)[/latex]

Example 12 – Applying of the Laws of Logs

Recall that, in chemistry, [latex]\text{pH}=-\mathrm{log}\left[{H}^{+}\right].[/latex] If the concentration of hydrogen ions in a liquid is doubled, what is the effect on pH?

Suppose [latex]C[/latex] is the original concentration of hydrogen ions, and [latex]P[/latex] is the original pH of the liquid. Then [latex]P=–\mathrm{log}\left(C\right).[/latex] If the concentration is doubled, the new concentration is [latex]2C.[/latex] Then the pH of the new liquid is

[latex]\text{pH}=-\mathrm{log}\left(2C\right)[/latex]

Using the product rule of logs

[latex]\text{pH}=-\mathrm{log}\left(2C\right)=-\left(\mathrm{log}\left(2\right)+\mathrm{log}\left(C\right)\right)=-\mathrm{log}\left(2\right)-\mathrm{log}\left(C\right)[/latex]

Since [latex]P=–\mathrm{log}\left(C\right),[/latex] the new pH is

[latex]\text{pH}=P-\mathrm{log}\left(2\right)\approx P-0.301[/latex]

When the concentration of hydrogen ions is doubled, the pH decreases by about 0.301.

Try It

How does the pH change when the concentration of positive hydrogen ions is decreased by half?

Show answer

The pH increases by about 0.301.

4.2.6 – Using the Change-of-Base Formula for Logarithms

Most calculators can evaluate only common and natural logs. In order to evaluate logarithms with a base other than 10 or [latex]e,[/latex] we use the change-of-base formula to rewrite the logarithm as the quotient of logarithms of any other base; when using a calculator, we would change them to common or natural logs.

To derive the change-of-base formula, we use the one-to-one property and power rule for logarithms.

Given any positive real numbers [latex]M,b,[/latex] and [latex]n,[/latex] where [latex]n\ne 1[/latex] and [latex]b\ne 1,[/latex] we show

[latex]{\mathrm{log}}_{b}M\text{=}\frac{{\mathrm{log}}_{n}M}{{\mathrm{log}}_{n}b}[/latex]

Let [latex]y={\mathrm{log}}_{b}M.[/latex] By taking the log base [latex]n[/latex] of both sides of the equation, we arrive at an exponential form, namely [latex]{b}^{y}=M.[/latex] It follows that

[latex]$$\begin{array}{lll}{\mathrm{log}}_{n}\left({b}^{y}\right)\hfill & ={\mathrm{log}}_{n}M\,\,\,\,\,\,\,\,\hfill & \text{Apply the one-to-one property}.\hfill \\ \,\,y{\mathrm{log}}_{n}b\hfill & ={\mathrm{log}}_{n}M \hfill & \text{Apply the power rule for logarithms}.\hfill \\ \,\,\,\,\,\,\,\,\,\,y\hfill & =\frac{{\mathrm{log}}_{n}M}{{\mathrm{log}}_{n}b}\hfill & \text{Isolate }y.\hfill \\ \,\,\,{\mathrm{log}}_{b}M\hfill & =\frac{{\mathrm{log}}_{n}M}{{\mathrm{log}}_{n}b}\hfill & \text{Substitute for }y.\hfill \end{array}$$[/latex]

For example, to evaluate [latex]{\mathrm{log}}_{5}36[/latex] using a calculator, we must first rewrite the expression as a quotient of common or natural logs. We will use the common log.

[latex]$$\begin{array}{lll}{\mathrm{log}}_{5}36\hfill & =\frac{\mathrm{log}\left(36\right)}{\mathrm{log}\left(5\right)}\,\,\hfill & \text{Apply the change of base formula using base 10}\text{.}\hfill \\ \hfill & \approx 2.2266\text{ }\hfill & \text{Use a calculator to evaluate to 4 decimal places}\text{.}\hfill \end{array}$$[/latex]

The Change-of-Base Formula

The change-of-base formula can be used to evaluate a logarithm with any base.

For any positive real numbers [latex]M,b,[/latex] and [latex]n,[/latex] where [latex]n\ne 1[/latex] and [latex]b\ne 1,[/latex]

[latex]$$ {\mathrm{log}}_{b}M\text{=}\frac{{\mathrm{log}}_{n}M}{{\mathrm{log}}_{n}b}.$$[/latex]

It follows that the change-of-base formula can be used to rewrite a logarithm with any base as the quotient of common or natural logs.

[latex]$$ {\mathrm{log}}_{b}M=\frac{\mathrm{ln}M}{\mathrm{ln}b}$$[/latex]

and

[latex]$${\mathrm{log}}_{b}M=\frac{\mathrm{log}M}{\mathrm{log}b}$$[/latex]

How To

Given a logarithm with the form [latex]{\mathrm{log}}_{b}M,[/latex] use the change-of-base formula to rewrite it as a quotient of logs with any positive base [latex]n,[/latex] where [latex]n\ne 1.[/latex]

  1. Determine the new base [latex]n,[/latex] remembering that the common log, [latex]\mathrm{log}\left(x\right),[/latex] has base 10, and the natural log, [latex]\mathrm{ln}\left(x\right),[/latex] has base [latex]e.[/latex]
  2. Rewrite the log as a quotient using the change-of-base formula
    • The numerator of the quotient will be a logarithm with base [latex]n[/latex] and argument [latex]M.[/latex]
    • The denominator of the quotient will be a logarithm with base [latex]n[/latex] and argument [latex]b.[/latex]

Example 13 – Changing Logarithmic Expressions to Expressions Involving Only Natural Logs

Change [latex]{\mathrm{log}}_{5}3[/latex] to a quotient of natural logarithms.

Because we will be expressing [latex]{\mathrm{log}}_{5}3[/latex] as a quotient of natural logarithms, the new base, [latex]n=e.[/latex]

We rewrite the log as a quotient using the change-of-base formula. The numerator of the quotient will be the natural log with argument 3. The denominator of the quotient will be the natural log with argument 5.

[latex]$$ \begin{array}{ll}{\mathrm{log}}_{b}M\hfill & =\frac{\mathrm{ln}M}{\mathrm{ln}b}\hfill \\ \,\,\,{\mathrm{log}}_{5}3\hfill & =\frac{\mathrm{ln}3}{\mathrm{ln}5}\hfill \end{array} $$[/latex]

Try It

Change [latex]{\mathrm{log}}_{0.5}8[/latex] to a quotient of natural logarithms.

Show answer

[latex]\frac{\mathrm{ln}8}{\mathrm{ln}0.5}[/latex]

Can we change common logarithms to natural logarithms?

Yes. Remember that [latex]\mathrm{log}9[/latex] means [latex]{\text{log}}_{\text{10}}\text{9}.[/latex] So, [latex]\mathrm{log}9=\frac{\mathrm{ln}9}{\mathrm{ln}10}.[/latex]

Example 14 – Using the Change-of-Base Formula with a Calculator

Evaluate [latex]{\mathrm{log}}_{2}\left(10\right)[/latex] using the change-of-base formula with a calculator.

According to the change-of-base formula, we can rewrite the log base 2 as a logarithm of any other base. Since our calculators can evaluate the natural log, we might choose to use the natural logarithm, which is the log base [latex]e.[/latex]

[latex]$$\begin{array}{ll}{\mathrm{log}}_{2}10=\frac{\mathrm{ln}10}{\mathrm{ln}2}\hfill & \text{Apply the change of base formula using base }e.\hfill \\ \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\approx 3.3219\hfill & \text{Use a calculator to evaluate to 4 decimal places}.\hfill \end{array} $$[/latex]

Try It

Evaluate [latex]{\mathrm{log}}_{5}\left(100\right)[/latex] using the change-of-base formula.

Show answer

 

[latex]\frac{\mathrm{ln}100}{\mathrm{ln}5}\approx \frac{4.6051}{1.6094}=2.861[/latex]

 

Access these online resources for additional instruction and practice with laws of logarithms.

Key Equations

The Product Rule for Logarithms [latex]{\mathrm{log}}_{b}\left(MN\right)={\mathrm{log}}_{b}\left(M\right)+{\mathrm{log}}_{b}\left(N\right)[/latex]
The Quotient Rule for Logarithms [latex]{\mathrm{log}}_{b}\left(\frac{M}{N}\right)={\mathrm{log}}_{b}M-{\mathrm{log}}_{b}N[/latex]
The Power Rule for Logarithms [latex]{\mathrm{log}}_{b}\left({M}^{n}\right)=n{\mathrm{log}}_{b}M[/latex]
The Change-of-Base Formula [latex]{\mathrm{log}}_{b}M\text{=}\frac{{\mathrm{log}}_{n}M}{{\mathrm{log}}_{n}b}\text{ }n>0,n\ne 1,b\ne 1[/latex]

Key Concepts

  • We can use the product rule of logarithms to rewrite the log of a product as a sum of logarithms. See (Example 1).
  • We can use the quotient rule of logarithms to rewrite the log of a quotient as a difference of logarithms. See (Example 2).
  • We can use the power rule for logarithms to rewrite the log of a power as the product of the exponent and the log of its base. See (Example 3), (Example 4), and (Example 5).
  • We can use the product rule, the quotient rule, and the power rule together to combine or expand a logarithm with a complex input. See (Example 6), (Example 7), and (Example 8).
  • The rules of logarithms can also be used to condense sums, differences, and products with the same base as a single logarithm. See (Example 9), (Example 10), (Example 11), and (Example 12).
  • We can convert a logarithm with any base to a quotient of logarithms with any other base using the change-of-base formula. See (Example 13).
  • The change-of-base formula is often used to rewrite a logarithm with a base other than 10 and [latex]e[/latex] as the quotient of natural or common logs. That way a calculator can be used to evaluate. See (Example 14).

Glossary

change-of-base formula
a formula for converting a logarithm with any base to a quotient of logarithms with any other base.
power rule for logarithms
a rule of logarithms that states that the log of a power is equal to the product of the exponent and the log of its base
product rule for logarithms
a rule of logarithms that states that the log of a product is equal to a sum of logarithms
quotient rule for logarithms
a rule of logarithms that states that the log of a quotient is equal to a difference of logarithms

License

Icon for the Creative Commons Attribution 4.0 International License

Algebra and Trigonometry Copyright © 2015 by OpenStax is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book