Function Variation Table & Sign Chart Calculator with Steps
Choose a function type and enter the coefficients (integers, decimals or fractions p/q). The tool finds the domain, computes y', solves y' = 0, builds the variation table and states where the function increases, decreases and has local extrema.
The calculator above builds a complete variation table (also called a sign chart or monotonicity table) for five common function types: cubic, rational linear, rational quadratic over linear, biquadratic and quadratic. Each solution follows five steps: find the domain, differentiate, solve y’ = 0 and locate discontinuities, build the table, then state the intervals of increase and decrease and the local extrema. Every root is kept exact, including fractions and square roots.
What is a variation table?
A variation table summarizes how a function y = f(x) behaves across its domain. It has three rows:
- The x row: key x-values in increasing order: −∞, the critical points where y’ = 0, the points where the function is undefined, and +∞.
- The y’ row (sign chart): the sign of the derivative on each interval (+ or −), a 0 at each critical point, and a double bar || where the function is undefined.
- The y row: an upward arrow ↗ where the function increases, a downward arrow ↘ where it decreases, with the local maximum and minimum values and the limits written at the ends of the arrows.
The First Derivative Test
Let f be differentiable on an interval I. The derivative tells us the monotonicity of the function:
The First Derivative Test classifies a critical point c where f'(c) = 0:
- If f’ changes from + to − at c, then f has a local maximum at c.
- If f’ changes from − to + at c, then f has a local minimum at c.
- If f’ does not change sign, c is not a local extremum. For example, y = x³ has y’ = 3x² ≥ 0, so it is increasing on ℝ with no extremum at x = 0.
How to build a sign chart
Between two consecutive key x-values the derivative keeps one sign, so a single test point per interval is enough. Two shortcuts speed up the work:
- Linear factor ax + b: to the right of its root the factor has the sign of a; to the left it has the opposite sign.
- Quadratic factor ax² + bx + c: if Δ > 0, it has the sign opposite to a between the roots and the sign of a outside them. If Δ < 0, it always has the sign of a. If Δ = 0, it has the sign of a except at the double root.
For rational functions the denominator of y’ is a square, which is positive on the domain, so the sign of y’ is the sign of its numerator.
Monotonicity and extrema in five steps
- Find the domain D. Polynomials are defined on ℝ; rational functions exclude the zeros of the denominator.
- Compute y’. Use the power rule for polynomials and the quotient rule for rational functions.
- Solve y’ = 0 and find discontinuities. Keep only roots in D. Compute the limits at infinity and the one-sided limits at each excluded point.
- Build the table. Place the key x-values in order, fill in the signs of y’, draw the arrows and write the values in the y row.
- State the conclusion. Read off the intervals of increase and decrease and the local maxima and minima.
Notation tip: for a rational function, write “increasing on (−∞, 1) and on (1, +∞)”, not on the union (−∞, 1) ∪ (1, +∞).
4 worked examples
Enter the same coefficients in the calculator to check every step.
Example 1. Cubic function y = x³ − 3x² + 2
The domain is ℝ. The derivative is y’ = 3x² − 6x = 3x(x − 2), so y’ = 0 at x = 0 or x = 2. Then y(0) = 2 and y(2) = −2. The leading coefficient is positive, so y → −∞ as x → −∞ and y → +∞ as x → +∞.
| x | −∞ | 0 | 2 | +∞ | |||
|---|---|---|---|---|---|---|---|
| y' | + | 0 | − | 0 | + | ||
| y | −∞ | ↗ | 2 | ↘ | −2 | ↗ | +∞ |
Conclusion: the function is increasing on (−∞, 0) and (2, +∞) and decreasing on (0, 2). It has a local maximum at x = 0 with y_max = 2 and a local minimum at x = 2 with y_min = −2.
Example 2. Biquadratic function y = −x⁴ + 2x² + 1
The domain is ℝ. The derivative is y’ = −4x³ + 4x = −4x(x² − 1), so y’ = 0 at x = −1, x = 0 and x = 1. Then y(±1) = 2 and y(0) = 1. The leading coefficient is negative, so both ends go down to −∞.
| x | −∞ | −1 | 0 | 1 | +∞ | ||||
|---|---|---|---|---|---|---|---|---|---|
| y' | + | 0 | − | 0 | + | 0 | − | ||
| y | −∞ | ↗ | 2 | ↘ | 1 | ↗ | 2 | ↘ | −∞ |
Conclusion: the function is increasing on (−∞, −1) and (0, 1) and decreasing on (−1, 0) and (1, +∞). It has local maxima at x = ±1 with y_max = 2 and a local minimum at x = 0 with y_min = 1.
Example 3. Rational linear function y = (2x + 1)/(x − 1)
The domain is ℝ \ {1}. The derivative is y’ = −3/(x − 1)² < 0 for every x ≠ 1, so y’ = 0 has no solution. Limits: lim y = 2 as x → ±∞, lim y = −∞ as x → 1⁻, lim y = +∞ as x → 1⁺.
| x | −∞ | 1 | +∞ | ||
|---|---|---|---|---|---|
| y' | − | || | − | ||
| y | 2 | ↘ | −∞ || +∞ | ↘ | 2 |
Conclusion: the function is decreasing on (−∞, 1) and on (1, +∞) and has no local extrema. The graph has the vertical asymptote x = 1 and the horizontal asymptote y = 2.
Example 4. Rational function y = (x² − x + 1)/(x − 1)
The domain is ℝ \ {1}. By the quotient rule:
y’ = 0 at x = 0 or x = 2, both in the domain. Then y(0) = −1 and y(2) = 3. The numerator equals 1 > 0 at x = 1, so y → −∞ as x → 1⁻ and y → +∞ as x → 1⁺. At the ends, y → −∞ as x → −∞ and y → +∞ as x → +∞.
| x | −∞ | 0 | 1 | 2 | +∞ | ||||
|---|---|---|---|---|---|---|---|---|---|
| y' | + | 0 | − | || | − | 0 | + | ||
| y | −∞ | ↗ | −1 | ↘ | −∞ || +∞ | ↘ | 3 | ↗ | +∞ |
Conclusion: the function is increasing on (−∞, 0) and (2, +∞) and decreasing on (0, 1) and (1, 2). It has a local maximum at x = 0 with y_max = −1 and a local minimum at x = 2 with y_min = 3. The local maximum value is smaller than the local minimum value. That is fine: extrema are local, and the two points lie on different branches of the graph. The oblique asymptote is y = x.
Common mistakes
- Leaving out an excluded x-value. For rational functions, the zero of the denominator must appear in the table, marked with ||.
- Keeping a critical point outside the domain. A point not in D can never be an extremum.
- Drawing the arrow the wrong way. A positive derivative means an upward arrow, even if the y-values are negative.
- Calling a point an extremum when y’ does not change sign. A double root of y’, as for y = x³ at x = 0, is not an extremum.
- Joining the intervals on both sides of a vertical asymptote. A rational linear function is monotonic on each interval separately, not on their union.
🎯 Practice quiz: variation tables and local extrema
Twelve multiple-choice questions with four options each, built on the theory and the worked examples above: reading the local maximum and the intervals of decrease from a variation table, finding where a cubic increases, counting the extrema of a biquadratic function, a double root of the derivative, interval notation for a rational linear function, counting extrema from a factored derivative, the local minimum of a rational function, the local maximum value of a cubic, two parameter questions and a motion word problem. Pick an answer: the correct option turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps box explaining why the wrong options are tempting. You can enter the coefficients from any question into the calculator above to check the full variation table.
1️⃣ Where a cubic function increases Question 1. On which interval is the function y = x³ − 3x + 1 increasing:
Correct answer: C. (1, +∞)
The domain is ℝ. The derivative is:
The quadratic 3x² − 3 has a positive leading coefficient, so it is negative between its roots and positive outside them: y’ > 0 on (−∞, −1) and (1, +∞), y’ < 0 on (−1, 1). So the function is increasing on (1, +∞). Choose Cubic function and enter a = 1, b = 0, c = −3, d = 1 in the calculator above to see the variation table.
⚠️ Traps
- A: (−1, 1) lies between the roots, where y’ < 0, so the function decreases there. This flips the sign rule for a quadratic.
- B: (−∞, 1) contains the whole interval (−1, 1) where the graph falls, so the function is not increasing on all of it.
- D: (−2, 0) contains the local maximum x = −1: the function rises on (−2, −1) but falls on (−1, 0).
2️⃣ Reading the local maximum from a table Question 2. The function y = f(x) has the variation table below. The function has a local maximum at:
| x | −∞ | −1 | 3 | +∞ | |||
|---|---|---|---|---|---|---|---|
| y' | + | 0 | − | 0 | + | ||
| y | −∞ | ↗ | 4 | ↘ | −2 | ↗ | +∞ |
Correct answer: B. x = −1
Passing through x = −1, y’ changes from + to − (the arrow goes up, then down), so the function has a local maximum at x = −1 with the local maximum value y_max = f(−1) = 4. Likewise, y’ changes from − to + at x = 3, so the function has a local minimum at x = 3 with y_min = −2.
The local maximum point of the function is x = −1; the corresponding point on the graph is (−1, 4).
⚠️ Traps
- A: 4 is the local maximum value (read from the y row), not the point where it occurs (read from the x row).
- C: at x = 3, y’ changes from − to +, so it is a local minimum.
- D: −2 is the local minimum value: wrong row and wrong kind of extremum.
3️⃣ Reading where the function decreases Question 3. The function y = f(x) has the variation table below. On which interval is the function decreasing:
| x | −∞ | −1 | 0 | 1 | +∞ | ||||
|---|---|---|---|---|---|---|---|---|---|
| y' | − | 0 | + | 0 | − | 0 | + | ||
| y | +∞ | ↘ | −3 | ↗ | −2 | ↘ | −3 | ↗ | +∞ |
Correct answer: B. (0, 1)
Intervals of monotonicity are read in the x row, using the sign of y’ just below: y’ < 0 on (−∞, −1) and (0, 1), so the function decreases on these two intervals. Of the four options only (0, 1) fits.
This is the variation table of y = x⁴ − 2x² − 2; choose Biquadratic function and enter a = 1, b = −2, c = −2 in the calculator above to compare.
⚠️ Traps
- A: on (−1, 0), y’ > 0 and the arrow points up, so the function increases.
- C: (−3, −2) comes from the y row, which holds function values, not an interval of x.
- D: (−1, 1) contains (−1, 0), where the function increases, so it is not decreasing on the whole interval.
4️⃣ Number of extrema of a biquadratic function Question 4. How many local extrema does the function y = x⁴ + 2x² − 3 have:
Correct answer: B. 1
Since x² + 1 > 0 for every x, y’ has the sign of 4x: negative for x < 0, positive for x > 0. The derivative changes sign exactly once, so the function has 1 local extremum, a local minimum at x = 0 with y_min = −3. Quick rule: a biquadratic function has 3 extrema when a and b have opposite signs (ab < 0) and 1 extremum when ab ≥ 0; here a = 1 and b = 2 have the same sign.
⚠️ Traps
- A: assumes every biquadratic function has 3 extrema, like y = x⁴ − 2x² + 1. Here x² + 1 = 0 has no real solution, so y’ has only one root.
- C: counts the roots of y = 0 (x⁴ + 2x² − 3 = (x² − 1)(x² + 3) = 0 ⇔ x = ±1) instead of the roots of y’ = 0.
- D: sees that a and b are positive and assumes the function always increases; in fact y’ < 0 for x < 0.
5️⃣ A double root of the derivative Question 5. How many local extrema does the function y = x³ − 3x² + 3x − 5 have:
Correct answer: C. 0
y’ = 0 only at x = 1 (a double root) and does not change sign there, so the function is increasing on ℝ and has no local extremum. This is common mistake 4 in the list above. Click Example 4 of the Cubic function type (y = x³ + 3x² + 3x + 1) in the calculator to see a similar case.
⚠️ Traps
- A: sees y’ = 0 at x = 1 and calls it an extremum without checking for a sign change.
- B: assumes every cubic has two extrema. That holds only when y’ has two distinct roots (Δ’ > 0); here Δ’ = 0.
- D: confuses the number of extrema with the degree of the function.
6️⃣ Rational linear functions and interval notation Question 6. Consider the function y = (x + 2)/(x − 1). Which statement is true:
Correct answer: C. The function is decreasing on (−∞, 1) and on (1, +∞)
So the function is decreasing on each interval (−∞, 1) and (1, +∞). Do not write “decreasing on ℝ \ {1}”: take x = 0 and x = 2, then 0 < 2 but y(0) = −2 < y(2) = 4. The graph of the rational linear function above shows the jump across the vertical asymptote. To plot this exact function, use the function analysis and graphing calculator.
⚠️ Traps
- A: joins the two intervals into ℝ \ {1} (common mistake 5). The function is monotonic on each interval separately.
- B: gets the sign of ad − bc wrong, for example using bc − ad = 3 instead of ad − bc = −3.
- D: x = 1 is not in the domain, so it cannot be an extremum; besides, y’ is never 0.
7️⃣ Counting extrema from the derivative Question 7. A function f(x) has the derivative f'(x) = x(x − 1)²(x + 2) for all x ∈ ℝ. How many local extrema does f have:
Correct answer: B. 2
f'(x) = 0 ⇔ x = −2, x = 0 or x = 1. The factor (x − 1)² is never negative, so f'(x) has the sign of x(x + 2): positive on (−∞, −2), negative on (−2, 0), positive on (0, 1) and still positive on (1, +∞).
f'(x) changes sign at x = −2 (from + to −, a local maximum) and at x = 0 (from − to +, a local minimum), but not at x = 1. So f has 2 local extrema. Tip: only roots of odd multiplicity of f'(x) are extrema.
⚠️ Traps
- A: also counts x = 1, but it is a double root, so f'(x) does not change sign there.
- C: adds the multiplicities 1 + 2 + 1 = 4, confusing the number of roots counted with multiplicity with the number of extrema.
- D: looks only at the leading factor x and forgets the factor (x + 2).
8️⃣ Local minimum of a rational function Question 8. The function y = (x² + 3)/(x + 1) has a local minimum at:
Correct answer: C. x = 1
The domain is ℝ \ {−1}. By the quotient rule:
The numerator is a quadratic with a positive leading coefficient: positive outside its roots, negative between them. At x = −3, y’ changes from + to −: a local maximum, y_max = −6. At x = 1, y’ changes from − to +: a local minimum, y_min = y(1) = 2. Click Example 2 of the Rational quadratic/linear type in the calculator above to see the full table; to check just the derivative step, use the derivative calculator.
⚠️ Traps
- A: x = −3 is a local maximum because y’ changes from + to −. For rational functions the local maximum value −6 can be smaller than the local minimum value 2, so do not compare values to guess the type.
- B: x = −1 makes the denominator 0 and is not in the domain; it is the vertical asymptote (the double bar ||).
- D: 2 is the local minimum value y_min, not the point where the minimum occurs.
9️⃣ Local maximum value of a cubic Question 9. The local maximum value of the function y = −x³ + 3x² + 1 is:
Correct answer: C. 5
The quadratic −3x² + 6x has a negative leading coefficient, so it is positive between its roots and negative outside them: y’ < 0 on (−∞, 0), y' > 0 on (0, 2), y’ < 0 on (2, +∞). So the function has a local minimum at x = 0 with y_min = 1 and a local maximum at x = 2 with:
A local maximum is not necessarily the absolute maximum: this function has no absolute maximum on ℝ because y → +∞ as x → −∞. To find the absolute maximum on a closed interval, use the absolute max and min calculator.
⚠️ Traps
- A: 1 = y(0) is the local minimum value. With a < 0, a cubic reaches its local minimum first and its local maximum second.
- B: 2 is where the maximum occurs, but the question asks for the maximum value.
- D: 0 is where the local minimum occurs.
🔟 Parameter m for a cubic increasing on ℝ Question 10. Find all values of the parameter m for which the function y = x³ − 3x² + mx + 1 is increasing on ℝ:
Correct answer: B. m ≥ 3
y’ = 3x² − 6x + m. The function is increasing on ℝ when y’ ≥ 0 for every x, with equality at only finitely many points. The quadratic has a positive leading coefficient, so the condition is:
For m = 3: y’ = 3(x − 1)² ≥ 0 and equals 0 only at x = 1, so the function is still increasing on ℝ, just like y = x³. The discriminant is worked out step by step in the quadratic formula calculator.
⚠️ Traps
- A: drops m = 3 by requiring y’ > 0 for every x; but y’ may be 0 at a single point.
- C: flips the inequality when solving 9 − 3m ≤ 0.
- D: m < 3 means Δ' > 0, which is the condition for two local extrema, the opposite of what is asked.
1️⃣1️⃣ Parameter m of a rational linear function Question 11. Find all values of the parameter m for which the function y = (x + m)/(x + 1) is decreasing on each interval of its domain:
Correct answer: B. m > 1
The denominator is positive, so y’ has the sign of 1 − m. The function decreases on each interval of its domain if and only if 1 − m < 0, that is m > 1. For a rational linear function the inequality must be strict, because when 1 − m = 0 the function reduces to a constant.
⚠️ Traps
- A: m < 1 gives 1 − m > 0, so the function increases on each interval.
- C: m = 1 gives y = (x + 1)/(x + 1) = 1 for every x ≠ −1, a constant function, which is not decreasing.
- D: uses the zero of the denominator, x = −1, as the threshold for m.
1️⃣2️⃣ Word problem: when does the velocity increase Question 12. An object moves according to s(t) = −t³ + 6t², where t (seconds) is the time since it started moving, 0 ≤ t ≤ 6, and s (meters) is the distance traveled. On which time interval is its velocity increasing:
Correct answer: B. (0, 2)
Velocity is the derivative of distance, so we study the monotonicity of v(t), not of s(t):
v'(t) > 0 ⇔ t < 2, so the velocity increases on (0, 2) and decreases on (2, 6). The maximum velocity is reached at t = 2 seconds, v(2) = 12 m/s. Since v(t) is quadratic, you can choose Quadratic function and enter a = −3, b = 12, c = 0 in the calculator above to see the variation table of v(t).
⚠️ Traps
- A: (0, 4) is where s'(t) = v(t) > 0, so the distance increases, not the velocity.
- C: (2, 6) is where v'(t) < 0, so the velocity decreases.
- D: on (4, 6), v(t) < 0 and s(t) decreases; this interval has nothing to do with the velocity increasing.
Frequently asked questions
What is a variation table in calculus?
A variation table is a three-row summary of a function. The x row lists the key x-values in increasing order, the y prime row shows the sign of the derivative on each interval, and the y row uses arrows to show where the function increases or decreases, together with local extreme values and limits.
How does the First Derivative Test find local extrema?
Find the critical points where the derivative equals 0. If the derivative changes from positive to negative at a critical point, the function has a local maximum there. If it changes from negative to positive, the function has a local minimum. If the sign does not change, there is no extremum.
What is the difference between a sign chart and a variation table?
A sign chart shows only the sign of the derivative on each interval. A variation table adds a third row with arrows, the extreme values and the limits, so it also shows how the function values move. The calculator builds both in one table.
What does the double bar mean in a variation table?
The double bar marks an x-value outside the domain, usually a zero of the denominator. The one-sided limits are written on each side of the bar. When they are infinite, the line through that x-value is a vertical asymptote.
Can a rational linear function have a local maximum or minimum?
No. For y = (ax + b)/(cx + d) with ad − bc not equal to 0, the derivative is (ad − bc)/(cx + d) squared. It never equals 0 and keeps the sign of ad − bc, so the function is monotonic on each interval of its domain.