Cubic Equation Solver logo
Cubic Equation Solver

三次方程求解器

仅求解三次方程。找到实根和复根,遵循基于卡尔达诺的步骤,并探索三次图。

三次方程计算器

输入多项式系数

输入系数并求解以查看根、公式、图形状态和分步说明。

求解根、公式和导出测度

立方解决方案工作区

输入系数并求解以查看根、公式、图形状态和分步说明。

Cubic Diagram

实 x 轴截距没有真正的 x 截距
Y 轴截距(0, 0)
拐点(0, 0)
转折点无局部最大/最小

什么是三次方程?

三次方程是 ax3 + bx2 + cx + d = 0 形式的三次多项式,其系数 a 非零。立方体出现在几何、优化、控制系统、图形和许多工程模型中。

此页面遵循类似于实际求解器工作区的清晰路径:定义、公式、求解过程、计算器工具和验证检查。

Today, cubic equations appear everywhere: in engineering optimization, physics simulations, computer graphics (Bézier curves), economic modeling, and scientific research. Whether you are a student learning polynomial theory or an engineer solving a design constraint, understanding cubics is essential. This page provides the calculator, the theory, and the worked examples you need to master them.

三次曲线剖析

xy局部最大值局部最小值拐点x1x2x3Y-int(0,d)
x1, x2, x3
转点
最大和最小
变形
b/(3a)
Y 轴截距
f(0) = d

立方体的定义和结构

在标准表示法中,a、b、c 和 d 控制曲线的形状、转折点和截距行为。

The leading coefficient a is the most important because it controls whether the curve rises to the right (a positive) or falls to the right (a negative). It also affects the steepness of the curve. The coefficient b shifts the inflection point horizontally, c affects the slope near the origin, and d sets the y-intercept — the exact point where the curve crosses the vertical axis.

求解器中使用的标准符号

aax³

首项系数必须非零。控制末端行为和曲线方向。

bbx²

二次系数会移动曲率并水平移动拐点。

ccx

线性系数影响原点处的斜率和曲线的整体陡度。

dd (constant)

曲线与垂直轴相交的常数项(y 截距)。

您首先需要的核心三次公式

在求解任何三次方程之前,先确定已知系数,然后选择正确的符号路径。

减少公式

替换

x = t - b/(3a)

压缩形式

t^3 + pt + q = 0

判别式

增量 = (q/2)^2 + (p/3)^3

几何和图形公式

Y 轴截距

f(0) = d

变形X

x = -b/(3a)

转折点

求解 f'(x) = 3ax^2 + 2bx + c = 0

如何解三次方程(清晰过程)

Every cubic equation can be solved by following a systematic five-step process. This method works for all cubics regardless of their coefficients, whether the roots are real or complex, and whether they are repeated or distinct. The discriminant at step three determines which mathematical branch to use for the final computation.

01

以标准形式写出方程并验证 a != 0。

02

标准化并简化为凹陷立方形式。

03

评估判别式以选择数字分支。

04

计算根并变换回 x 空间。

05

通过替换和图形检查来验证根。

判别决策树

Delta = (q/2)^2 + (p/3)^3德尔塔 > 01 实根+ 2 个复合缀合物德尔塔 = 0重复实根三根或双根德尔塔 < 03个不同的实根三角法-> 卡尔达诺分支-> 重复根路径-> 余弦法

该求解器如何呈现逐步结果

求解器的结构可显示公式、替换逻辑、计算根和解释注释,因此可以快速审核每个输出。

*

公式:用于当前分支的精确关系。

*

替换:将值插入到符号方程中。

*

答案:带有实数/复数类型标签的根集。

*

解释:判别式和曲线形状的简短解释。

按目标选择正确的计算器

用于根解

  • >使用主三次求解器来获得完整的根集。
  • >验证符号步骤时使用公式页面。
  • >使用考试式练习案例的示例。

用于图形分析

  • >使用绘图页进行转折点和拐点检查。
  • >使用类型页面来映射方程形状类别。

实际用例

通过透明的解决方案路径进行课堂和考试准备。

多项式根定义约束的工程原型。

数据曲线拟合和模拟检查点。

需要可靠的根分类的控制和优化任务。

最终确定之前的准确性检查表

确认 a 不为零且输入为数字。

避免在中间步骤中过早舍入。

检查每个计算根的残差 f(x) 值。

使用图形状态来验证拦截和转弯行为。

当精度至关重要时,通过示例进行交叉检查。

三次方程求解器的工作原理

从输入到校对输出只需三个干净的步骤。

1. 输入已知值

提供所有四个系数并保持数字格式干净。

2. 立即解决

求解器实时应用三次缩减和判别分支。

3. 验证几何形状

使用图形标签、状态和残差检查来验证解决方案。

参考值

参考值

比较常见的立方族和典型的根结果。

方程

x3 - 6x2 + 11x - 6 = 0

根签名

1.000、2.000、3.000

方程

x3 - 3x2 + 3x - 1 = 0

根签名

1.000(三倍)

方程

x3 + x + 1 = 0

根签名

-0.682 + 复数对

方程

x3 - 4x = 0

根签名

-2.000, 0.000, 2.000

求解管道

端到端三次求解管道

每个三次方程都经过相同的五级管道,从原始系数到验证根。

输入a、b、c、d1标准化/通过2减少压缩3求解Delta分支4验证f(x) ~ 05输入4系数将所有项除以x = t - b/(3a)替换卡尔达诺或三角方法替换检查

为什么使用此三次方程求解器?

该工具专为三次多项式而构建,提供通用计算器无法比拟的精度、透明度和速度。

仅关注三次

不受其他多项式次数的干扰。每个功能都针对三次方程进行了调整。

逐步透明

查看从归一化到根提取的完整推导过程,而不仅仅是最终答案。

实时图形可视化

交互式 SVG 图形在您键入时更新,实时显示根、转折点和拐点。

多语言支持

提供 19 种语言版本,以便世界各地的学生和专业人士可以用自己的语言进行学习本地语言。

即时计算

客户端 JavaScript 引擎意味着零服务器往返。您按“求解”后,结果就会出现。

内置验证

残差检查确认每个根满足 1e-10 公差范围内的方程。

Types of Cubic Equations

While every cubic equation shares the fundamental property of being a third-degree polynomial, they can be categorized into different types based on their coefficients and root properties. Understanding these types helps you choose the fastest solving method.

Standard Cubic

ax³ + bx² + cx + d = 0

The general form where 'a' is non-zero. All other types are special cases of this standard form.

Monic Cubic

x³ + bx² + cx + d = 0

A cubic where the leading coefficient a=1. If a≠1, you can create a monic cubic by dividing the entire equation by 'a'.

Depressed Cubic

t³ + pt + q = 0

A cubic with no x² term (b=0). This form is crucial because Cardano's formula requires the equation to be in depressed form first.

Factorable Cubic

(x - r)(ax² + bx + c) = 0

A cubic that can be easily factored using grouping or synthetic division. Once factored, the remaining quadratic can be solved instantly.

How to Use This Calculator

We designed this solver to be intuitive. Follow these steps to get precise roots and step-by-step breakdowns for any cubic equation.

  1. 1
    Identify your coefficients. Format your equation as ax³ + bx² + cx + d = 0. Identify the numbers for a, b, c, and d. For example, in 2x³ - x + 5 = 0, a=2, b=0, c=-1, and d=5.
  2. 2
    Enter the values. Type the coefficients into the left panel. Use the minus sign for negative numbers and a decimal point for fractions. Remember, 'a' cannot be zero.
  3. 3
    Review the Roots. Click 'Solve Cubic'. The right panel instantly displays all three roots, labeling them as Real, Complex Conjugates, or Repeated Roots.
  4. 4
    Check the Graph. Scroll down to the interactive graph. It visually confirms the real roots (where the line crosses the x-axis) and shows turning points and the y-intercept.
  5. 5
    Open the Step-by-Step Details. Expand the details section to see the depressed cubic transformation, the discriminant calculation, and the mathematical reasoning behind the final answer.

Mathematics Behind Cubic Equations

The behavior of cubic equations is governed by several elegant mathematical theorems. Understanding these principles helps explain why cubics always have three roots and why complex roots always appear in pairs.

The Fundamental Theorem of Algebra

This foundational theorem states that every polynomial of degree 'n' has exactly 'n' roots in the complex number system, provided you count repeated roots. Since a cubic is degree 3, it always has exactly three roots.

Complex Conjugate Root Theorem

If a polynomial has real coefficients (which is true for all equations entered in this calculator), any complex roots must come in conjugate pairs. If (u + vi) is a root, then (u - vi) is also a root. Because cubics have three roots and complex roots require a pair, every cubic must have at least one real root.

Vieta's Formulas

Vieta's formulas describe the direct relationship between the polynomial's coefficients and its roots (r₁, r₂, r₃). For the equation ax³ + bx² + cx + d = 0:

  • Sum of roots: r₁ + r₂ + r₃ = -b/a
  • Sum of pairwise products: r₁r₂ + r₁r₃ + r₂r₃ = c/a
  • Product of roots: r₁r₂r₃ = -d/a

Cardano's Formula &amp; The Depressed Cubic

The quadratic formula solves any degree-2 equation. Cardano's formula is its degree-3 equivalent. Published by Girolamo Cardano in 1545 (based on work by Scipione del Ferro and Niccolò Tartaglia), it was the first general algebraic solution for cubic equations.

Step 1: The Tschirnhaus Transformation

Cardano's formula cannot be applied directly to ax³ + bx² + cx + d = 0. We must first eliminate the x² term. We do this by substituting x = t - b/(3a). This transforms the general cubic into a Depressed Cubic: t³ + pt + q = 0.

Step 2: The Discriminant (Δ)

Using the 'p' and 'q' from the depressed cubic, we calculate the discriminant: Δ = (q/2)² + (p/3)³. The sign of Δ dictates the rest of the algorithm:

  • Δ > 0: One real root, two complex roots. Cardano's formula is applied directly using cube roots.
  • Δ = 0: Real roots, with at least one repeated root. Solved via simplified algebraic limits.
  • Δ < 0 (Casus Irreducibilis): Three distinct real roots. Paradoxically, Cardano's formula requires computing the cube root of complex numbers to find these real answers. We bypass this using the Trigonometric Method.

立方的例子

The best way to understand cubic equations is to see them solved. Here are common scenarios you will encounter, spanning different root types and coefficient structures.

1. Simple Factorable Cubic

x³ - 6x² + 11x - 6 = 0

Step 1: Notice that x=1 makes the equation zero (1 - 6 + 11 - 6 = 0).

Step 2: Factor out (x-1) to get (x-1)(x² - 5x + 6) = 0.

Step 3: Factor the quadratic into (x-2)(x-3).

Roots: x = 1, x = 2, x = 3

2. Depressed Cubic (Δ = 0)

x³ - 3x + 2 = 0

Step 1: This is depressed (no x²). Here p = -3, q = 2.

Step 2: Discriminant Δ = (2/2)² + (-3/3)³ = 1 - 1 = 0.

Step 3: A zero discriminant means repeated roots.

Roots: x = 1 (double root), x = -2

3. One Real, Two Complex (Δ &gt; 0)

x³ + x + 2 = 0

Step 1: Depressed cubic with p = 1, q = 2.

Step 2: Δ = (2/2)² + (1/3)³ = 1 + 1/27 ≈ 1.037 &gt; 0.

Step 3: The curve crosses the x-axis exactly once.

Roots: x = -1 (real), x = 0.5 ± 1.323i (complex)

4. Triple Root

x³ - 3x² + 3x - 1 = 0

Step 1: Notice this perfectly matches the expansion of (x-1)³.

Step 2: Therefore, the equation is (x-1)³ = 0.

Step 3: The graph has a horizontal inflection point at x=1.

Roots: x = 1 (triple root)

Graph Interpretation Guide

The graph of a cubic equation reveals its secrets at a glance. Our calculator generates this curve automatically, but knowing what to look for is essential.

X-Intercepts (Roots)

Where the curve crosses the horizontal axis. A cubic will cross either 1, 2, or 3 times.

Y-Intercept

Where the curve crosses the vertical axis. This is always exactly equal to the constant term 'd'.

Turning Points (Extrema)

The local maximum (peak) and local minimum (valley). A cubic has either exactly two turning points or zero.

Inflection Point

The exact center of rotational symmetry where the curve changes concavity (from an arch to a bowl, or vice versa).

Real-World Applications of Cubic Equations

Cubic equations aren't just abstract math — they describe the physical world. Any system involving volume, 3D space, or changing acceleration often results in a third-degree polynomial.

Engineering

Used to calculate stress-strain curves in materials, optimizing structural loads, and designing aerodynamic profiles.

Chemistry

Essential for the van der Waals equation of state, which models the behavior of real, non-ideal gases.

Computer Graphics

Bézier curves, the foundation of vector graphics and 3D modeling, rely entirely on cubic polynomials to draw smooth lines.

Economics

Used to model cost, revenue, and profit functions where marginal rates fluctuate significantly over time.

Physics

Models projectile motion experiencing air drag, certain wave equations, and fluid dynamics simplifications.

Machine Learning

Polynomial regression models often use third-degree expansions to map complex, non-linear optimization landscapes.

解三次方程时的常见错误

即使是经验丰富的数学家在手工求解三次多项式时也可能出错。以下是最常见的陷阱以及如何避免它们。

1. Setting a = 0

If the leading coefficient 'a' is zero, the x³ term disappears and it becomes a quadratic equation. Always ensure a ≠ 0.

2. Dropping Negative Signs

Forgetting to include the minus sign when substituting negative coefficients into Cardano's formula is the #1 source of manual errors.

3. Missing Zero Coefficients

For an equation like x³ - 8 = 0, you must explicitly account for b = 0 and c = 0. Failing to do so throws off the entire calculation.

4. Ignoring Complex Roots

A cubic always has three roots. If you find only one real root, you are not done — the other two exist as a complex conjugate pair.

5. Premature Rounding

Rounding numbers in the middle of calculating p, q, and the discriminant causes massive cascading errors in the final roots. Keep exact fractions until the very end.

6. Misinterpreting the Graph

Assuming a curve that touches the x-axis without crossing it has no root there. In reality, it represents a double (repeated) root.

How to Verify Your Solutions

Never assume your roots are correct without proving it. Here are four mathematically rigorous ways to verify your cubic equation solutions.

1. Direct Substitution (The Residual Check)

Plug each calculated root back into the original equation f(x) = ax³ + bx² + cx + d. If the math is correct, the result should be exactly zero. Due to floating-point math, computers look for a result very close to zero (e.g., 1e-10).

2. Vieta's Formula Check

Add all three of your roots together. The sum must exactly equal -b/a. Then, multiply all three roots together. The product must exactly equal -d/a. If either fails, your roots are wrong.

3. Visual Graph Confirmation

Plot the cubic curve. The real roots you calculated mathematically must align perfectly with the x-intercepts on the graph.

4. Derivative Check for Repeated Roots

If you believe you have a double root at x=r, then substituting 'r' into the derivative f'(x) = 3ax² + 2bx + c must also equal zero.

其他资源

所有三次计算器

使用我们专用的三次多项式计算器标准化您的工作流程。

Δ > 0

三次判别计算器

立即识别根的性质。了解您的三次方程是否有实数、复数或重复解。

打开工具
u+v

Cardano 方法计算器

通过消除平方项应用 Cardano 历史公式的分步计算器。

打开工具
t³+pt

凹陷三次计算器

自动将标准三次方程转换为更简单的凹陷形式。

打开工具
x₁, x₂, x₃

三次根计算器

闪电般快速提取 x 截距,准确求解实数根和复数根

打开工具
f(x)

三次函数图形生成器

交互式曲线绘图工具,用于可视化根、转折点和斜率行为。

打开工具
f″ = 0

拐点计算器

精确定位三次曲线变化处的精确旋转对称中心

打开工具
f′(x) = 0

转折点计算器

确定多项式的精确峰值(局部最大值)和谷值(局部最小值)。

打开工具
(x-r₁)(x-r₂)(x-r₃)

多项式因式分解计算器

将三次方程优雅地分解为干净的二项式因式,完美无小数。

打开工具
r | a b c d

综合除法计算器

快速速记除法工具,用于检查因数并将三次分解为可解二次方程。

打开工具

多项式长除法计算器

强大的经典除法工具,支持完全透明的二次除数。

打开工具
±p/q

有理根定理计算器

为您的方程生成所有可能的干净分数和整数根的严格列表。

打开工具
f(c)

余数定理计算器

绕过全除法快速计算根,纯粹通过快速替换来检查因子。

打开工具
∑r

Vieta 公式计算器

直接从多项式系数分析立方根的和与乘积。

打开工具
a±bi

复数根计算器

从三次曲线中严格提取虚共轭对的专用实用程序。

打开工具
📈

多项式图形绘图仪

严格的高细节 SVG 绘图应用程序超级专注于深度三次绘图。

打开工具
|a-b|

根关系计算器

测量找到的多项式根之间的距离、散布和绝对差。

打开工具
立方的例子

Frequently Asked Questions about Cubic Equations

What makes an equation a \\"cubic\\" equation?

An equation is cubic when the highest exponent (power) of the variable is 3. For example, in 4x³ - 2x + 1 = 0, the x³ term is what defines it as a cubic polynomial.

Can a cubic equation have no real roots?

No. Because complex roots always come in pairs (conjugates), and a cubic must have exactly 3 roots total, there will always be at least one real root. Geometrically, the curve extends from negative to positive infinity, guaranteeing it crosses the x-axis at least once.

What does the discriminant tell me?

The discriminant acts like a diagnostic scan. If it is positive, you have 1 real and 2 complex roots. If it is exactly zero, you have repeated real roots. If it is negative, you have 3 distinct real roots.

Why does the calculator use trigonometric functions for some real roots?

When a cubic has three real roots (negative discriminant), Cardano's algebraic formula gets stuck trying to calculate the cube root of a complex number. To bypass this \"casus irreducibilis\", mathematicians use trigonometric identities (involving cosine and arccosine) to compute the exact real roots cleanly.

Can I enter decimal fractions for coefficients?

Yes! The calculator's engine handles integers, negative numbers, and decimals seamlessly. It maintains extremely high floating-point precision throughout all intermediate steps to ensure the final output is accurate.