Limits Calculator
This Limits Calculator finds what a function approaches as x moves towards a chosen point, and shows the working line by line. Substituting the point directly is tried first, and if that gives a usable number the limit is simply that. When it gives an indeterminate form instead, the function is simplified or L'Hopital's rule is applied until it resolves. Following the same pattern every time keeps the substitution attempt visible before any rule is reached for.
Step-by-step method
- Set up the problem.
- Write the limit formula.
- Substitute x = a.
- If it gives 0/0, simplify the function.
- If it cannot be simplified, use L'Hôpital's rule.
- Substitute x = a again.
Formula: Limit
The limit is the value f(x) gets closer to as x gets closer to a. Put in a first, and only simplify when that gives 0 over 0.
Formula: L'Hôpital's Rule
When putting in a gives 0 over 0 and the fraction cannot be simplified, differentiate the top and the bottom separately and find the limit of that instead.
Useful Tips to Remember
Try direct substitution first; if it gives a real number, that is the limit. If it gives \(\frac{0}{0}\), the limit may still exist, so factor, cancel or rationalise and try again. A limit describes what a function approaches, not necessarily its value at that point. As \(x\) goes to infinity, divide by the highest power of \(x\) to see what the function approaches.
Required knowledge
- How to put a number in place of x and work out the expression, covered in the Evaluating Algebraic Expressions Calculator.
- How to factor a fraction and cancel the brackets the top and bottom share, covered in the Rational Expression Simplifier Calculator.
- How to differentiate the top and the bottom for L'Hôpital's rule, covered in the Derivative Calculator.
Where Are Limits Used?
A limit describes the value a function approaches as its input gets closer to a point, even when it cannot reach that point exactly. Limits are the foundation of calculus, since derivatives and integrals are both defined using them. They explain instantaneous speed, the long-term behaviour of populations and investments, and what happens to a formula when a quantity becomes very large or very small. Engineers use limits to understand maximum loads, and computer scientists use them to compare how fast algorithms grow.
- Defining derivatives and instantaneous speed
- Finding long-term values, such as where a population settles
- Understanding continuous compound interest and the number \(e\)
- Comparing how fast algorithms grow in computer science
- Finding asymptotes and behaviour at the edges of graphs
Limits Practice Problems
Example 1 finds \(\lim_{x \to 2} \frac{x^2 - 4}{x - 2}\), which needs factoring, and Example 2 finds \(\lim_{x \to 5} (3x + 1)\) by direct substitution. Try each one yourself before opening the examples. For two more free worked examples, check out the Limits Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the limit formula.
- Substitute x = a.
- If it gives 0/0, simplify the function.
- If it cannot be simplified, use L'Hôpital's rule.
- Substitute x = a again.
Formula
Formula: Limit
The limit is the value f(x) gets closer to as x gets closer to a. Put in a first, and only simplify when that gives 0 over 0.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the limit formula.
In this problem:
Step 3
Step 3 - Substitute \(x = 2\).
In this problem:
Step 3a
Step 3a - Substitute into the top.
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
- Work out each term on its own, dealing with any power before multiplying.
- Add and subtract the results from left to right.
Step 1
Step 1 - Set up the problem.
In this problem: The expression is \(x^{2} - 1 \cdot 4\) and the values given are \(x = 2\). Writing each term as a number times a variable part gives \(x^{2} - 4\).
Step 2
Step 2 - Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
In this problem: Every letter is swapped for its value, so \(x\) becomes \(\left(2\right)\), which turns \(x^{2} - 4\) into \(\left(2\right)^{2} - 4\).
Step 3
Step 3 - Work out each term on its own, dealing with any power before multiplying.
In this problem: The power is worked out first: \(\left(2\right)^{2} = 4\). Nothing is multiplying it, so the term is \(4\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(4 - 4\) gives \(0\).
Final Answer
Step 3b
Step 3b - Substitute into the bottom.
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
- Work out each term on its own, dealing with any power before multiplying.
- Add and subtract the results from left to right.
Step 1
Step 1 - Set up the problem.
In this problem: The expression is \(x - 1 \cdot 2\) and the values given are \(x = 2\). Writing each term as a number times a variable part gives \(x - 2\).
Step 2
Step 2 - Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
In this problem: Every letter is swapped for its value, so \(x\) becomes \(\left(2\right)\), which turns \(x - 2\) into \(\left(2\right) - 2\).
Step 3
Step 3 - Work out each term on its own, dealing with any power before multiplying.
In this problem: This term is the letter on its own, so it is worth \(2\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(2 - 2\) gives \(0\).
Final Answer
Step 3c
Step 3c - Put the top and the bottom back into the fraction.
In this problem:
Step 4
Step 4 - If it gives 0/0, simplify the function.
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- Factor the top and the bottom.
- Find the values x can't be.
- Cancel the brackets the top and the bottom share.
- Write the answer with the values x cannot be.
Depending on the expression, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The expression to simplify is \(\frac{x^{2} - 4}{x - 2}\). Simplifying means cancelling any bracket that is on both the top and the bottom.
Step 2
Step 2 - Factor the top and the bottom.
In this problem: Write the top and the bottom as brackets multiplied together, so it is easy to see what they share. Factor the top first, then the bottom, then put them back into the fraction.
Step 2a
Step 2a - Factor the top.
In this problem: The top is \(x^{2} - 4\). Breaking it into brackets gives \((x - 2)(x + 2)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Take out the common factor.
- Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
- Do the same again on what is left, until it cannot be broken down.
- Factor what is left.
- Write the polynomial as a product of its factors.
Depending on the polynomial, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The polynomial to factor is \(x^{2} - 4\). Factoring means writing it as a product of simpler polynomials.
Step 2
Step 2 - Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
In this problem: Look for a bracket that comes out of \(x^{2} - 4\).
Step 2a
Step 2a - List the numbers to try.
In this problem: Look at the last number, \(-4\). The numbers that go into \(4\), both positive and negative, are \(\pm 1, \pm 2, \pm 4\). Try them in order until one gives \(0\).
Step 2b
Step 2b - Try \(x = 1\).
In this problem: Set \(x = 1\) in \(x^{2} - 4\). It gives \(-3\), not \(0\), so \(x = 1\) is not a root.
Step 2c
Step 2c - Try \(x = -1\).
In this problem: Set \(x = -1\) in \(x^{2} - 4\). It gives \(-3\), not \(0\), so \(x = -1\) is not a root.
Step 2d
Step 2d - Try \(x = 2\).
In this problem: Set \(x = 2\) in \(x^{2} - 4\). It gives \(0\), so \(x = 2\) is a root. One root is enough to carry on, so the rest of the list is not tested here.
Step 2e
Step 2e - Use the root to find a factor.
In this problem: Start from the root \(x = 2\) found in the test. Take \(2\) away from both sides so that one side becomes \(0\). That leaves \(x - 2 = 0\), so the bracket \((x - 2)\) is \(0\) exactly at the root. A bracket like that always divides \(x^{2} - 4\) exactly (the Factor Theorem), so \((x - 2)\) is a factor.
Step 2f
Step 2f - Divide by the factor.
In this problem: Divide \(x^{2} - 4\) by \((x - 2)\). It gives \(x + 2\) with no remainder, so \(x^{2} - 4 = (x - 2)(x + 2)\), which splits it into two brackets.
Problem
Approach
Step-by-step method
- Set up the problem.
- Bring down the leading coefficient.
- Multiply by the divisor's number and add down each column.
- Read off the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The table needs two things: a number for the corner, which comes from the divisor, and the coefficients of the dividend, which go along the top.
Step 1a
Step 1a - Find the number for the corner.
In this problem: The corner number is the value of \(x\) that makes the divisor zero: \(x - 2 = 0\) gives \(x = 2\). So \(2\) goes in the corner.
Step 1b
Step 1b - Write down the coefficients of the dividend.
In this problem: Every power from \(x^{2}\) down to the number needs a place, so a missing power is written with a \(0\): \(x^{2} - 4 = x^{2} + 0x - 4\). The numbers in front of each power, in order, are \(1\), \(0\) and \(-4\).
Step 1c
Step 1c - Draw the table.
In this problem: The corner number \(2\) goes on the left, and the coefficients \(1\), \(0\) and \(-4\) go along the top row. The row under them stays empty for now, it is where the multiplied numbers will go. The answers are written under the line, and the last column is fenced off because the number that ends up there is the remainder.
| \(2\) | \(1\) | \(0\) | \(-4\) |
Step 2
Step 2 - Bring down the leading coefficient.
In this problem: The leading coefficient \(1\) comes straight down to the bottom row.
| \(2\) | \(1\) | \(0\) | \(-4\) |
| \(1\) |
Step 3
Step 3 - Multiply by the divisor's number and add down each column.
In this problem: There are \(2\) columns left. For each one, the last number on the bottom row is multiplied by \(2\), written in the next column, and added to the number above it.
Step 3a
Step 3a - Work through the second column.
In this problem: \(2 \times 1 = 2\) goes under \(0\), and \(0 + 2 = 2\) goes on the bottom row.
| \(2\) | \(1\) | \(0\) | \(-4\) |
| \(2\) | |||
| \(1\) | \(2\) |
Step 3b
Step 3b - Work through the third column.
In this problem: \(2 \times 2 = 4\) goes under \(-4\), and \(-4 + 4 = 0\) goes on the bottom row.
| \(2\) | \(1\) | \(0\) | \(-4\) |
| \(2\) | \(4\) | ||
| \(1\) | \(2\) | \(0\) |
Step 4
Step 4 - Read off the quotient and the remainder.
In this problem: The last number on the bottom row, \(0\), is the remainder, and \(1\) and \(2\) are the coefficients of the quotient. Dividing by \(x - 2\) lowers every power by one, so the quotient starts at \(x\) instead of \(x^{2}\), giving \(x + 2\).
Final Answer
Step 3
Step 3 - Write the polynomial as a product of its factors.
In this problem: Putting all the factors together gives \((x - 2)(x + 2)\).
Final Answer
Step 2b
Step 2b - Factor the bottom.
In this problem: The bottom is \(x - 2\). Its terms share no number, so it can't be broken down and stays as it is.
Step 2c
Step 2c - Put the factored top and bottom back into the fraction.
In this problem: The top is now \((x - 2)(x + 2)\) and the bottom is \(x - 2\).
Step 3
Step 3 - Find the values x can't be.
In this problem: You can't divide by \(0\), so \(x - 2\) can't be \(0\). That means \(x\) can't be \(2\).
Step 4
Step 4 - Cancel the brackets the top and the bottom share.
In this problem: \((x - 2)\) is on both the top and the bottom. A bracket divided by itself is \(1\), so it is crossed out once on each side. What is left is \(x + 2\).
Step 5
Step 5 - Write the answer with the values x cannot be.
In this problem: The simplified answer is \(x + 2\). The values found for the bottom still count, because the original expression can't use them, so they are written next to it.
Final Answer
Step 5
Step 5 - Substitute \(x = 2\) again.
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
- Work out each term on its own, dealing with any power before multiplying.
- Add and subtract the results from left to right.
Step 1
Step 1 - Set up the problem.
In this problem: The expression is \(x + 2\) and the values given are \(x = 2\).
Step 2
Step 2 - Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
In this problem: Every letter is swapped for its value, so \(x\) becomes \(\left(2\right)\), which turns \(x + 2\) into \(\left(2\right) + 2\).
Step 3
Step 3 - Work out each term on its own, dealing with any power before multiplying.
In this problem: This term is the letter on its own, so it is worth \(2\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(2 + 2\) gives \(4\).
Final Answer
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the limit formula.
- Substitute x = a.
- If it gives 0/0, simplify the function.
- If it cannot be simplified, use L'Hôpital's rule.
- Substitute x = a again.
Formula
Formula: Limit
The limit is the value f(x) gets closer to as x gets closer to a. Put in a first, and only simplify when that gives 0 over 0.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the limit formula.
In this problem:
Step 3
Step 3 - Substitute \(x = 5\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
- Work out each term on its own, dealing with any power before multiplying.
- Add and subtract the results from left to right.
Step 1
Step 1 - Set up the problem.
In this problem: The expression is \(3x + 1\) and the values given are \(x = 5\).
Step 2
Step 2 - Replace every variable with the value given for it, wrapping a value in brackets so a negative sign is not lost.
In this problem: Every letter is swapped for its value, so \(x\) becomes \(\left(5\right)\), which turns \(3x + 1\) into \(3\left(5\right) + 1\).
Step 3
Step 3 - Work out each term on its own, dealing with any power before multiplying.
In this problem: Multiplying the term out gives \(3 \cdot 5 = 15\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(15 + 1\) gives \(16\).
Final Answer
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Limits Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Limits Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.