Skip to main content

Logarithmic functions: domains, monotonicity, and graphs

2026-10-22 Cùng Học Toán Comments: 0

Analyze logarithmic functions as inverses of exponentials, compare both base cases, and locate domains and vertical asymptotes.

High schoolPowers & Logarithms

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

$$\lim_{x\to0^+}\log_a x=-\infty,\qquad \lim_{x\to+\infty}\log_a x=+\infty\quad(a>1).$$

If $0<a<1$, the logarithmic function is strictly decreasing, and

$$\lim_{x\to0^+}\log_a x=+\infty,\qquad \lim_{x\to+\infty}\log_a x=-\infty\quad(0<a<1).$$

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.

Graphs of two logarithmic functionsThe graphs are calculated from the two equations stated in the lesson; only part of each is shown. Both pass through (1;0) and are defined only to the right of the vertical axis; one increases and the other decreases.Graphs of two logarithmic functionsy = log₂ xy = log₁/₃ x01234-4-3-2-1123xy(1; 0)Only part of each graph is shown; the limits describe its ends.
Graphs calculated from the lesson's formulas; blue dots mark the exact sample points.

4. Practice exercises

  1. Find the domain and vertical asymptote of $y=\log_2(x-3)$.
  2. Solve $\log_{1/2}x=-2$.
  3. Compare $\log_{1/3}2$ and $\log_{1/3}5$, and state their signs.
Show hints and answers
  1. 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.
  2. We have $x=(1/2)^{-2}=4$, satisfying the positive-domain condition.
  3. 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

7. Reference material

Leave a Reply

Your email address will not be published. Required fields are marked *