How to Graph Cubic Functions
Learn how to graph cubic functions step by step. Covers the S-curve, inflection points, end behavior, local extrema, and transformations of y = x³.
What Is a Cubic Function?
A cubic function is a polynomial of degree three, meaning the highest power of x is x³. The general form is y = ax³ + bx² + cx + d, where a is nonzero. Unlike quadratic functions, whose graphs are U-shaped parabolas, cubic functions produce an S-shaped curve that can increase and decrease more than once. Every cubic polynomial has exactly three roots when counted with multiplicity in the complex number system, though some or all of those roots may be complex. The parent cubic function y = x³ is the simplest case and forms the basis for understanding all cubic graphs.
The Parent Function y = x³
The graph of y = x³ passes through the origin with an S-like shape. It rises steeply to the upper right and falls steeply to the lower left. The function is odd: f(-x) = -f(x) for all x, giving it 180-degree rotational symmetry about the origin. There is an inflection point at the origin, where the curve changes from concave down (to the left) to concave up (to the right). The domain and range are both all real numbers. The derivative is 3x², which is always non-negative, confirming the function is non-decreasing everywhere with a momentary flat spot at x = 0.
End Behavior
End behavior describes what happens to y as x grows very large in the positive or negative direction. For a cubic y = ax³ + ..., the leading term ax³ dominates all other terms for large |x|. When a > 0, the function falls to negative infinity on the left and rises to positive infinity on the right. When a < 0, the opposite occurs: the function rises on the left and falls on the right. This is the exact opposite of the end behavior for even-degree polynomials like quadratics, where both ends go the same direction. Knowing end behavior immediately tells you how to draw the tails of any cubic graph.
Inflection Points and Local Extrema
An inflection point is where a function changes concavity, from concave up to concave down or vice versa. Every cubic function has exactly one real inflection point, found by setting the second derivative equal to zero. For y = ax³ + bx² + cx + d, the second derivative is 6ax + 2b, which is zero at x = -b/(3a). At this x-value, the curve transitions from one concavity to the other. A cubic may also have two local extrema (a local maximum and a local minimum) if the discriminant of the derivative (a quadratic) is positive. If the derivative has no real roots, the cubic is monotone and has no local extrema.
Finding x-Intercepts
A cubic can have one, two, or three real x-intercepts. Set y = 0 and solve the resulting cubic equation. If the cubic factors easily, factor it directly. For example, y = x³ - x = x(x-1)(x+1) has roots at x = 0, 1, and -1. If it does not factor obviously, use the rational root theorem to test candidates or apply numerical methods. A cubic with a repeated root, such as y = (x-2)²(x+1), touches the x-axis without crossing at x = 2 and crosses normally at x = -1. The number of x-intercepts together with end behavior sketches the overall shape.
Transformations of y = x³
Cubic functions can be written in the form y = a(x - h)³ + k to make transformations explicit. The point (h, k) is the inflection point of the translated cubic. Positive h shifts the curve right, negative h shifts it left. Positive k shifts it up, negative k shifts it down. The coefficient a controls vertical scaling and reflection: a > 0 gives an S-curve that rises right, a < 0 gives an S-curve that falls right, and larger |a| makes the curve steeper. For example, y = -2(x - 1)³ + 3 has its inflection point at (1, 3) and opens downward-to-right because a is negative.
Step-by-Step Graphing Process
To graph a general cubic, follow these steps. Identify the leading coefficient a to determine end behavior. Find the inflection point using x = -b/(3a) and evaluate y at that x. Compute the first derivative and set it to zero to find any local extrema; evaluate y at those x-values. Find x-intercepts by solving y = 0 (factor, use rational root theorem, or use a calculator). Plot all key points: x-intercepts, local extrema, and inflection point. Sketch smooth curves connecting these points, ensuring the correct end behavior on each side. The curve must pass through all plotted points without any sharp corners.
Try These Calculators
Put what you learned into practice with these free calculators.
Try It Yourself
Put what you learned into practice with our free graphing calculator.
Related Guides
How to Graph Quadratic Equations
Learn how to graph quadratic equations step by step. Covers standard form, vertex form, finding the vertex, axis of symmetry, x-intercepts, and plotting parabolas.
How to Graph Absolute Value Functions
Learn how to graph absolute value functions step by step. Covers the V-shape, vertex, reflections, stretches, and transformations of y = |x| with examples.
Graphing Calculator Tutorial - Complete Guide
Learn how to use the free online graphing calculator at ThePrimeCalculator. Enter equations, pan, zoom, add multiple graphs, pin points, and use 3D mode.