Skip to content

Logarithmic equations and inequalities

Logarithmic equations and inequalities

The domain first

A logarithm is defined only for a positive number. So a logarithmic equation is solved in its domain, and you find the domain before you start:

  • In log⁡2(x+2)+log⁡2(x−2)\displaystyle \log_{2}(x+2)+\log_{2}(x-2) you need x+2>0\displaystyle x+2>0 and x−2>0\displaystyle x-2>0, that is x>2\displaystyle x>2.
  • The laws of logarithms can widen the domain: log⁡2((x+2)(x−2))\displaystyle \log_{2}\left((x+2)(x-2)\right) is defined for x<−2\displaystyle x<-2 too. A solution outside the domain of the original equation is rejected.
One logarithm on each side

log⁡ax\displaystyle \log_a x increases or decreases, so it takes every value once. When each side holds one logarithm to the same base, or a logarithm and a number:

log⁡af(x)=log⁡ag(x)  ⟺  f(x)=g(x)\displaystyle \log_{a}f(x)=\log_{a}g(x)\iff f(x)=g(x)f(x)>0, g(x)>0\displaystyle f(x)>0,\ g(x)>0
log⁡af(x)=c  ⟺  f(x)=ac\displaystyle \log_{a}f(x)=c\iff f(x)=a^{c}
Worked example: a sum of logarithms

The example below solves log⁡2(x+2)+log⁡2(x−2)=5\displaystyle {\log_{2}(x+2)+\log_{2}(x-2)}={5}:

  • The domain: x>2\displaystyle x>2.
  • The logarithm of a product: log⁡2(x2−4)=5\displaystyle {\log_{2}(x^{2}-4)}={5}, so x2−4=25=32\displaystyle {x^{2}-4}={2^{5}}={32}.
  • x2=36\displaystyle {x^{2}}={36}, that is x=6\displaystyle {x}={6} or x=−6\displaystyle {x}={-6}.
  • −6\displaystyle -6 is outside the domain. The solution: x=6\displaystyle {x}={6}.
Different bases

When the bases differ, change all the logarithms to one base. The example below solves log⁡3(x−1)+log⁡9(x−1)=3\displaystyle {\log_{3}(x-1)+\log_{9}(x-1)}={3}, in the domain x>1\displaystyle x>1:

  • log⁡9(x−1)=log⁡3(x−1)log⁡39=12log⁡3(x−1)\displaystyle {\log_{9}(x-1)}={\frac{\log_{3}(x-1)}{\log_{3}9}}={\frac{1}{2}\log_{3}(x-1)}.
  • 32log⁡3(x−1)=3\displaystyle {\frac{3}{2}\log_{3}(x-1)}={3}, so log⁡3(x−1)=2\displaystyle {\log_{3}(x-1)}={2}.
  • x−1=9\displaystyle {x-1}={9}, and x=10\displaystyle {x}={10}.
The substitution t=log⁡ax\displaystyle {t}={\log_a x}

When an equation holds log⁡ax\displaystyle \log_a x and (log⁡ax)2\displaystyle (\log_a x)^2, substitute t=log⁡ax\displaystyle {t}={\log_a x}. The example below solves (log⁡2x)2−log⁡2x−6=0\displaystyle {(\log_{2}x)^{2}-\log_{2}x-6}={0}, in the domain x>0\displaystyle x>0:

  • t2−t−6=0\displaystyle {t^{2}-t-6}={0}, so t=3\displaystyle {t}={3} or t=−2\displaystyle {t}={-2}.
  • log⁡2x=3\displaystyle {\log_{2}x}={3} gives x=8\displaystyle {x}={8}; log⁡2x=−2\displaystyle {\log_{2}x}={-2} gives x=14\displaystyle {x}={\frac{1}{4}}.
  • t\displaystyle t can be negative: log⁡ax\displaystyle \log_a x takes every value.
An exponential equation with different bases

When the two sides cannot be written as powers of the same base, take the logarithm of both sides. The example below solves 2x=5x−1\displaystyle {2^{x}}={5^{x-1}}:

  • log⁡2x=log⁡5x−1\displaystyle {\log2^{x}}={\log5^{x-1}}, that is xlog⁡2=(x−1)log⁡5\displaystyle {x\log2}={(x-1)\log5}.
  • xlog⁡5−xlog⁡2=log⁡5\displaystyle {x\log5-x\log2}={\log5}, so x=log⁡5log⁡5−log⁡2≈1.756\displaystyle {x}={\frac{\log5}{\log5-\log2}\approx1.756}.
Logarithmic inequalities

As in an exponential inequality: for a>1\displaystyle a>1 the sign stays, and for 0<a<1\displaystyle 0<a<1 it turns – and in addition, the solution lies inside the domain. The example below solves log⁡12(x−1)>−2\displaystyle \log_{\frac{1}{2}}(x-1)>-2:

  • The domain: x>1\displaystyle x>1.
  • −2=log⁡124\displaystyle {-2}={\log_{\frac{1}{2}}4}, because (12)−2=4\displaystyle {\left(\frac{1}{2}\right)^{-2}}={4}.
  • The base 12\displaystyle \frac{1}{2} is less than 1, so the sign turns: x−1<4\displaystyle x-1<4, that is x<5\displaystyle x<5.
  • Together with the domain: 1<x<5\displaystyle 1<x<5.
Exercise 1

Solve.

a
    b
      c
        d
          Exercise 2

          Solve with the change of base.

          a
            b
              Exercise 3

              Solve with a substitution.

              a
                b
                  Exercise 4

                  Solve by taking the logarithm to base 10 of both sides.

                  a
                    b
                      Exercise 5

                      Solve the inequalities.

                      a
                        b
                          c
                            d