Polynomial Sum Calculator

Add or subtract polynomials (like terms), or sum p(k) from a to n with Faulhaber.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Choose an operation and enter the polynomials

Enter your values below to get started.

Examples:
What do you want to do?
P =
Q =
Operation
p(k) =
A polynomial in k, such as k^2, 2k - 1, k^3 + k, (k+1)^2.
A whole number, or n for the closed form.
Reset restores the default values.

Tips for this calculator

Write powers with ^: x^3. Products like (x+1)(x-1) are expanded for you.

Fractions work as coefficients: x/2 + 1/3.

Type n as the upper limit to get the general formula S(n).

Subtraction flips the sign of every term of Q, not just the first one.

A polynomial sum calculator does 2 jobs: it adds or subtracts polynomials by combining like terms, and it sums a polynomial p(k) over a range of whole numbers, such as Σk=1n k² = n(n + 1)(2n + 1)/6. Type the polynomials or the term p(k) with its limits to get the result in standard form, the like-term table, the closed form from Faulhaber's formulas and a step-by-step solution.

What is a Polynomial Sum?

A polynomial sum is either the result of adding 2 or more polynomials, found by combining like terms, or the total of a polynomial p(k) evaluated at k = a, a + 1, …, n. Adding 3x² + 2x − 5 and x² − 4x + 1 gives 4x² − 2x − 4; summing p(k) = k² from 1 to 10 gives 385.

(3x2+2x−5)+(x2−4x+1)(3x^2 + 2x - 5) + (x^2 - 4x + 1)
=4x2−2x−4= 4x^2 - 2x - 4

Like terms are terms with the same variable raised to the same power, such as 3x² and x². Only the coefficients of like terms are added; the exponents never change.

InteractiveLine up like terms and add down the columns

How Does the Polynomial Sum Calculator Work?

The polynomial sum calculator expands each input into a list of exact coefficients, one per power, then adds or subtracts the lists power by power. In sum mode, it splits p(k) into powers of k, applies Faulhaber's formula to each power and combines the results into one polynomial S(n).

InteractiveColumn method: add or subtract 2 quadratics
  1. Expand

    Products and powers such as (x + 1)² are multiplied out: x² + 2x + 1.

  2. Align by degree

    Coefficients are stored by power: x³, x², x, constant.

  3. Combine

    Add (or subtract) the coefficients of each power.

  4. Sum mode

    Σ p(k) = Σ cₘ Σ kᵐ, with Faulhaber's formula for each Σ kᵐ.

Polynomial Sum Formulas

There are 2 polynomial sum formulas: the coefficient rule for adding polynomials and Faulhaber's formulas for summing powers of k. The coefficient rule adds matching coefficients; Faulhaber's formulas turn Σ km into a polynomial of degree m + 1.

Adding Two Polynomials

∑iaixi+∑ibixi=∑i(ai+bi) xi\sum_{i} a_i x^i + \sum_{i} b_i x^i = \sum_{i} (a_i + b_i)\, x^i

Faulhaber's Formulas for Sums of Powers

∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2}
∑k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6}
∑k=1nk3=n2(n+1)24\sum_{k=1}^{n} k^3 = \frac{n^2(n+1)^2}{4}

Sum of a Polynomial

∑k=anp(k)=S(n)−S(a−1)\sum_{k=a}^{n} p(k) = S(n) - S(a-1)

Here S(n) = Σm cm Σk=1n km for p(k) = Σ cmkm.

Example: Σk=1n (3k² + k) = n(n + 1)(2n + 1)/2 + n(n + 1)/2 = n(n + 1)².

InteractiveFaulhaber's formula for Σ kᵐ, checked term by term

Types of Polynomial Sums

There are 5 common types of polynomial sums by degree of the term: constant, linear, quadratic, cubic and higher-degree sums. Summing a degree-d term from 1 to n always gives a polynomial of degree d + 1 in n.

InteractiveDegree d term, degree d + 1 sum

Constant (degree 0)

Σ 3 = 3n. A straight line in n.

Linear (degree 1)

Σ (2k + 1) = n² + 2n. An arithmetic series.

Quadratic (degree 2)

Σ k² = n(n + 1)(2n + 1)/6, the square pyramidal numbers.

Cubic (degree 3)

Σ k³ = [n(n + 1)/2]², the square of the triangular number.

Higher degree

Σ k⁴ = n(n + 1)(2n + 1)(3n² + 3n − 1)/30; Faulhaber gives every power.

How to Add Polynomials by Hand

To add polynomials by hand, remove the parentheses, group the like terms and add their coefficients. To subtract, change the sign of every term of the second polynomial first. Here is (3x² + 2x − 5) + (x² − 4x + 1):

  1. Remove parentheses: 3x² + 2x − 5 + x² − 4x + 1.
  2. Group like terms: (3x² + x²) + (2x − 4x) + (−5 + 1).
  3. Add coefficients: 4x² − 2x − 4.
  4. Check at x = 1: P(1) = 0, Q(1) = −2, result = −2.
InteractiveStep through 3 polynomial sums by hand

    Adding Polynomials on a Graph

    The graph of P + Q is found by adding the heights of P and Q at every x. At x = 1, P(x) = x² − 2 has height −1 and Q(x) = x + 1 has height 2, so P + Q = x² + x − 1 has height 1.

    The degree of P + Q is at most the larger of the 2 degrees. The degree drops when the leading terms cancel, as in (2x³ − x + 7) − (2x³ + 5x² + x) = −5x² − 2x + 7.

    InteractiveSlide x and add the 2 heights

    Faulhaber, Bernoulli and Sums of Powers

    The formulas for sums of powers of whole numbers come from Johann Faulhaber, who published them up to the 17th power in Academia Algebrae (1631), and Jacob Bernoulli, who gave the general rule in Ars Conjectandi (1713). Bernoulli's rule uses the Bernoulli numbers B0 = 1, B1 = 1/2, B2 = 1/6, B4 = −1/30.

    ∑k=1nkm=1m+1∑j=0m(m+1j)Bj nm+1−j\sum_{k=1}^{n} k^m = \frac{1}{m+1}\sum_{j=0}^{m} \binom{m+1}{j} B_j\, n^{m+1-j}

    The sum Σ k² counts cannonballs in a square pyramid: in 1591 Thomas Harriot worked out such stacks for Sir Walter Raleigh. A pyramid with 10 layers holds 385 balls.

    InteractiveSquare pyramid: Σ k² cannonballs

    Common Mistakes with Polynomial Sums

    • Adding exponents: x² + x² = 2x², not x⁴. Exponents add only when multiplying.
    • Combining unlike terms: 3x² + 2x stays as it is; x² and x are different powers.
    • Subtracting only the first term: −(x² − 4x + 1) = −x² + 4x − 1, every sign flips.
    • Squaring a sum term by term: Σ k² ≠ (Σ k)². For n = 3: 14 vs. 36.
    • Forgetting the lower limit: Σ from k = 3 needs the terms k = 1 and 2 removed: Σk=3n (2k − 1) = n² − 4.
    InteractiveTrue or false: polynomial sums
    1. x² + x² = x⁴.

    2. (3x² + 2x − 5) + (x² − 4x + 1) = 4x² − 2x − 4.

    3. The sum of two degree-3 polynomials always has degree 3.

    4. Σ k² from 1 to 10 equals 385.

    5. Summing a degree-2 term from 1 to n gives a degree-3 polynomial in n.

    Score: 0 / 5

    How to Use the Polynomial Sum Calculator

    Pick Add or subtract, or Sum Σ p(k), type the polynomials or the term with its limits, and press Calculate. The result shows the answer in standard form; the tabs hold the steps, a like-term table or a table of partial sums, and a chart.

    InteractiveLoad a ready-made polynomial sum

    Each button fills the calculator and runs it.

    1. Pick the mode

      Add or subtract polynomials, or Sum Σ p(k) over a range.

    2. Type the polynomials

      Use one variable, such as 2x^3 - x + 7.

    3. Set the limits

      In sum mode, give a lower limit and a number or n as the upper limit.

    4. Read the answer

      Standard form, degree, a factored closed form and a check.

    Real-Life Uses of Polynomial Sums

    Polynomial sums combine models that share a variable and total quantities that grow by a polynomial rule. There are 5 common uses:

    • Business: profit = revenue − cost, such as (50x − 0.2x²) − (0.1x² + 8x + 300) = −0.3x² + 42x − 300.
    • Physics: total displacement adds position polynomials of several motions.
    • Stacking: a square pyramid of 10 layers needs Σ k² = 385 boxes or cannonballs.
    • Computer science: a loop whose body costs k² steps on pass k costs Σ k² = n(n + 1)(2n + 1)/6 steps.
    • Engineering: combined load curves, error terms and polynomial fits are added coefficient by coefficient.
    InteractiveProfit = revenue − cost as a polynomial difference

    Polynomial Sum Examples

    Common polynomial sums and their results. Click a row to load it.

    Polynomial Sum Examples
    ProblemResultCalculator
    (3x2+2x−5)+(x2−4x+1)(3x^2 + 2x - 5) + (x^2 - 4x + 1)4x2−2x−44x^2 - 2x - 4
    (2x3−x+7)−(2x3+5x2+x)(2x^3 - x + 7) - (2x^3 + 5x^2 + x)−5x2−2x+7-5x^2 - 2x + 7
    (x2+3x)+(4x2−3x+2)(x^2 + 3x) + (4x^2 - 3x + 2)5x2+25x^2 + 2
    (5x4+x)−(2x4+4)(5x^4 + x) - (2x^4 + 4)3x4+x−43x^4 + x - 4
    ∑k=110k2\sum_{k=1}^{10} k^2385385
    ∑k=1nk3\sum_{k=1}^{n} k^3n2(n+1)24\frac{n^2(n+1)^2}{4}
    ∑k=110(k2+1)\sum_{k=1}^{10} (k^2 + 1)395395
    ∑k=120(2k−1)\sum_{k=1}^{20} (2k - 1)400400

    Popular Polynomial Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Add the polynomials.

      (4x^3 + 2x - 1) + (x^3 - 5x + 6)
      Show answer5x^3 - 3x + 5
    2. Subtract the polynomials.

      (6x^2 - x + 3) - (2x^2 + 4x - 7)
      Show answer4x^2 - 5x + 10
    3. Find the closed form of the sum of the first n whole numbers.

      \sum_{k=1}^{n} k
      Show answer\frac{n(n+1)}{2}
    4. Evaluate the polynomial sum.

      \sum_{k=1}^{5} (k^2 - k)
      Show answer40
    5. Evaluate the sum of cubes.

      \sum_{k=1}^{6} k^3
      Show answer441 = 21^2
    6. Find the closed form.

      \sum_{k=1}^{n} (3k^2 + k)
      Show answern(n+1)^2

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    How do you add polynomials?

    Remove the parentheses, group the like terms (same variable, same exponent) and add their coefficients. (3x² + 2x − 5) + (x² − 4x + 1) = 4x² − 2x − 4.

    How do you subtract polynomials?

    Change the sign of every term of the second polynomial, then add. (6x² − x + 3) − (2x² + 4x − 7) = 6x² − x + 3 − 2x² − 4x + 7 = 4x² − 5x + 10.

    What are like terms in a polynomial?

    Like terms are terms with the same variable raised to the same power, such as 5x³ and −2x³. Unlike terms, such as x³ and x², cannot be combined.

    Is the sum of two polynomials always a polynomial?

    Yes, the sum or difference of two polynomials is always a polynomial. Its degree is at most the larger of the 2 degrees and drops when the leading terms cancel.

    What is the formula for the sum of squares 1² + 2² + … + n²?

    The sum of squares formula is n(n + 1)(2n + 1)/6. For n = 10 it gives 10 × 11 × 21 / 6 = 385.

    What is Faulhaber's formula?

    Faulhaber's formula expresses 1<sup>m</sup> + 2<sup>m</sup> + … + n<sup>m</sup> as a polynomial in n of degree m + 1, with coefficients built from the Bernoulli numbers. Johann Faulhaber published the cases up to m = 17 in 1631.

    How do you sum a polynomial from k = a to n?

    Split p(k) into powers, apply Faulhaber's formula to each Σ k<sup>m</sup> from 1 to n, then subtract the same formula evaluated at n = a − 1. Σ<sub>k=3</sub><sup>n</sup> (2k − 1) = n² − 4.

    Can the polynomial sum calculator handle fractions?

    Yes, the polynomial sum calculator keeps coefficients as exact fractions. (x/2 + 1/3) + (x/3 − 1/2) = (5/6)x − 1/6.

    Conclusion

    A polynomial sum adds polynomials by combining like terms or totals a polynomial over a range with Faulhaber's formulas, and the polynomial sum calculator does both with exact fractions and full steps. Add coefficients of equal powers, flip every sign before subtracting, and expect a degree-d term to sum to a degree d + 1 polynomial in n.

    Not sure which mode you need? Answer the questions below.

    InteractiveWhich polynomial sum mode fits your problem?