A centered cubic of the form a times (x − h) cubed plus b times (x − h) plus k can have an inflection point and either two local turns or none. This graphing calculator plots the curve for your coefficients and gives the inflection point and any real turning points. Enter a horizontal center, vertical center, and display span so you can inspect how the shape changes as the coefficients change.
Recognize the centered form
The horizontal coordinate h moves the central inflection left or right. The vertical coordinate k gives the height at that point. When x equals h, both terms containing x minus h are zero. The output is k, so the graph passes through (h, k). The leading coefficient a needs to be nonzero for the input to describe a cubic. Its sign determines which way the ends of the graph point, while b influences the slope near the center and whether the curve reverses direction there.
This form can represent a real cubic after moving the center and incorporating a change in constants, although the calculator expects the centered coefficients directly. If you already have expanded coefficients, rewriting them around the x coordinate of the inflection makes it easier to see the relationship among the centered terms. For a polynomial given in centered form, enter h and k as written rather than expanding powers and accidentally moving the origin twice.
Worked graph with a positive cubic term
Enter a equal to 1, b equal to negative 12, h equal to 1, and k equal to 3. The inflection point is (1, 3). The derivative is 3 times the square of x minus 1, minus 12. Setting that derivative to zero gives the square of x minus 1 equal to four. The two solutions have x coordinates negative one and three. Plug them into the original cubic, where the centered offsets are negative two and positive two.
At x equal to negative one the cubic part contributes negative eight, the linear part adds 24, and k adds three. The resulting y coordinate is 19. At x equal to three, the cubic term is eight and the linear term is negative 24, giving negative 13 after adding k. The plot shows a local maximum at (−1, 19), then crosses the central inflection before reaching a local minimum at (3, −13). With a display span of five, the visible x range extends from −4 to 6.
Use derivatives to distinguish an inflection from a turn
The derivative of the centered cubic is 3a times the square of x minus h, plus b. A local turn occurs when that derivative crosses zero. Dividing the zero condition by 3a gives a squared offset of negative b divided by 3a. When that number is positive, there are two offsets, one negative and one positive. Those give the turning points the tool evaluates in the original cubic.
The second derivative is 6a times x minus h. It switches sign at x equal to h for every nonzero a in this form, which explains why curvature changes there. If b is zero, the first derivative is also zero at the inflection. The curve flattens as it passes through the center but keeps increasing on both sides if a is positive, or decreasing on both sides if a is negative. This is a stationary inflection, so a horizontal tangent there does not produce a local maximum or minimum.
Make the visible domain match the features you want to inspect
The horizontal span controls the distance on each side of h. A small span reveals the neighborhood of the inflection. A larger span can show both local turns or more of the end behavior. If two turning coordinates are listed but absent from the plot, increase the span so the visible range includes their x coordinates. The calculator sets its vertical view using the values within the chosen horizontal domain, including visible turns, so the same curve can look steeper or flatter when the display range changes.
For a simple exercise, start with positive a and slowly move b through negative values, zero, and positive values. The two turns move closer to h as the negative linear coefficient approaches zero, merge into the stationary inflection at zero, and are absent once both coefficients have the same sign. You can check the verbal interpretation by evaluating the derivative on either side of a displayed turning point. A negative slope turning positive means the curve has a local minimum. A positive slope turning negative gives a local maximum.
Frequently asked questions
Can I set the cubic coefficient to zero?
The form requires a nonzero leading coefficient. With zero in that field the expression is at most linear and no longer has a cubic inflection.
Why do the turning points have opposite offsets from h?
Both solve the same squared-offset equation. Equal squares come from offsets of equal magnitude and opposite sign when that magnitude is positive.
Does a horizontal tangent always mean the graph turns?
A stationary inflection can have a horizontal tangent without a reversal in direction. Set the linear coefficient to zero to see that case.
Will zooming affect the calculated coordinates?
The span only controls the view. Changing it leaves the mathematical coordinates unchanged for the same coefficients.