Limits by Direct Substitution

Last Updated : 10 Feb, 2026

The direct substitution method for limits is a technique in which the value that the variable approaches is directly substituted into the function to find the limit, if the function is defined at that value.

Geometrically speaking, the limit of a function at a particular point can be easily estimated through its graph. For example, in the graph given below, at x = 3. The function seems to be taking on the value of 1. In this case, it does not matter from which side we approach — the left-hand side or the right-hand side. 

Screenshot20210528at92053PM

For the function f(x), the limit at x = a is denoted by 

\lim_{x \to a} f(x)

How to Find Limits Using the Direct Substitution Method

The substitution rule for calculating limits is a method of finding limits by simply substituting the value of x with the point at which we want to calculate the limit. Consider a function f(x). The goal is to find the limit of the function at x = a. In this method, x is simply substituted with “a” in the expression for the function f(x). 

\lim_{x \to a}f(x) = f(a)

Let's look at this method through an example, 

Considering f(x) = x2

\lim_{x \to 1}f(x) = f(1)

\lim_{x \to 1}x^2 = f(1)

⇒ 12 = f(1)

⇒ 1 = f(1)

or f(1)=1

Often it is possible to calculate the limits for the function with this rule, to state this formally. 

If f(x) is an expression built from the polynomials, roots, absolute values, exponential, logarithms, trigonometric functions, and/or inverse trigonometric functions by using composition of functions and the operations such as x, +, -, / then for any a for which f(a) is defined, 

\lim_{x \to a}f(x) = f(a)

Undefined limits by Direct Substitution

There are certain limits which cannot be calculated by this method. For example, consider a function f(x) = \frac{x}{ln(x)}. Calculate the limit for this function at x = 1. 

\lim_{x \to 1}f(x)

\lim_{x \to 1}\frac{x}{ln(x)}

\frac{\lim_{x \to 1} x}{\lim_{x \to 1} ln(x)}

\frac{1}{0}

This limit is undefined as \frac{1}{0} is undefined .In such cases, the direct substitution method fail.

Limits of Trigonometric Function

Direct substitution can sometimes be used to calculate the limits for functions involving trigonometric functions. For example, let's say we have a function f(x) and we want to calculate the limits for that function at x = 0.  Let's see this with an example. 

Example: Calculate the \lim_{x \to 0}f(x)

f(x) = sin(x) + sin(x)cos(x)

Solution:

\lim_{x \to 0}f(x)

⇒ \lim_{x \to 0}(sin(x) + sin(x)cos(x)) ---taking sin(x) in common

\lim_{x \to 0}(sin(x)(1 + cos(x))

\lim_{x \to 0}sin(x) \times \lim_{x \to 0}(1 + cos(x))

⇒0 × (1 + 1)

⇒ 0 

Limits of Piecewise Function

When working with piecewise functions, the substitution rule generally does not work at the places where the definition of the function is changing. It is used in a slightly modified way for such functions.

frame_3270

Example: Calculate the value of \lim_{x \to 1}f(x)

f(x)= \begin{cases} x^2-1,& \text{if } x\geq 1\\ x, & \text{otherwise} \end{cases}

Solution: 

At x = 1, the function definition is changing. So it is not advised to directly apply the rule. In such functions, one should look for the limit from both sides. 

Left-hand Side Limit 

\lim_{x \to 1^{-}}f(x)

 \lim_{x \to 1^-} x

⇒1

Right-hand Side Limit 

\lim_{x \to 1^{+}}f(x)

 \lim_{x \to 1^+}  x^2-1

⇒0

In this case, limits from both sides are different. 

Sample Problems

Question 1: Calculate the \lim_{x \to 0}f(x)

f(x) = x2 + x + 1

Solution:

\lim_{x \to 0}f(x)

⇒ \lim_{x \to 0}(x^2 + x + 1)

(0^2 + 0 + 1)

⇒ 1

Question 2: Calculate the \lim_{x \to 1}f(x)

f(x) = \frac{x^2 + x + 1}{x + 1}

Solution:

\lim_{x \to 1}\frac{x^2 + x + 1}{x + 1}

⇒ \\frac{\lim_{x \to 1}x^2 + x + 1}{\lim_{x \to 1}x + 1}

\frac{1^2 + 1 + 1}{1 + 1}

⇒ \frac{3}{2}

Question 3: Calculate the value of \lim_{x \to 1}f(x)

f(x)= \begin{cases} sin(x),& \text{if } x\geq 1\\ cos(x), & \text{otherwise} \end{cases}

Solution: 

At x = 1, the function definition is changing. So it is not advised to directly apply the rule. In such functions, one should look for the limit from both sides. 

Left-hand Side Limit 

\lim_{x \to 1^{-}}cos(x)

cos(1)

Right-hand Side Limit 

\lim_{x \to 1^{+}}sin(x)

sin(1)

In this case, limits from both sides are different. 

Question 4: Calculate the \lim_{x \to 1}f(x)

f(x) = \frac{e^x + x + 1}{log(x) + 1}

Solution:

\lim_{x \to 1}\frac{e^x + x + 1}{log(x) + 1}

⇒ \\frac{\lim_{x \to 1}e^x + x + 1}{\lim_{x \to 1}log(x) + 1}

\frac{e^1 + 1 + 1}{log(1) + 1}

⇒ \frac{e^1 + 2}{0 + 1}

⇒ e + 2

Question 5: Calculate the \lim_{x \to 1}f(x)

f(x) = f(x)= \frac{e^{sin(x)} + tan(x) + 1}{log(x) + 1}

Solution:

\lim_{x \to 1}\frac{e^{sin(x)} + tan(x) + 1}{log(x) + 1}

Since all the functions involved are continuous at x = 1, we can directly substitute x = 1:

\frac{e^{sin(x)} + tan(1) + 1}{log(1) + 1}

Now, evaluate each term:

sin(1) = sin(1), tan(1) = tan(1), log(1) = 0

\frac{e^{sin(1)} + tan(1) + 1}{0 + 1}

⇒ {e^{sin(1)} + tan(1) + 1}

⇒  \lim_{x \to 1}f(x) = {e^{sin(1)} + tan(1) + 1}

Question 6: Calculate the \lim_{x \to 0}f(x) using substitution rule.

f(x) = \frac{sin^2(x) + cos(x) - 1}{1 - cos(x)}

Solution:

\lim_{x \to 0}\frac{sin^2(x) + cos(x) - 1}{1 - cos(x)}

⇒ \\frac{\lim_{x \to 0}sin^2(x) + cos(x) - 1}{\lim_{x \to 0}1 - cos(x)}

\frac{sin^2(0) + cos(0) - 1}{1 - cos(0)}

\frac{0^2+1-1}{1-1} = \frac{0}{0}

This is 0/0 form, so the limit is undefined. The substitution rule cannot be used here. 

Question 7: Calculate the value of \lim_{x \to 1}f(x)

f(x)= \begin{cases} e^x,& \text{if } x\geq 1\\ e^{-x}, & \text{otherwise} \end{cases}

Solution: 

At x = 1, the function definition is changing. So it is not advised to directly apply the rule. In such functions, one should look for the limit from both sides. 

Left-hand Side Limit 

\lim_{x \to 1^{-}}e^{-x}

\frac{1}{e}

Right-hand Side Limit 

\lim_{x \to 1^{+}}e^{x}

e

In this case also, limits from both sides are different. 

Practice Problems

1. Calculate the \lim_{x \to 1} \frac{e^x + x + 1}{\log(x) + 1}

2. Calculate the \lim_{x \to 0} \frac{e^x - 1}{x}

3. Calculate the \lim_{x \to 0} \frac{\sin^2(x) + \cos(x) - 1}{1 - \cos(x)}

4. Calculate the \lim_{x \to 1} \frac{e^{\sin(x)} + \tan(x) + 1}{\log(x) + 1}

5. Calculate the \lim_{x \to -1} \frac{x^3 + 2x^2 - x - 2}{x + 1}

6. Calculate the \lim_{x \to 0} \frac{x - \sin(x)}{x^3}

7. Calculate the \lim_{x \to 0} \frac{\tan(x)}{x}

8. Calculate the \lim_{x \to 1} \frac{x^3 - 1}{x - 1}

9. Calculate the \lim_{x \to 0} \frac{\cos(x) - 1}{x^2}

10. Calculate the \lim_{x \to 2} \frac{x^2 - 4}{x - 2}

Comment

Explore