Logarithmic functions: domains, monotonicity, and graphs
Analyze logarithmic functions as inverses of exponentials, compare both base cases, and locate domains and vertical asymptotes.
Content updated: October 22, 2026
A logarithmic function is the inverse of an exponential function. Its domain, range, and limits therefore follow from the relation $y=\log_a x$ if and only if $x=a^y$.
Objectives: analyze the two base cases; distinguish domain from range; draw graphs and check conditions when the argument is an expression.
Prerequisites: the logarithm definition, exponential functions, limits, and asymptotes.
On this page: Idea · Method · Examples · Practice · Further learning
1. The inverse function and its domain
Let $a>0$, $a\ne1$. The function $y=\log_a x$ has domain $(0;+\infty)$ and range $\mathbb R$. Every real value $y$ is attained at $x=a^y>0$. The graph passes through $(1;0)$ and $(a;1)$, but does not meet the vertical axis because it is undefined at $x=0$.
The graphs of $y=a^x$ and $y=\log_a x$ are reflections across the line $y=x$: interchanging coordinates changes $y=a^x$ into $x=a^y$. This is a relation between inverse functions, rather than a change of logarithmic base.
2. Two base cases and logarithm signs
If $a>1$, the logarithmic function is strictly increasing on $(0;+\infty)$. Since the exponential with the same base is increasing, $0<x_1<x_2$ forces $\log_a x_1<\log_a x_2$. Its limits are
If $0<a<1$, the logarithmic function is strictly decreasing, and
Both types are continuous, have no local extrema, and have vertical asymptote $x=0$, the axis $Oy$. At 0, take the limit only from the right because the domain contains no negative numbers. Drawing the asymptote does not add $x=0$ to the domain.
For $a>1$, the logarithm is negative when $0<x<1$, zero at 1, and positive when $x>1$. For $0<a<1$, the positive and negative signs interchange. When the argument is $u(x)$, always begin with $u(x)>0$; the domain is not automatically $(0;+\infty)$ in the variable $x$.
To graph the function, use $(a^{-1};-1)$, $(1;0)$, $(a;1)$, and $(a^2;2)$, then join according to monotonicity and the limits. The points support the drawing; conclusions on the entire domain follow from monotonicity of the inverse function.
3. Worked examples
Example 1. Bases on opposite sides of 1
The function $f(x)=\log_2 x$ is strictly increasing, while $g(x)=\log_{1/3}x$ is strictly decreasing. Both have domain $(0;+\infty)$ and attain every real value. At $x=1$, both are zero; at $x=3$, the second equals $-1$ because $(1/3)^{-1}=3$.
Example 2. Analyzing and graphing y=log₂x
The function has domain $(0;+\infty)$, is strictly increasing, and has no local extrema. As $x$ increases from $0^+$ to $+\infty$, its values increase from $-\infty$ to $+\infty$. The line $x=0$ is a vertical asymptote. Plot $(1/4;-2)$, $(1/2;-1)$, $(1;0)$, $(2;1)$, and $(4;2)$.
Example 3. A graph with base less than 1
For $y=\log_{1/3}x$, exact points are $(1/9;2)$, $(1/3;1)$, $(1;0)$, $(3;-1)$, and $(9;-2)$. The graph decreases from $+\infty$ to $-\infty$ as $x$ increases through the positive domain. The window below shows both types of base; some stated points may lie outside the window but still belong to the graphs.
4. Practice exercises
- Find the domain and vertical asymptote of $y=\log_2(x-3)$.
- Solve $\log_{1/2}x=-2$.
- Compare $\log_{1/3}2$ and $\log_{1/3}5$, and state their signs.
Show hints and answers
- We require $x-3>0$, so the domain is $(3;+\infty)$. As $x\to3^+$, the logarithm tends to $-\infty$, so $x=3$ is a vertical asymptote.
- We have $x=(1/2)^{-2}=4$, satisfying the positive-domain condition.
- Since the function is decreasing and 2<5, we have $\log_{1/3}2>\log_{1/3}5$. Both are negative because their arguments exceed 1 while the base is less than 1.
5. Common mistakes
Distinguish the domain $(0;+\infty)$ from the range $\mathbb R$. Do not take a left-hand limit at 0 for a real logarithm. Reverse comparisons when the base lies between 0 and 1. For a shifted argument, determine the domain and asymptote from that argument itself.
6. Related lessons
- Logarithms (English lesson)
- Common and natural logarithms (English lesson)
- The change-of-base formula (English lesson)
- Exponential functions (English lesson)
- Derivatives of exponential and logarithmic functions (English lesson)
Leave a Reply