Limit of a Rational Function

Find the limit of a rational function at a point by substituting the point directly, provided the denominator is nonzero.

limxaP(x)Q(x)=P(a)Q(a),Q(a)0\lim_{x \to a} \frac{P(x)}{Q(x)} = \frac{P(a)}{Q(a)}, \quad Q(a) \neq 0

Solve a problem with Limit of a Rational Function

Type the problem. The solver will use Limit of a Rational Function where Limit of a Rational 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 Rational Function takes
PP
QQ
xx
aa
Limit of a Rational Function
SymbolMeaning
PPThe numerator polynomial in the rational function P(x)Q(x)\frac{P(x)}{Q(x)}; its value at x=ax = a contributes to the limit's numerator.
QQThe denominator polynomial; its value Q(a)Q(a) must be nonzero, otherwise the formula does not apply.
xxThe input variable to the rational function; xx approaches the value aa.
aaThe point toward which xx is approaching; this is where you evaluate both PP and QQ when Q(a)0Q(a) \neq 0.

When to use it

When finding the limit of a fraction where both numerator and denominator are polynomials, and the denominator is not zero at the limit point.

Level

Usually taught in: Calculus I

Worked examples

1. Find the limit of a simple rational function with positive integers

Problem

Find limx2x2+3xx+1\lim_{x \to 2} \frac{x^2 + 3x}{x + 1}
  1. limx2x2+3xx+1\lim_{x \to 2} \frac{x^2 + 3x}{x + 1}

    We need to check if the denominator is nonzero when x=2x = 2.

  2. Q(2)=2+1=30Q(2) = 2 + 1 = 3 \neq 0

    Since the denominator is nonzero at x=2x = 2, we can substitute directly.

  3. (2)2+3(2)2+1\frac{(2)^2 + 3(2)}{2 + 1}

    Plug in x=2x = 2 into both numerator and denominator.

  4. 4+62+1\frac{4 + 6}{2 + 1}

    Calculate (2)2=4(2)^2 = 4 and 3(2)=63(2) = 6.

  5. 103\frac{10}{3}

    Finish the arithmetic: numerator is 4+6=104 + 6 = 10, denominator is 33.

Answer: 103\frac{10}{3}

This is a straightforward application of the Limit of a Rational Function rule. Since the denominator is nonzero when x=2x = 2, we can evaluate the limit by direct substitution without factoring or other techniques.

2. Find the limit with negative values and a negative denominator

Problem

Find limx12x23xx2\lim_{x \to -1} \frac{2x^2 - 3x}{x - 2}
  1. Q(1)=(1)2=30Q(-1) = (-1) - 2 = -3 \neq 0

    The denominator is nonzero at x=1x = -1, so direct substitution is valid.

  2. 2(1)23(1)(1)2\frac{2(-1)^2 - 3(-1)}{(-1) - 2}

    Replace every instance of xx with 1-1 in both parts.

  3. 2(1)+312\frac{2(1) + 3}{-1 - 2}

    Calculate (1)2=1(-1)^2 = 1 and 3(1)=3-3(-1) = 3.

  4. 2+33=53\frac{2 + 3}{-3} = \frac{5}{-3}

    Combine like terms in numerator.

  5. 53-\frac{5}{3}

    Simplify the fraction and handle the negative sign.

Answer: 53-\frac{5}{3}

Even with negative values and a negative denominator, the rule still applies directly because Q(1)0Q(-1) \neq 0. Be careful with signs when substituting negative values.

3. Find profit per box approaching a target sales volume

Problem

At a school bake sale, the profit from selling xx boxes of cookies is 15x302x+5\frac{15x - 30}{2x + 5} dollars per box, where x>0x > 0. What is the profit per box as the number of boxes sold approaches 10?
  1. limx1015x302x+5\lim_{x \to 10} \frac{15x - 30}{2x + 5}

    We want the profit per box as xx approaches 10 boxes sold.

  2. Q(10)=2(10)+5=250Q(10) = 2(10) + 5 = 25 \neq 0

    The denominator is positive and nonzero, so substitution works.

  3. 15(10)302(10)+5\frac{15(10) - 30}{2(10) + 5}

    Replace xx with 10 in the formula.

  4. 1503020+5=12025\frac{150 - 30}{20 + 5} = \frac{120}{25}

    Calculate the numerator and denominator separately.

  5. 245=4.8\frac{24}{5} = 4.8

    Reduce the fraction by dividing both by 5.

Answer: 245 dollars per box\frac{24}{5} \text{ dollars per box}

This real-world context shows that the profit per box approaches $4.80 as production increases. The rule lets us find this practical limit by simple substitution since the denominator never equals zero for positive xx.

Common mistakes

Where Limit of a Rational Function usually goes wrong
Answer came out wrong
Applying the rule when Q(a)=0Q(a) = 0.
Always check that Q(a)0Q(a) \neq 0 first. If Q(a)=0Q(a) = 0 but P(a)0P(a) \neq 0, the limit is infinite or does not exist. If both are zero, factor and cancel before substituting.
Writing limxaP(x)Q(x)=P(a)Q(a)\lim_{x \to a} \frac{P(x)}{Q(x)} = P(a) \cdot Q(a) or P(a)Q(a)+something\frac{P(a)}{Q(a)} + \text{something}.
Substitute both PP and QQ and evaluate: limxaP(x)Q(x)=P(a)Q(a)\lim_{x \to a} \frac{P(x)}{Q(x)} = \frac{P(a)}{Q(a)} is the complete answer when Q(a)0Q(a) \neq 0.
Forgetting to evaluate Q(a)Q(a) separately before substituting, leading to a false conclusion that the limit does not exist.
Always substitute x=ax = a into Q(x)Q(x) to get a concrete number, Q(a)Q(a). If that number is nonzero, the rule applies and the limit is P(a)Q(a)\frac{P(a)}{Q(a)}.
The mistakeWhy it is wrongThe fix
Applying the rule when Q(a)=0Q(a) = 0.When the denominator equals zero at x=ax = a, the formula P(a)Q(a)\frac{P(a)}{Q(a)} is undefined and does not give the limit; you must use factoring, rationalization, or L'Hôpital's Rule instead.Always check that Q(a)0Q(a) \neq 0 first. If Q(a)=0Q(a) = 0 but P(a)0P(a) \neq 0, the limit is infinite or does not exist. If both are zero, factor and cancel before substituting.
Writing limxaP(x)Q(x)=P(a)Q(a)\lim_{x \to a} \frac{P(x)}{Q(x)} = P(a) \cdot Q(a) or P(a)Q(a)+something\frac{P(a)}{Q(a)} + \text{something}.The rule is equality, not approximation; you do not add or multiply; the limit equals exactly P(a)Q(a)\frac{P(a)}{Q(a)}, not a modified version.Substitute both PP and QQ and evaluate: limxaP(x)Q(x)=P(a)Q(a)\lim_{x \to a} \frac{P(x)}{Q(x)} = \frac{P(a)}{Q(a)} is the complete answer when Q(a)0Q(a) \neq 0.
Forgetting to evaluate Q(a)Q(a) separately before substituting, leading to a false conclusion that the limit does not exist.Some students compute Q(x)Q(x) as xx approaches aa without actually substituting x=ax = a, missing that Q(a)Q(a) might be nonzero even if the problem looks complicated.Always substitute x=ax = a into Q(x)Q(x) to get a concrete number, Q(a)Q(a). If that number is nonzero, the rule applies and the limit is P(a)Q(a)\frac{P(a)}{Q(a)}.

Tips and when to use something else

  • If Q(a)=0Q(a) = 0 and P(a)0P(a) \neq 0, the limit is infinite or does not exist; look for Infinite Limits instead.
  • If Q(a)=0Q(a) = 0 and P(a)=0P(a) = 0, use Limits by Factoring or L'Hopital's Rule to rewrite the expression before applying limits.
  • This rule only works for rational functions (polynomials divided by polynomials). For other functions, use Limit Laws or check the function's definition.
  • In practice, always check that the denominator is nonzero at x=ax = a before substituting—this is the single most common mistake.

Frequently asked questions

What if the denominator is zero when I substitute?
If Q(a)=0Q(a) = 0, this rule does not apply. If the numerator is also zero, the limit may still exist (try factoring); if only the denominator is zero, the limit is typically infinite or does not exist. You will need a different method like Limits by Factoring or L'Hopital's Rule.
Do I always have to simplify the fraction after substituting?
The limit is P(a)Q(a)\frac{P(a)}{Q(a)} whether simplified or not. However, for clarity and to match standard form, you should simplify the final fraction if possible.
Can I use this rule for sin(x)/x\sin(x)/x as x0x \to 0?
No, because sin(x)\sin(x) is not a polynomial—it is a trigonometric function. When you substitute x=0x = 0, you get 0/00/0, which is indeterminate. You need the Special Trigonometric Limit instead.
Why do we need the condition Q(a)0Q(a) \neq 0?
Division by zero is undefined in mathematics. If Q(a)=0Q(a) = 0, the expression P(a)Q(a)\frac{P(a)}{Q(a)} has no meaning, so the rule cannot give you a limit. You must investigate further using other methods.

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