acalculator

What is the end behavior of f(x)?

Type a polynomial, or a polynomial over a polynomial. The page says where f(x) goes as x grows without bound in each direction, and gives the term c xᵏ that f behaves like for large |x|.

Your numbers

Use x, numbers, + - * / and whole-number powers ^.
As x → ∞, f(x) →
-∞

As x → ∞, -3x^2 (x - 1)(x + 4) → -∞; as x → −∞, it → -∞.

As x → −∞, f(x) →
-∞
For large |x|, f(x) behaves like
-3x^4

As x → ∞, f(x) →: -∞. As x → ∞, -3x^2 (x - 1)(x + 4) → -∞; as x → −∞, it → -∞.

How to calculate

Finds where a polynomial or rational function goes as x → ∞ and x → −∞, and the term it behaves like, checked numerically.

Example with the default inputs (Function f(x) -3x^2 (x - 1)(x + 4)): As x → ∞, -3x^2 (x - 1)(x + 4) → -∞; as x → −∞, it → -∞.

Method: For a polynomial or rational function, f(x)/x^k → c ≠ 0 as x → ±∞ for one whole number k (the leading term c x^k). A computer algebra system finds c; the ends follow from the signs of c and of x^k.

  • f is a polynomial or a quotient of polynomials in x.
  • An answer that fails its check is not shown.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Function f(x) -3x^2 (x - 1)(x + 4) gives As x → ∞, f(x) → -∞, As x → −∞, f(x) → -∞, For large |x|, f(x) behaves like -3x^4.Source: OpenStax, College Algebra 2e, section 5.2 Power Functions and Polynomial Functions, Example 7. https://openstax.org/books/college-algebra-2e/pages/5-2-power-functions-and-polynomial-functions
  2. Function f(x) -x^9 gives As x → ∞, f(x) → -∞, As x → −∞, f(x) → ∞, For large |x|, f(x) behaves like -x^9.
  3. Function f(x) (x^2 + 4x)/(x^3 - 8) gives As x → ∞, f(x) → 0, As x → −∞, f(x) → 0, For large |x|, f(x) behaves like 1/x.

How it works

For a polynomial or a rational function f, one term decides the end behavior: f(x) ≈ c xᵏ for large |x|, where c ≠ 0 and k is a whole number (negative for a function that shrinks to 0).

  1. f is written as one fraction P/Q (terms over a common bottom; x^−2 is 1/x^2), and a computer algebra system (nerdamer, open source) multiplies out the top P and the bottom Q (each checked numerically at 20 points). Numbers typed with a power of ten go to the algebra as exact powers of ten (1e-20 as 1/10^20), so a tiny coefficient is not lost. The algebra runs in the background after you start typing.
  2. The leading term of each is its term with the highest power of x. Its coefficient is the term at x = 1 (π x^2 gives π).
  3. k = (degree of P) − (degree of Q), and c = (leading coefficient of P)/(leading coefficient of Q), simplified exactly by the algebra.
  4. Check: f(x)/(c xᵏ) is evaluated at x = 10⁴, 10⁵, 10⁶ and at −10⁴, −10⁵, −10⁶. On each side, its distance from 1 at 10⁶ must be at most 10⁻² and no larger than at 10⁴ (plus 10⁻¹²). If not, the leading term has not taken over by 10⁶ and the page says "No verified answer": x² + 10⁻²⁰x³ behaves like 10⁻²⁰x³ only past x = 10²⁰, so the page gives no answer for it.

Then, as x → ∞:

  • k > 0: f → ∞ if c > 0, −∞ if c < 0;
  • k = 0: f → c (a horizontal asymptote y = c);
  • k < 0: f → 0.

As x → −∞, xᵏ has the sign of (−1)ᵏ: for k > 0, f → ∞ if c(−1)ᵏ > 0 and −∞ if it is negative; for k = 0, f → c; for k < 0, f → 0. If the top multiplies out to 0, f is 0 and every answer is 0.

The page shows As x → ∞, f(x) → and As x → −∞, f(x) → (∞, -∞ written with a hyphen, 0, or the exact number c as the algebra writes it) and For large |x|, f(x) behaves like c xᵏ, written exactly.

What you can type

  • A number has at most 15 digits in a row. A computer number keeps only about 16 digits, so a longer one (9007199254740993) would stand for a nearby number (9007199254740992), and the page asks for fewer digits instead. Write very large or very small numbers with a power of ten (1e-20).
  • A polynomial or a polynomial divided by a polynomial in x: numbers (with decimals), x, + − * /, brackets, and ^ with a whole-number power (x^-2 is allowed). pi and e may appear in coefficients. A number or bracket next to x multiplies: 3x^2 (x − 1).
  • Any function (sqrt, ln, sin, …) or a power that is not a whole number gives a message: this page is for polynomials and rational functions.

What gets no answer

  • A check that fails: f(x)/(c xᵏ) still far from 1 at x = ±10⁶, as for (x + 10⁷)/x, whose second term is still large there, or x² + 10⁻²⁰x³, whose leading term is still small there.
  • A step that finds no formula or takes over 3 seconds.

Worked examples by hand

f(x) = −3x²(x − 1)(x + 4) (OpenStax College Algebra 2e, section 5.2, Example 7). Multiplying out, the leading term is −3x² · x · x = −3x^4: k = 4 is even and c = −3 is negative, so f → −∞ as x → ∞ and as x → −∞.

f(x) = −x⁹ (OpenStax College Algebra 2e, section 5.2, Example 3). The leading term is −x^9: k = 9 is odd and c = −1. As x → ∞, f → −∞; as x → −∞, (−1)⁹ · (−1) = 1 > 0, so f → ∞.

f(x) = (x² + 4x)/(x³ − 8) (OpenStax College Algebra 2e, section 5.6, Example 7(c)). The leading terms are x² and x³, so k = 2 − 3 = −1 and c = 1: f behaves like 1/x and f → 0 at both ends (the horizontal asymptote y = 0).

Other questions people ask

What is end behavior?

The end behavior of a function is what f(x) does as x grows without bound, to the right (x → ∞) and to the left (x → −∞): it may grow to ∞, fall to −∞, or settle at a number, which is then a horizontal asymptote.

How do I find the end behavior of a polynomial?

Only the leading term matters: for large |x| it outweighs all the others. For −3x²(x − 1)(x + 4) the leading term is −3x⁴. An even power with a negative coefficient falls to −∞ at both ends; an odd power such as −x⁹ goes to −∞ on the right and ∞ on the left.

What about a rational function?

Divide the leading terms of the top and the bottom. If the top has the higher degree, f behaves like a power of x and grows without bound. If the degrees are equal, f approaches the ratio of the leading coefficients. If the bottom has the higher degree, f approaches 0.

What does "behaves like" mean?

f(x)/(c xᵏ) → 1 as x → ±∞: the ratio of f to its leading term tends to 1. For (x² + 4x)/(x³ − 8) that term is 1/x, so the function shrinks like 1/x towards 0.

Why does the page not take sin(x) or eˣ?

Those are not polynomials, and their end behavior does not come from a leading power: eˣ grows faster than any power, and sin(x) keeps oscillating with no limit. The page handles polynomials and quotients of polynomials, where the leading term decides everything.

How is the answer checked?

The top and the bottom are expanded by a computer algebra system, which checks each expansion numerically. Then f(x)/(c xᵏ) is evaluated at x = ±10⁴, ±10⁵ and ±10⁶ and must approach 1, where c is the leading coefficient. If it does not, the page says "No verified answer".