Subjects
Grades
To graph a logarithmic function, first identify the vertical asymptote and observe the sign of parameter |b| to locate the curve. Then, using logarithm laws, construct a table of values to plot key points and graph the curve.


The logarithmic function has a vertical asymptote and its domain is restricted. The curve is located on the left or right side of the asymptote. The side that the curve is on can be determined by analyzing the sign of parameter |b.|
The logarithmic function in the form |f(x)=a\log_c(bx)| has a vertical asymptote at |x=0.| Follow these steps to graph it.
When graphing the logarithmic function, the curve must get closer and closer to the asymptote without ever touching it.
Graph the logarithmic function with the rule |f(x)=-2\log_{3}\left(-\dfrac{x}{2}\right).|

| |\boldsymbol{x}| | |-1| | |-2| | |-4| | |-6| |
| |\boldsymbol{y}| | |1.26| | |0| | |-1.26| | |-2| |

To make logarithm calculations easier and obtain integer coordinates, we select |x|-values so the argument of the logarithm is a power of the base.
In the previous example, the rule was |f(x)=-2\log_{3}\left(-\dfrac{x}{2}\right).| The base is |\boldsymbol{\color{#FF55C3}3| and the argument is |\left(\boldsymbol{\color{#333FB1}{-\dfrac{x}{2}}\right).|
We determine the powers of |\boldsymbol{\color{#FF55C3}3}.|
||\begin{align}&\boldsymbol{\color{#FF55C3}3^\color{#3A9A38}0}&&\boldsymbol{\color{#FF55C3}3^\color{#3A9A38}1}&&\boldsymbol{\color{#FF55C3}3^\color{#3A9A38}2}&&\boldsymbol{\color{#FF55C3}3^\color{#3A9A38}3}&&\boldsymbol{\color{#FF55C3}3^\color{#3A9A38}4}\\&\boldsymbol{\color{#333FB1}1}&&\boldsymbol{\color{#333FB1}3}&&\boldsymbol{\color{#333FB1}9}&&\boldsymbol{\color{#333FB1}{27}}&&\boldsymbol{\color{#333FB1}{81}}\end{align}||
Then, we find the |x|-values that have these powers in the argument.
| ||\begin{align}\boldsymbol{\color{#333FB1}{-\dfrac{x}{2}}} &= \boldsymbol{\color{#333FB1}1}\\ x &= -2\end{align}||When |x=-2,| the argument is |\boldsymbol{\color{#333FB1}1}.| ||\log_{\boldsymbol{\color{#FF55C3}3}}(\boldsymbol{\color{#333FB1}1})= \boldsymbol{\color{#3A9A38}0}|| | ||\begin{align}\boldsymbol{\color{#333FB1}{-\dfrac{x}{2}}} &= \boldsymbol{\color{#333FB1}3}\\ x & =-6\end{align}||When |x=-6,| the argument is |\boldsymbol{\color{#333FB1}3}.| ||\log_{\boldsymbol{\color{#FF55C3}3}}(\boldsymbol{\color{#333FB1}3})=\boldsymbol{\color{#3A9A38}1}|| | ||\begin{align}\boldsymbol{\color{#333FB1}{-\dfrac{x}{2}}} &= \boldsymbol{\color{#333FB1}9}\\ x & =-18\end{align}||When |x=-18,| the argument is |\boldsymbol{\color{#333FB1}9}.| ||\log_{\boldsymbol{\color{#FF55C3}3}}(\boldsymbol{\color{#333FB1}{9}})=\boldsymbol{\color{#3A9A38}{2}}|| |
So, by choosing |x=-2,| |x=-6,| and |x=-18,| there is no need to use the change of base law for logarithms to do the calculations. Also, we get coordinates that are integers.