Limit of a Composite Function

Evaluate limits of composite functions by moving the limit inside to the inner function, provided the outer function is continuous at the limiting value.

limxaf(g(x))=f(limxag(x))\lim_{x \to a} f\big(g(x)\big) = f\Big(\lim_{x \to a} g(x)\Big)

Solve a problem with Limit of a Composite Function

Type the problem. The solver will use Limit of a Composite Function where Limit of a Composite Function is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Limit of a Composite Function takes
ff
gg
xx
aa
Limit of a Composite Function
SymbolMeaning
ffThe outer function in the composition—the function that will be applied last. It must be continuous at the point limxag(x)\lim_{x \to a} g(x) for this rule to apply.
ggThe inner function whose output becomes the input to ff. This is the function whose limit you evaluate first.
xxThe independent variable that is changing and approaching the value aa. Confusing this with aa will lead you to substitute instead of taking a limit.
aaThe value that xx approaches as a limit. This is a fixed number, not a variable, and xx never actually equals aa in the limit definition.

When to use it

Use this when you need to find the limit of a composite function f(g(x))f(g(x)) as xx approaches a value.

Level

Usually taught in: Calculus I

Worked examples

1. Simple composite function with a square root

Problem

Find limx23x+1\lim_{x \to 2} \sqrt{3x + 1}.
  1. limx23x+1=limx2(3x+1)\lim_{x \to 2} \sqrt{3x + 1} = \sqrt{\lim_{x \to 2} (3x + 1)}

    The outer function is the square root, which is continuous for positive numbers. We can move the square root outside the limit.

  2. limx2(3x+1)=3(2)+1\sqrt{\lim_{x \to 2} (3x + 1)} = \sqrt{3(2) + 1}

    Evaluate the inner limit using direct substitution since 3x+13x + 1 is a polynomial.

  3. 3(2)+1=6+1=7\sqrt{3(2) + 1} = \sqrt{6 + 1} = \sqrt{7}

    Simplify inside the square root to get the final answer.

Answer: 7\sqrt{7}

The square root function is continuous, so we could apply it after finding the limit of the expression inside. The inner limit evaluated to 7, and then we took the square root.

2. Cubic function with negative values

Problem

Find limx1(2x5)3\lim_{x \to -1} (2x - 5)^3.
  1. limx1(2x5)3=(limx1(2x5))3\lim_{x \to -1} (2x - 5)^3 = \left(\lim_{x \to -1} (2x - 5)\right)^3

    The outer function is cubing, which is continuous everywhere. Move the cube outside the limit.

  2. (limx1(2x5))3=(2(1)5)3\left(\lim_{x \to -1} (2x - 5)\right)^3 = (2(-1) - 5)^3

    Evaluate the inner limit by substituting x=1x = -1 into 2x52x - 5.

  3. (2(1)5)3=(25)3=(7)3=343(2(-1) - 5)^3 = (-2 - 5)^3 = (-7)^3 = -343

    Simplify step by step: multiply 2(1)=22 \cdot (-1) = -2, then subtract to get 7-7, then cube to get 343-343.

Answer: 343-343

Even though we had negative values, this rule works because the cube function is continuous everywhere, including on negative numbers. The inner limit gave us 7-7, which we then cubed.

3. Word problem: Video game score progression

Problem

A video game awards points based on level: P(n)=100n2P(n) = 100n^2. A player's level increases over time as n(t)=2t+1n(t) = 2t + 1 where tt is measured in minutes. Find the limit of the player's score as tt approaches 3 minutes by finding limt3P(n(t))\lim_{t \to 3} P(n(t)).
  1. limt3P(n(t))=limt3100(2t+1)2\lim_{t \to 3} P(n(t)) = \lim_{t \to 3} 100(2t + 1)^2

    Substitute the expression for n(t)=2t+1n(t) = 2t + 1 into the score formula P(n)=100n2P(n) = 100n^2.

  2. limt3100(2t+1)2=100(limt3(2t+1))2\lim_{t \to 3} 100(2t + 1)^2 = 100 \left(\lim_{t \to 3} (2t + 1)\right)^2

    The outer function is squaring (which is continuous). Factor out the constant 100 using limit laws, then move the square outside.

  3. 100(limt3(2t+1))2=100(2(3)+1)2=100(7)2=10049=4900100 \left(\lim_{t \to 3} (2t + 1)\right)^2 = 100(2(3) + 1)^2 = 100(7)^2 = 100 \cdot 49 = 4900

    Substitute t=3t = 3 into 2t+12t + 1 to get 77, square it to get 4949, and multiply by 100100.

Answer: 4900 points4900 \text{ points}

We evaluated the inner limit first (the level at t=3t = 3 is n=7n = 7), then applied the outer scoring function (P(7)=10049=4900P(7) = 100 \cdot 49 = 4900). This is the score the player approaches at that time.

Common mistakes

Where Limit of a Composite Function usually goes wrong
Answer came out wrong
Writing limxaf(g(x))=f(g(a))\lim_{x \to a} f(g(x)) = f(g(a)) without checking whether ff is continuous at g(a)g(a).
Always verify that the outer function ff is continuous at the value limxag(x)\lim_{x \to a} g(x) before applying this rule.
Computing limxag(x)\lim_{x \to a} g(x) incorrectly, then mechanically substituting it into ff without double-checking the inner limit.
After computing limxag(x)\lim_{x \to a} g(x), pause and verify it separately before feeding it into ff.
Trying to apply this rule when the inner limit does not exist, leading to a nonsensical conclusion about the composite limit.
First establish that limxag(x)\lim_{x \to a} g(x) exists and is finite before using this rule.
The mistakeWhy it is wrongThe fix
Writing limxaf(g(x))=f(g(a))\lim_{x \to a} f(g(x)) = f(g(a)) without checking whether ff is continuous at g(a)g(a).This assumes the composition is continuous at aa, which is not always true if ff has a discontinuity at the point where the inner limit lands.Always verify that the outer function ff is continuous at the value limxag(x)\lim_{x \to a} g(x) before applying this rule.
Computing limxag(x)\lim_{x \to a} g(x) incorrectly, then mechanically substituting it into ff without double-checking the inner limit.If you miscalculate the inner limit, you are substituting the wrong value into the outer function, which gives a completely incorrect answer that you may not notice.After computing limxag(x)\lim_{x \to a} g(x), pause and verify it separately before feeding it into ff.
Trying to apply this rule when the inner limit does not exist, leading to a nonsensical conclusion about the composite limit.The theorem requires that limxag(x)\lim_{x \to a} g(x) exists as a real number; if g(x)g(x) oscillates or diverges as xax \to a, the rule does not apply.First establish that limxag(x)\lim_{x \to a} g(x) exists and is finite before using this rule.

Tips and when to use something else

  • This rule works seamlessly when both ff and gg are polynomials, or when ff is a power, root, or trigonometric function applied to a polynomial—these are all continuous.
  • If the outer function has a discontinuity or is undefined at the limiting value, you cannot use this rule directly; consider L'Hopital's Rule or algebraic simplification instead.
  • A quick sanity check: if direct substitution f(g(a))f(g(a)) gives you a real number, then that number is your limit—the rule applies and agrees with substitution.
  • Watch out for composite limits where the inner function approaches an asymptote or point of discontinuity in the outer function; these require careful analysis beyond this rule.

Frequently asked questions

Can I always move a limit inside a composite function?
No. The outer function must be continuous at the limiting value of the inner function. For example, if limxag(x)=L\lim_{x \to a} g(x) = L and ff is continuous at LL, then the rule applies. If ff has a discontinuity or is undefined at LL, you need a different approach like L'Hopital's Rule.
What if the limit of the inner function does not exist?
Then this rule does not apply, and the limit of the composite function either does not exist or must be found by other means. For instance, if limxag(x)\lim_{x \to a} g(x) oscillates or approaches infinity, you cannot use this theorem.
Is this the same as substituting x=ax = a directly into f(g(x))f(g(x))?
It can give the same answer when the composition is continuous at aa, but the theorem is more general. It applies even when fgf \circ g has a removable discontinuity at aa, because the limit can exist even if the function value does not.
Which functions are continuous enough to use this rule?
Polynomial, power, square root, cube root, and all trigonometric functions are continuous where they are defined. Rational functions are continuous except where the denominator is zero. When in doubt, check whether the function has any breaks, jumps, or asymptotes at the point in question.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18