MathComps LogoMathComps
ProblemsHandoutsGuideNews
Sign in

Factorization

Algebra
Author
Patrik Bak

1Introduction

Why is it good to know how to factor complex expressions? Imagine you have to prove that the number n3−nn^3-nn3−n is divisible by six for every integer nnn. Without modification, it is unclear. However, it is enough to factor the expression:

n3−n=n(n2−1)=(n−1)n(n+1).n^3-n = n(n^2-1) = (n-1)n(n+1).n3−n=n(n2−1)=(n−1)n(n+1).

Suddenly we see a product of three consecutive numbers, of which at least one is always even and exactly one is divisible by three. Divisibility by six is thus obvious.

The ability to transform a confusing sum into a clear product is one of the key techniques in solving tricky mathematical problems†. In this lesson, we will systematically derive known factorizations, explain the tricks and intuition behind them, and practice everything on examples.

2Theory

In this section, we will gradually introduce four key factorization techniques. We will start from basic formulas, move to the general method of grouping, and finally explain completing the square. As a curiosity, we will also show that one can complete not only to a square but also to a cube, and surprisingly it can be useful.

2.1Difference and sum of powers formulas

Exercise 1

Verify by expanding that the following holds

  • a2−b2=(a−b)(a+b)a^2-b^2=(a-b)(a+b)a2−b2=(a−b)(a+b)
  • a3−b3=(a−b)(a2+ab+b2)a^3-b^3=(a-b)(a^2+ab+b^2)a3−b3=(a−b)(a2+ab+b2)
  • a4−b4=(a−b)(a3+a2b+ab2+b3)a^4-b^4=(a-b)(a^3+a^2b+ab^2+b^3)a4−b4=(a−b)(a3+a2b+ab2+b3)

What will the general formula for an−bna^n-b^nan−bn look like for a natural number nnn?

✓Solution

The answer to the question is Proposition 1.

Exercise 2

Verify by expanding that the following holds

  • a3+b3=(a+b)(a2−ab+b2)a^3+b^3=(a+b)(a^2-ab+b^2)a3+b3=(a+b)(a2−ab+b2)
  • a5+b5=(a+b)(a4−a3b+a2b2−ab3+b4)a^5+b^5=(a+b)(a^4-a^3b+a^2b^2-ab^3+b^4)a5+b5=(a+b)(a4−a3b+a2b2−ab3+b4)

What will the general formula for an+bna^n+b^nan+bn look like for an odd natural number nnn?

✓Solution

The answer to the question is Proposition 2.

After a while of investigation, we will surely come up with general formulas:

Theorem 1

For all real numbers a,ba,ba,b and natural nnn, it holds

an−bn=(a−b)(an−1+an−2b+⋯+abn−2+bn−1)a^n - b^n = (a-b)(a^{n-1}+a^{n-2}b+\cdots+ab^{n-2}+b^{n-1})an−bn=(a−b)(an−1+an−2b+⋯+abn−2+bn−1)
Proof

We subtract the expressions:

a(an−1+an−2b+⋯+abn−2+bn−1)=an+an−1b+⋯+abn−1b(an−1+an−2b+⋯+abn−2+bn−1)=an−1b+⋯+abn−1+bn\begin{align*} a(a^{n-1}+a^{n-2}b+\cdots+ab^{n-2}+b^{n-1}) &= a^n + a^{n-1}b + \cdots + ab^{n-1} \\ b(a^{n-1}+a^{n-2}b+\cdots+ab^{n-2}+b^{n-1}) &= a^{n-1}b + \cdots + ab^{n-1} + b^n \end{align*}a(an−1+an−2b+⋯+abn−2+bn−1)b(an−1+an−2b+⋯+abn−2+bn−1)​=an+an−1b+⋯+abn−1=an−1b+⋯+abn−1+bn​

On the left, we can factor out the large parenthesis and get exactly the right side of the proven formula. On the right, all terms cancel out. The proposition is proved.

The situation with an+bna^n+b^nan+bn is more curious in that such a factorization works only for odd nnn. From the proof, it is visible why:

Theorem 2

For all real numbers a,ba,ba,b and odd natural nnn, it holds

an+bn=(a+b)(an−1−an−2b+⋯−abn−2+bn−1)a^n + b^n = (a+b)(a^{n-1}-a^{n-2}b+\cdots-ab^{n-2}+b^{n-1})an+bn=(a+b)(an−1−an−2b+⋯−abn−2+bn−1)
Proof

The proposition can be proved similarly to the previous one – by observing which terms cancel out when expanding the right side. However, a trickier proof is worth mentioning, in which we substitute the value −b-b−b instead of bbb into the formula for an−bna^n-b^nan−bn. Thanks to the oddness of nnn, then an−(−b)n=an+bna^n-(-b)^n=a^n+b^nan−(−b)n=an+bn. Every second term of the parenthesis an−1+an−2b+⋯+abn−2+bn−1a^{n-1}+a^{n-2}b+\cdots+ab^{n-2}+b^{n-1}an−1+an−2b+⋯+abn−2+bn−1 changes sign when replacing bbb with −b-b−b.

How is it for even nnn? For the expression a2+b2a^2+b^2a2+b2, it can be proven that it really cannot be factored (in the domain of real numbers). However, all other an+bna^n+b^nan+bn can be factored, which we will gradually work towards.

Exercise 3

Factor into a product of two expressions without roots (n,kn,kn,k are natural numbers).

  • a3−27a^3-27a3−27
  • a3+8b3a^3+8b^3a3+8b3
  • a4−4na^4-4^na4−4n
  • a6+b6a^6+b^6a6+b6
  • a4k+2+b4k+2a^{4k+2}+b^{4k+2}a4k+2+b4k+2
✓Solution

The individual factorizations are

  • a3−27=a3−33=(a−3)(a2+3a+9)a^3-27 = a^3 - 3^3 = (a-3)(a^2+3a+9)a3−27=a3−33=(a−3)(a2+3a+9)
  • a3+8b3=a3+(2b)3=(a+2b)(a2−2ab+4b2)a^3+8b^3 = a^3 + (2b)^3 = (a+2b)(a^2-2ab+4b^2)a3+8b3=a3+(2b)3=(a+2b)(a2−2ab+4b2)
  • a4−4n=(a2)2−(2n)2=(a2−2n)(a2+2n)a^4-4^n = (a^2)^2 - (2^n)^2 = (a^2-2^n)(a^2+2^n)a4−4n=(a2)2−(2n)2=(a2−2n)(a2+2n)
  • a6+b6=(a2)3+(b2)3=(a2+b2)(a4−a2b2+b4)a^6+b^6 = (a^2)^3 + (b^2)^3 = (a^2+b^2)(a^4 - a^2b^2 + b^4)a6+b6=(a2)3+(b2)3=(a2+b2)(a4−a2b2+b4)
  • a4k+2+b4k+2=(a2)2k+1+(b2)2k+1=(a2+b2)(a4k−a4k−2b2+⋯−a2b4k−2+b4k)a^{4k+2}+b^{4k+2}=(a^{2})^{2k+1}+(b^{2})^{2k+1}=(a^{2}+b^{2})(a^{4k}-a^{4k-2}b^{2}+\cdots-a^{2}b^{4k-2}+b^{4k})a4k+2+b4k+2=(a2)2k+1+(b2)2k+1=(a2+b2)(a4k−a4k−2b2+⋯−a2b4k−2+b4k)

In more complex problems, factorization is typically just one of several steps. We can try:

Problem 1

Prove that for every natural number nnn, the number n5−nn^5-nn5−n is divisible by 30.

1Hint

Factor the investigated expression into as many parentheses as possible.

2Hint

The sought factorization is n5−n=n(n4−1)=n(n2−1)(n2+1)=n(n−1)(n+1)(n2+1)n^5-n=n(n^4-1)=n(n^2-1)(n^2+1)=n(n-1)(n+1)(n^2+1)n5−n=n(n4−1)=n(n2−1)(n2+1)=n(n−1)(n+1)(n2+1). To investigate divisibility by 30, it is enough to investigate divisibility by 222, 333, 555 separately.

✓Solution

It holds that n5−n=n(n4−1)=n(n2−1)(n2+1)=n(n−1)(n+1)(n2+1)n^5-n=n(n^4-1)=n(n^2-1)(n^2+1)=n(n-1)(n+1)(n^2+1)n5−n=n(n4−1)=n(n2−1)(n2+1)=n(n−1)(n+1)(n2+1). It suffices to prove that this expression is divisible by 222, 333, 555.

  • divisibility by 222 follows from the fact that of consecutive numbers nnn, n−1n-1n−1, at least one is even;
  • similarly, divisibility by 333 follows from numbers n−1n-1n−1, nnn, n+1n+1n+1;
  • divisibility by 555 is more complex. Certainly, when nnn gives a remainder of 0, 1, or 4 when divided by 5, we are done, due to factors nnn, n−1n-1n−1, n+1n+1n+1. Then if n=5k+2n=5k+2n=5k+2 or n=5k+3n=5k+3n=5k+3, then n2+1=25k2+20k+5n^2+1 = 25k^2+20k+5n2+1=25k2+20k+5 or n2+1=25k2+30k+10n^2+1=25k^2+30k+10n2+1=25k2+30k+10, so again we have a number divisible by 5.

Problem 2

Find three distinct pairs of natural numbers (a,b)(a,b)(a,b) such that the number a37+b37a^{37} + b^{37}a37+b37 is divisible by 777 and 0<a<b<70<a<b<70<a<b<7.

1Hint

The factorization of a37+b37a^{37}+b^{37}a37+b37 suggests a much simpler divisibility, which is sufficient.

2Hint

Since a37+b37=(a+b)(⋯ )a^{37}+b^{37}=(a+b)(\cdots)a37+b37=(a+b)(⋯), it is enough that 7∣a+b7 \mid a+b7∣a+b.

✓Solution

It holds that a37+b37=(a+b)(a36+⋯+b36)a^{37}+b^{37}=(a+b)(a^{36}+\cdots+b^{36})a37+b37=(a+b)(a36+⋯+b36), so a+b∣a37+b37a+b \mid a^{37}+b^{37}a+b∣a37+b37, thus it suffices that 7∣a+b7 \mid a+b7∣a+b. We can easily achieve this with pairs (a,b)(a,b)(a,b) equal to (1,6),(2,5),(3,4)(1,6), (2,5), (3,4)(1,6),(2,5),(3,4).

Problem 3*

Find all natural numbers nnn greater than 1 such that n6−1n^6-1n6−1 is a product of three not necessarily distinct primes.

1Hint

The expression n6−1n^6-1n6−1 can be factored into a product of many parentheses.

2Hint

One possible factorization is n6−1=(n2)3−1=(n2−1)(n4−n2+1)n^6-1=(n^2)^3-1=(n^2-1)(n^4-n^2+1)n6−1=(n2)3−1=(n2−1)(n4−n2+1). The second parenthesis can indeed be factored, but it is not evident at all how. A better factorization is n6−1=(n3)2−1=(n3−1)(n3+1)n^6-1=(n^3)^2-1 = (n^3-1)(n^3+1)n6−1=(n3)2−1=(n3−1)(n3+1). From this we factor further. Subsequently, we have at least 4 factors, which sounds suspicious if the number is to be a product of three primes.

✓Solution

We have the factorization

n6−1=(n3)2−1=(n3−1)(n3+1)=(n−1)(n2+n+1)(n+1)(n2−n+1).n^6-1=(n^3)^2-1 = (n^3-1)(n^3+1)=(n-1)(n^2+n+1)(n+1)(n^2-n+1).n6−1=(n3)2−1=(n3−1)(n3+1)=(n−1)(n2+n+1)(n+1)(n2−n+1).

For this to be a product of three primes, one parenthesis must be equal to 1. For n>1n>1n>1, this is only possible for the first one, where n=2n=2n=2. In that case, we indeed have 26−1=63=3⋅3⋅72^6-1=63=3\cdot3\cdot726−1=63=3⋅3⋅7.

2.2Grouping

The common school procedure of successive factorization works even in harder problems. The idea is: notice that something can be factored out; factor it out; and see what happens next. For this procedure, there exists a very important trick usable even in harder problems: watch when the expression is zero.

Example 1

Factor the expression a4−a−b4+ba^4-a-b^4+ba4−a−b4+b.

✓Solution

Without seeing the resulting factorization, we can say that a−ba-ba−b will be in it, because the investigated expression is equal to 0 for a=ba=ba=b. Thanks to this, we purposefully rearrange the terms as (a4−b4)−(a−b)(a^4-b^4)-(a-b)(a4−b4)−(a−b). Now we can factor out a−ba-ba−b from both expressions and we have

(a−b)(a3+a2b+ab2+b3)−(a−b)=(a−b)(a3+a2b+ab2+b3−1).(a-b)(a^3+a^2b+ab^2+b^3)-(a-b)=(a-b)(a^3+a^2b+ab^2+b^3-1).(a−b)(a3+a2b+ab2+b3)−(a−b)=(a−b)(a3+a2b+ab2+b3−1).

This view explains why in the formulas an−bna^n-b^nan−bn and an+bna^n+b^nan+bn from the previous section we have a−ba-ba−b and a+ba+ba+b; and also why the second one requires odd nnn – for a=ba=ba=b or a=−ba=-ba=−b, an−bna^n-b^nan−bn or an+bna^n + b^nan+bn are zero.

Exercise 4

Factor:

  • [2 factors] 2ab+a+2b+12ab+a+2b+12ab+a+2b+1
  • [3 factors] abc+ab+bc+ca+a+b+c+1abc+ab+bc+ca+a+b+c+1abc+ab+bc+ca+a+b+c+1
  • [3 factors] a2(b−c)+b2(c−a)+c2(a−b)a^2(b-c) + b^2(c-a) + c^2(a-b)a2(b−c)+b2(c−a)+c2(a−b)
  • [4 factors] (harder†) ab(a2−b2)+bc(b2−c2)+ca(c2−a2)ab(a^{2}-b^{2})+bc(b^{2}-c^{2})+ca(c^{2}-a^{2})ab(a2−b2)+bc(b2−c2)+ca(c2−a2)
✓Solution

The individual factorizations are:

  • An obvious zero point is a=−1a=-1a=−1, in the result we expect a+1a+1a+1. We easily find 2ab+a+2b+1=(a+1)(2b+1)2ab+a+2b+1=(a+1)(2b+1)2ab+a+2b+1=(a+1)(2b+1).
  • Here again it holds that whenever any of the numbers a,b,ca,b,ca,b,c is equal to −1-1−1, the expression will be zero. Thus we expect (a+1)(b+1)(c+1)(a+1)(b+1)(c+1)(a+1)(b+1)(c+1) in the result. Actually, that is all: abc+ab+bc+ca+a+b+c+1=(a+1)(b+1)(c+1)abc+ab+bc+ca+a+b+c+1=(a+1)(b+1)(c+1)abc+ab+bc+ca+a+b+c+1=(a+1)(b+1)(c+1). We can arrive at this gradually like this:
    abc+ab+bc+ca+a+b+c+1=(abc+ab)+(bc+b)+(ac+a)+(c+1)==ab(c+1)+b(c+1)+a(c+1)+(c+1)=(c+1)(ab+b+a+1)==(c+1)(b(a+1)+(a+1))=(c+1)(b+1)(a+1).\begin{gather*} abc+ab+bc+ca+a+b+c+1= (abc+ab)+(bc+b)+(ac+a)+(c+1) = \\ = ab(c+1)+b(c+1)+a(c+1)+(c+1)= (c+1)(ab+b+a+1)= \\ = (c+1)(b(a+1)+(a+1))= (c+1)(b+1)(a+1). \end{gather*}abc+ab+bc+ca+a+b+c+1=(abc+ab)+(bc+b)+(ac+a)+(c+1)==ab(c+1)+b(c+1)+a(c+1)+(c+1)=(c+1)(ab+b+a+1)==(c+1)(b(a+1)+(a+1))=(c+1)(b+1)(a+1).​
  • When two numbers are equal, e.g., a=ba=ba=b, the expression is zero. We manipulate the expression to have a parenthesis a−ba-ba−b in the result. We expect that b−cb-cb−c, c−ac-ac−a (or the opposite) will also appear there.
    a2(b−c)+b2(c−a)+c2(a−b)=(a2b−ab2)−c(a2−b2)+c2(a−b)==ab(a−b)−c(a−b)(a+b)−c2(a−b)=(a−b)(ab−c(a+b)−c2)==(a−b)(a(b−c)−c(b−c))=(a−b)(b−c)(a−c).\begin{gather*} a^{2}(b-c)+b^{2}(c-a)+c^{2}(a-b) = (a^2b - ab^2) - c(a^2-b^2) + c^2(a-b) = \\ = ab(a-b) - c(a-b)(a+b) - c^2(a-b) = (a-b)(ab-c(a+b)-c^2) = \\ = (a-b)(a(b-c)-c(b-c)) = (a-b)(b-c)(a-c). \end{gather*}a2(b−c)+b2(c−a)+c2(a−b)=(a2b−ab2)−c(a2−b2)+c2(a−b)==ab(a−b)−c(a−b)(a+b)−c2(a−b)=(a−b)(ab−c(a+b)−c2)==(a−b)(a(b−c)−c(b−c))=(a−b)(b−c)(a−c).​
  • We proceed similarly to the previous exercise, since again we have equality for a=ba=ba=b. The modifications are more complex here:
    ab(a2−b2)+bc(b2−c2)+ca(c2−a2)=ab(a2−b2)+b3c−bc3+ac3−a3c==ab(a2−b2)−c(a3−b3)+c3(a−b)=(a−b)(ab(a+b)−c(a2+ab+b2)+c3).\begin{gather*} ab(a^{2}-b^{2})+bc(b^{2}-c^{2})+ca(c^{2}-a^{2})= ab(a^2-b^2) + b^3c - bc^3 + ac^3 - a^3c = \\ = ab(a^2-b^2) - c(a^3-b^3) + c^3(a-b) = (a-b)(ab(a+b) - c(a^2+ab+b^2) + c^3). \end{gather*}ab(a2−b2)+bc(b2−c2)+ca(c2−a2)=ab(a2−b2)+b3c−bc3+ac3−a3c==ab(a2−b2)−c(a3−b3)+c3(a−b)=(a−b)(ab(a+b)−c(a2+ab+b2)+c3).​
    Now let's focus on the parenthesis:
    ab(a+b)−c(a2+ab+b2)+c3=a2b+ab2−ca2−abc−cb2+c3==ab(a−c)+b2(a−c)−c(a2−c2)=(a−c)(ab+b2−c(a+c)).\begin{gather*} ab(a+b) - c(a^2+ab+b^2) + c^3 = a^2b + ab^2 - ca^2 - abc - cb^2 + c^3 = \\ = ab(a-c) + b^2(a-c) - c(a^2-c^2) = (a-c)(ab+b^2-c(a+c)). \end{gather*}ab(a+b)−c(a2+ab+b2)+c3=a2b+ab2−ca2−abc−cb2+c3==ab(a−c)+b2(a−c)−c(a2−c2)=(a−c)(ab+b2−c(a+c)).​
    Finally, the last parenthesis:
    ab+b2−c(a+c)=(ab−ac)+(b2−c2)==a(b−c)+(b−c)(b+c)=(b−c)(a+b+c).\begin{gather*} ab+b^2-c(a+c)=(ab-ac)+(b^2-c^2)=\\=a(b-c) + (b-c)(b+c)= (b-c)(a+b+c). \end{gather*}ab+b2−c(a+c)=(ab−ac)+(b2−c2)==a(b−c)+(b−c)(b+c)=(b−c)(a+b+c).​
    Together we have
    a2(b−c)+b2(c−a)+c2(a−b)=(a−b)(b−c)(a−c)(a+b+c).a^{2}(b-c)+b^{2}(c-a)+c^{2}(a-b) = (a-b)(b-c)(a-c)(a+b+c).a2(b−c)+b2(c−a)+c2(a−b)=(a−b)(b−c)(a−c)(a+b+c).

This view is not universal, because the factored factors do not have to be linear at all or can be more complex and it is harder to see the root. Then we have no choice but to play with rearranging terms and successive factoring.

Exercise 5

Factor into a product of two expressions:

  • a3b+a2+ab3+b2a^3b + a^2 + ab^3 + b^2a3b+a2+ab3+b2
  • a3b+a2+ab3+ab+b2+1a^3b + a^2 + ab^3 + ab + b^2 + 1a3b+a2+ab3+ab+b2+1
  • a3+b3+c3+ab(a+b)+bc(b+c)+ca(c+a)a^3+b^3+c^3+ab(a+b)+bc(b+c)+ca(c+a)a3+b3+c3+ab(a+b)+bc(b+c)+ca(c+a)
✓Solution

The individual factorizations are:

  • a3b+a2+ab3+b2=a2(ab+1)+b2(ab+1)=(a2+b2)(ab+1)a^3b + a^2 + ab^3 + b^2 = a^2(ab+1) + b^2(ab+1)=(a^2+b^2)(ab+1)a3b+a2+ab3+b2=a2(ab+1)+b2(ab+1)=(a2+b2)(ab+1).
  • a3b+a2+ab3+ab+b2+1=(a3b+a2)+(ab3+b2)+(ab+1)==a2(ab+1)+b2(ab+1)+(ab+1)=(a2+b2+1)(ab+1).\begin{gather*} a^3b + a^2 + ab^3 + ab + b^2 + 1 = (a^3b+a^2) + (ab^3+b^2) + (ab+1) =\\ = a^2 (ab+1) + b^2 (ab+1) + (ab+1) = (a^2+b^2+1)(ab+1). \end{gather*}a3b+a2+ab3+ab+b2+1=(a3b+a2)+(ab3+b2)+(ab+1)==a2(ab+1)+b2(ab+1)+(ab+1)=(a2+b2+1)(ab+1).​
  • a3+b3+c3+ab(a+b)+bc(b+c)+ca(c+a)==(a3+ab2+ac2)+(b3+bc2+ba2)+(c3+ca2+cb2)==a(a2+b2+c2)+b(a2+b2+c2)+c(a2+b2+c2)==(a+b+c)(a2+b2+c2).\begin{gather*} a^3+b^3+c^3+ab(a+b)+bc(b+c)+ca(c+a)= \\= (a^3+ab^2+ac^2) + (b^3+bc^2+ba^2) + (c^3+ca^2+cb^2) = \\ = a(a^2+b^2+c^2) + b(a^2+b^2+c^2) + c(a^2+b^2+c^2) = \\ = (a+b+c)(a^2+b^2+c^2). \end{gather*}a3+b3+c3+ab(a+b)+bc(b+c)+ca(c+a)==(a3+ab2+ac2)+(b3+bc2+ba2)+(c3+ca2+cb2)==a(a2+b2+c2)+b(a2+b2+c2)+c(a2+b2+c2)==(a+b+c)(a2+b2+c2).​

Hidden factorization and other algebraic modifications can be successfully used in this example:

Problem 4*

CPSJ† 2018

For natural numbers a,b,ca,b,ca,b,c it holds

(a+b+c)2∣ab(a+b)+bc(b+c)+ca(c+a)+3abc.(a + b + c)^2 \mid ab(a + b) + bc(b + c) + ca(c + a) + 3abc.(a+b+c)2∣ab(a+b)+bc(b+c)+ca(c+a)+3abc.

Prove that

(a+b+c)∣(a−b)2+(b−c)2+(c−a)2.(a + b + c) \mid (a - b)^2 + (b - c)^2 + (c - a)^2.(a+b+c)∣(a−b)2+(b−c)2+(c−a)2.
1Hint

The expression ab(a+b)+bc(b+c)+ca(c+a)+3abcab(a+b) + bc(b+c) + ca(c+a) + 3abcab(a+b)+bc(b+c)+ca(c+a)+3abc can be subtly factored.

2Hint

It holds that ab(a+b)+bc(b+c)+ca(c+a)+3abc=(a+b+c)(ab+bc+ca)ab(a+b) + bc(b+c) + ca(c+a) + 3abc = (a+b+c)(ab+bc+ca)ab(a+b)+bc(b+c)+ca(c+a)+3abc=(a+b+c)(ab+bc+ca). Thus our divisibility simplifies to

a+b+c∣ab+bc+ca.a+b+c \mid ab+bc+ca.a+b+c∣ab+bc+ca.

The expression (a−b)2+(b−c)2+(c−a)2(a-b)^2 + (b-c)^2 + (c-a)^2(a−b)2+(b−c)2+(c−a)2 is equal to 2(a2+b2+c2−ab−bc−ca)2(a^2+b^2+c^2-ab-bc-ca)2(a2+b2+c2−ab−bc−ca), we see a connection.

✓Solution

We factor the right side of the first divisibility:

ab(a+b)+bc(b+c)+ca(c+a)+3abc=(ab(a+b)+abc)+(bc(b+c)+abc)+(ca(c+a)+abc)=ab(a+b+c)+bc(a+b+c)+ca(a+b+c)=(a+b+c)(ab+bc+ca).\begin{align*} ab(a + b) + bc(b + c) + ca(c + a) + 3abc &= \\ (ab(a + b)+abc) + (bc(b + c)+abc) + (ca(c + a)+abc) &= \\ ab(a+b+c) + bc(a+b+c) + ca(a+b+c) &= \\ (a+b+c)(ab+bc+ca). \end{align*}ab(a+b)+bc(b+c)+ca(c+a)+3abc(ab(a+b)+abc)+(bc(b+c)+abc)+(ca(c+a)+abc)ab(a+b+c)+bc(a+b+c)+ca(a+b+c)(a+b+c)(ab+bc+ca).​===​

The assumed divisibility translates to a+b+c∣ab+bc+caa+b+c \mid ab+bc+caa+b+c∣ab+bc+ca. It holds

(a−b)2+(b−c)2+(c−a)2=2(a2+b2+c2−ab−bc−ca).(a-b)^2 + (b-c)^2 + (c-a)^2 = 2(a^2+b^2+c^2-ab-bc-ca).(a−b)2+(b−c)2+(c−a)2=2(a2+b2+c2−ab−bc−ca).

The divisibility a+b+c∣ab+bc+caa+b+c \mid ab+bc+caa+b+c∣ab+bc+ca simplifies the situation to the fact that it suffices to prove a+b+c∣2(a2+b2+c2)a+b+c \mid 2(a^2+b^2+c^2)a+b+c∣2(a2+b2+c2). We prove this by using

a+b+c∣(a+b+c)2=a2+b2+c2+2(ab+bc+ca).a+b+c \mid (a+b+c)^2 = a^2+b^2+c^2 + 2(ab+bc+ca).a+b+c∣(a+b+c)2=a2+b2+c2+2(ab+bc+ca).

Together with a+b+c∣ab+bc+caa+b+c \mid ab+bc+caa+b+c∣ab+bc+ca, we then have a+b+c∣a2+b2+c2a+b+c \mid a^2+b^2+c^2a+b+c∣a2+b2+c2, so altogether we are done.

2.3Completing the square

Completing the square is one of the oldest and most elegant techniques in algebra†. It allows us to factor a quadratic polynomial into a product of simpler linear ones, e.g.

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

In general for real numbers a≠0a\neq 0a=0, bbb, ccc we have

ax2+bx+c=a(x2+bax+ca)=a((x+b2a)2+ca−b24a2)==a((x+b2a)2−b2−4ac4a2).\begin{gather*} ax^2+bx+c =a\left(x^2+\frac ba x + \frac ca\right) =a\left(\left(x + \frac{b}{2a}\right)^2 + \frac ca - \frac{b^2}{4a^2}\right) =\\ =a\left(\left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a^2}\right). \end{gather*}ax2+bx+c=a(x2+ab​x+ac​)=a((x+2ab​)2+ac​−4a2b2​)==a((x+2ab​)2−4a2b2−4ac​).​

From this, we can easily derive the formula for the solutions of a quadratic equation.

In general, we actually used a2+2ab=(a+b)2−b2a^2+2ab = (a+b)^2 - b^2a2+2ab=(a+b)2−b2. However, we can also complete to a square by 'manufacturing' the middle coefficient, i.e., using the formula a2+b2=(a+b)2−2aba^2+b^2=(a+b)^2-2aba2+b2=(a+b)2−2ab. We will demonstrate this on the following example:

Example 2

Factor m4+m2n2+n4m^4+m^2n^2+n^4m4+m2n2+n4.

✓Solution

The first thing that might occur to us is to complete m4+m2n2m^4+m^2n^2m4+m2n2 to a square. By doing so we get

m4+m2n2+n4=(m2+n22)2+3n44.m^4+m^2n^2+n^4= \left(m^2 +\frac{n^2}2\right)^2 + \frac{3n^4}4.m4+m2n2+n4=(m2+2n2​)2+43n4​.

This did not help us much. Let's try something else, let's complete m4+n4m^4+n^4m4+n4 to a square. Then we have

m4+m2n2+n4=(m4+n4)+m2n2=(m2+n2)2−2m2n2+m2n2==(m2+n2)2−m2n2=(m2+n2−mn)(m2+n2+mn).\begin{gather*} m^4+m^2n^2+n^4 = (m^4+n^4)+m^2n^2 = (m^2+n^2)^2 - 2m^2n^2 + m^2n^2 = \\ = (m^2+n^2)^2 - m^2n^2 = (m^2+n^2-mn)(m^2+n^2+mn). \end{gather*}m4+m2n2+n4=(m4+n4)+m2n2=(m2+n2)2−2m2n2+m2n2==(m2+n2)2−m2n2=(m2+n2−mn)(m2+n2+mn).​

Practice this by deriving a known identity:

Exercise 6

Sophie-Germain identity†

Factor a4+4b4a^4+4b^4a4+4b4.

✓Solution

By completing to a square we have

a4+4b4=(a2)2+(2b2)2=(a2+2b2)2−(2ab)2=(a2+2b2−2ab)(a2+2b2+2ab).a^4+4b^4 = (a^2)^2 + (2b^2)^2 = (a^2+2b^2)^2 - (2ab)^2 = (a^2+2b^2-2ab)(a^2+2b^2+2ab).a4+4b4=(a2)2+(2b2)2=(a2+2b2)2−(2ab)2=(a2+2b2−2ab)(a2+2b2+2ab).

Try an example from the national round of MO:

Problem 5

CKMO 2012

Determine all natural numbers nnn for which n4−3n2+9n^4 - 3n^2 + 9n4−3n2+9 is a prime number.

1Hint

The investigated expression can surprisingly be factored. Completing the square is a fine technique. Just be careful what we are completing.

2Hint

The key completion is

n4−3n2+9=(n4+9)−3n2=(n2+3)2−6n2−3n2=(n2+3)2−9n2.n^4 - 3n^2 + 9 = (n^4 + 9) - 3n^2 = (n^2+3)^2 - 6n^2 - 3n^2=(n^2+3)^2-9n^2.n4−3n2+9=(n4+9)−3n2=(n2+3)2−6n2−3n2=(n2+3)2−9n2.

Do we see a known formula?

✓Solution

It holds

n4−3n2+9=(n4+9)−3n2=(n2+3)2−6n2−3n2==(n2+3)2−9n2=(n2+3−3n)(n2+3+3n).\begin{gather*} n^4 - 3n^2 + 9 = (n^4 + 9) - 3n^2 = (n^2+3)^2 - 6n^2 - 3n^2=\\=(n^2+3)^2-9n^2 = (n^2+3-3n)(n^2+3+3n). \end{gather*}n4−3n2+9=(n4+9)−3n2=(n2+3)2−6n2−3n2==(n2+3)2−9n2=(n2+3−3n)(n2+3+3n).​

Clearly n2+3+3n>n2+3−3nn^2+3+3n > n^2+3-3nn2+3+3n>n2+3−3n. The second number is positive for n>0n>0n>0, because

n2−3n+3=(n−32)2+34.n^2-3n+3=\left(n-\frac32\right)^2 + \frac 34.n2−3n+3=(n−23​)2+43​.

For the product to be a prime number, since (n2+3−3n)(n2+3+3n)(n^2+3-3n)(n^2+3+3n)(n2+3−3n)(n2+3+3n), then n2+3−3n=1n^2+3-3n=1n2+3−3n=1. By solving the quadratic equation we get n=1n=1n=1 and n=2n=2n=2.

Learned techniques can be nicely put together in this observation:

Problem 6*

Justify that the expression an+bna^n+b^nan+bn can be factored into a product of non-constant expressions with real coefficients for every n>2n>2n>2.

(Let us note that it can be proven that a2+b2a^2+b^2a2+b2 cannot be factored into a product of two non-constant parentheses with real coefficients.)

1Hint

For odd nnn we have a formula. Let's realize that it is even enough for nnn to have an odd divisor. Thanks to this observation, the even case is also simplifying. Can we solve the first even case n=4n=4n=4? Does it help with the rest?

2Hint

If nnn has an odd divisor kkk, where n=mkn=mkn=mk, then we can factor out ak+bka^k+b^kak+bk from an+bna^n+b^nan+bn. It remains to solve numbers that do not have an odd divisor – that is, powers of 2. According to the problem statement n>2n>2n>2, so the smallest interesting power is 4, for such powers we have completing the square. But what about higher powers? Well, those are fortunately divisible by 4.

✓Solution

If nnn has an odd divisor kkk, where n=mkn=mkn=mk, then

an+bn=amk+bmk=(am)k+(bm)k==(am+bm)(am(k−1)−am(k−2)bm+am(k−3)b2m−⋯−ambm(k−2)+bm(k−1)).\begin{gather*} a^n+b^n = a^{mk}+b^{mk} = (a^m)^k+(b^m)^k =\\ = (a^m+b^m)\left(a^{m(k-1)}-a^{m(k-2)}b^{m}+a^{m(k-3)}b^{2m}-\cdots - a^{m}b^{m(k-2)}+b^{m(k-1)}\right). \end{gather*}an+bn=amk+bmk=(am)k+(bm)k==(am+bm)(am(k−1)−am(k−2)bm+am(k−3)b2m−⋯−ambm(k−2)+bm(k−1)).​

Otherwise, nnn is a power of 2 and thanks to n>2n>2n>2 it is divisible by 4, so n=4tn=4tn=4t. Then

a4t+b4t=(a2t)2+(b2t)2=(a2t+b2t)2−2a2tb2t==(a2t+b2t−2 atbt)(a2t+b2t+2 atbt)==(a2t−2 atbt+b2t)(a2t+2 atbt+b2t).\begin{gather*} a^{4t}+b^{4t} =(a^{2t})^{2}+(b^{2t})^{2} =(a^{2t}+b^{2t})^{2}-2a^{2t}b^{2t}=\\ =\left(a^{2t}+b^{2t}-\sqrt2\,a^{t}b^{t}\right)\left(a^{2t}+b^{2t}+\sqrt2\,a^{t}b^{t}\right)=\\ =\left(a^{2t}-\sqrt2\,a^{t}b^{t}+b^{2t}\right)\left(a^{2t}+\sqrt2\,a^{t}b^{t}+b^{2t}\right). \end{gather*}a4t+b4t=(a2t)2+(b2t)2=(a2t+b2t)2−2a2tb2t==(a2t+b2t−2​atbt)(a2t+b2t+2​atbt)==(a2t−2​atbt+b2t)(a2t+2​atbt+b2t).​

A few more harder problems for practice:

Problem 7*

Factor 2a2b2+2b2c2+2c2a2−a4−b4−c42a^2b^2+2b^2c^2+2c^2a^2-a^4-b^4-c^42a2b2+2b2c2+2c2a2−a4−b4−c4 into a product of four non-constant parentheses.

1Hint

Notice that 2a2b2−a4−b42a^2b^2-a^4-b^42a2b2−a4−b4 appears in the expression, which is equal to −(a2−b2)2-(a^2-b^2)^2−(a2−b2)2. The key trick is to combine it with the rest of the expression using *another* completion to a square, where one of these 'squares' will be −(a2−b2)2-(a^2-b^2)^2−(a2−b2)2.

2Hint

The second sought 'square' will be −c4-c^4−c4, as it holds: −(a2−b2)2−c4=−(a2−b2+c2)2+2(a2−b2)c2-(a^2-b^2)^2 - c^4 = -(a^2-b^2+c^2)^2 + 2(a^2-b^2)c^2−(a2−b2)2−c4=−(a2−b2+c2)2+2(a2−b2)c2. That fits quite well with the rest of the expression.

✓Solution

First we notice 2a2b2−a4−b42a^2b^2-a^4-b^42a2b2−a4−b4 in the expression and create a square:

2a2b2+2b2c2+2c2a2−a4−b4−c4=−(a2−b2)2−c4+2b2c2+2c2a2.2a^2b^2+2b^2c^2+2c^2a^2-a^4-b^4-c^4 = -(a^2-b^2)^2 - c^4 + 2b^2c^2 + 2c^2a^2.2a2b2+2b2c2+2c2a2−a4−b4−c4=−(a2−b2)2−c4+2b2c2+2c2a2.

Now we apply completing the square to the first two terms, specifically we complete −(x2+y2)-(x^2+y^2)−(x2+y2) for x=a2−b2x=a^2-b^2x=a2−b2 and y=c2y=c^2y=c2:

−(a2−b2)2−c4+2b2c2+2c2a2==−((a2−b2)+c2)2+2(a2−b2)c2+2b2c2+2c2a2==−(a2−b2+c2)2+(2a2c2−2b2c2)+2b2c2+2c2a2==−(a2−b2+c2)2+4a2c2==(2ac)2−(a2−b2+c2)2.\begin{gather*} -(a^2-b^2)^2 - c^4 + 2b^2c^2 + 2c^2a^2= \\ = -((a^2-b^2)+c^2)^2 + 2(a^2-b^2)c^2 + 2b^2c^2 + 2c^2a^2= \\ = -(a^2-b^2+c^2)^2 + (2a^2c^2 - 2b^2c^2) + 2b^2c^2 + 2c^2a^2= \\ = -(a^2-b^2+c^2)^2 + 4a^2c^2= \\ = (2ac)^2 - (a^2-b^2+c^2)^2. \end{gather*}−(a2−b2)2−c4+2b2c2+2c2a2==−((a2−b2)+c2)2+2(a2−b2)c2+2b2c2+2c2a2==−(a2−b2+c2)2+(2a2c2−2b2c2)+2b2c2+2c2a2==−(a2−b2+c2)2+4a2c2==(2ac)2−(a2−b2+c2)2.​

We can easily factor this expression by repeatedly finding squares and using the formula for the difference of squares:

(2ac−(a2−b2+c2))(2ac+(a2−b2+c2))==(b2−(a2−2ac+c2))((a2+2ac+c2)−b2)==(b2−(a−c)2)((a+c)2−b2)==(b−(a−c))(b+(a−c))⋅((a+c)−b)((a+c)+b)==(a+b+c)(a+b−c)(a−b+c)(−a+b+c).\begin{gather*} (2ac - (a^2-b^2+c^2))(2ac + (a^2-b^2+c^2)) = \\ = (b^2 - (a^2-2ac+c^2))((a^2+2ac+c^2)-b^2)= \\ = (b^2 - (a-c)^2)((a+c)^2 - b^2)= \\ = (b-(a-c))(b+(a-c)) \cdot ((a+c)-b)((a+c)+b)= \\ = (a+b+c)(a+b-c)(a-b+c)(-a+b+c). \end{gather*}(2ac−(a2−b2+c2))(2ac+(a2−b2+c2))==(b2−(a2−2ac+c2))((a2+2ac+c2)−b2)==(b2−(a−c)2)((a+c)2−b2)==(b−(a−c))(b+(a−c))⋅((a+c)−b)((a+c)+b)==(a+b+c)(a+b−c)(a−b+c)(−a+b+c).​

Let us note that we actually practically reconstructed Heron's† formula. For the area SSS of a triangle with sides a,b,ca,b,ca,b,c, it holds

16S2=2a2b2+2b2c2+2c2a2−a4−b4−c4.16S^2 = 2a^2b^2+2b^2c^2+2c^2a^2-a^4-b^4-c^4.16S2=2a2b2+2b2c2+2c2a2−a4−b4−c4.

This formula is usually presented in a computationally more acceptable form

S=s(s−a)(s−b)(s−c),wheres=a+b+c2.S = \sqrt{s(s-a)(s-b)(s-c)}, \qquad\text{where}\qquad s=\frac{a+b+c}{2}.S=s(s−a)(s−b)(s−c)​,wheres=2a+b+c​.

Verify yourselves that this form is equivalent to our proven identity

16S2=2a2b2+2b2c2+2c2a2−a4−b4−c4=(a+b+c)(a+b−c)(a−b+c)(−a+b+c).16S^2=2a^2b^2+2b^2c^2+2c^2a^2-a^4-b^4-c^4=(a+b+c)(a+b-c)(a-b+c)(-a+b+c).16S2=2a2b2+2b2c2+2c2a2−a4−b4−c4=(a+b+c)(a+b−c)(a−b+c)(−a+b+c).

Problem 8*

For which natural numbers nnn is the number n4+4nn^4 + 4^nn4+4n a prime number?

1Hint

The investigated expression resembles the Sophie-Germain identity. Try to fit it in there. Maybe it will be necessary to analyze some cases.

2Hint

To be able to use Sophie-Germain, we need 4n4^n4n to be in the form 4b44b^44b4. This is certainly true for odd nnn, because then

4n=4⋅4n−1=4⋅22(n−1)=4⋅(2n−12)4.4^n = 4 \cdot 4^{n-1} = 4 \cdot 2^{2(n-1)} = 4 \cdot \left(2^{\frac{n-1}{2}}\right)^4.4n=4⋅4n−1=4⋅22(n−1)=4⋅(22n−1​)4.

On the other hand, the case of even nnn is again evidently non-prime.

✓Solution

We will analyze two cases according to the parity of nnn.

  • If nnn is even, then the number n4+4nn^4+4^nn4+4n is clearly divisible by 4, so it is not a prime number.
  • If nnn is odd, then notice that:
    4n=4⋅4n−1=4⋅22(n−1)=4⋅(2(n−1)/2)4.4^n = 4 \cdot 4^{n-1} = 4 \cdot 2^{2(n-1)} = 4 \cdot \left(2^{(n-1)/2}\right)^4.4n=4⋅4n−1=4⋅22(n−1)=4⋅(2(n−1)/2)4.
    Our expression thus has the form a4+4b4a^4+4b^4a4+4b4 for a=na=na=n, b=2n−12b=2^{\frac{n-1}2}b=22n−1​. Thus we can use the Sophie-Germain identity
    a4+4b4=(a2+2b2−2ab)(a2+2b2+2ab).a^4+4b^4=(a^2+2b^2-2ab)(a^2+2b^2+2ab).a4+4b4=(a2+2b2−2ab)(a2+2b2+2ab).
    For this product to be a prime number, one of the factors must be equal to 1. The second factor is clearly greater than 1 for every a,b≥1a,b \ge 1a,b≥1. Let's analyze the first factor, which after completing to a square is equal to:
    a2+2b2−2ab=(a−b)2+b2.a^2+2b^2-2ab=(a-b)^2+b^2.a2+2b2−2ab=(a−b)2+b2.
    For this to be equal to 1, we must have a=b=1a=b=1a=b=1, so n=1n=1n=1. Then indeed n4+4n=5n^4+4^n=5n4+4n=5 is a prime number.

The only solution is therefore n=1n=1n=1.

2.4Completing the cube

Finally, we will show a non-traditional technique: besides completing to a square, one can perform completing to a cube. This means that if we have a3+b3a^3+b^3a3+b3, instead of directly applying the factorization formula, we can use

a3+b3=(a+b)3−3ab(a+b).a^3 + b^3 = (a+b)^3 - 3ab(a+b).a3+b3=(a+b)3−3ab(a+b).

We will demonstrate this on an example:

Example 3

Factor a3+b3+c3−3abca^3+b^3+c^3-3abca3+b3+c3−3abc.

✓Solution

Using completing to a cube we have

a3+b3+c3−3abc=(a+b)3−3ab(a+b)+c3−3abc=(a+b)3+c3−3ab(a+b+c)=(a+b+c)((a+b)2−(a+b)c+c2)−3ab(a+b+c)=(a+b+c)((a+b)2−(a+b)c+c2−3ab)=(a+b+c)(a2+2ab+b2−ac−bc+c2−3ab)=(a+b+c)(a2+b2+c2−ab−bc−ca).\begin{align*} a^3 + b^3 + c^3 - 3abc &= \\ (a+b)^3 - 3ab(a+b) + c^3 - 3abc &= \\ (a+b)^3 + c^3 - 3ab(a+b+c) &= \\ (a+b+c)((a+b)^2 - (a+b)c + c^2) - 3ab(a+b+c) &= \\ (a+b+c)((a+b)^2 - (a+b)c + c^2 - 3ab) &= \\ (a+b+c)(a^2 + 2ab + b^2 - ac - bc + c^2 - 3ab) &= \\ (a+b+c)(a^2 + b^2 + c^2 - ab - bc - ca). \end{align*}a3+b3+c3−3abc(a+b)3−3ab(a+b)+c3−3abc(a+b)3+c3−3ab(a+b+c)(a+b+c)((a+b)2−(a+b)c+c2)−3ab(a+b+c)(a+b+c)((a+b)2−(a+b)c+c2−3ab)(a+b+c)(a2+2ab+b2−ac−bc+c2−3ab)(a+b+c)(a2+b2+c2−ab−bc−ca).​======​

This factorization is very interesting in itself, as it allows us to easily prove an inequality:

Theorem 3

Let a,b,ca,b,ca,b,c be real numbers for which a+b+c≥0a+b+c \ge 0a+b+c≥0. Then

a3+b3+c3≥3abc,a^3+b^3+c^3 \ge 3abc,a3+b3+c3≥3abc,

where equality occurs if and only if a+b+c=0a+b+c=0a+b+c=0 or a=b=ca=b=ca=b=c.

Proof

We will use our already known factorization

a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca).a^3+b^3+c^3 - 3abc = (a+b+c)(a^2+b^2+c^2-ab-bc-ca).a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca).

Since a+b+c≥0a+b+c \ge 0a+b+c≥0, it suffices to prove a2+b2+c2≥ab+bc+caa^2+b^2+c^2 \ge ab+bc+caa2+b2+c2≥ab+bc+ca. This looks tempting from the perspective of completing to a square, for example, we can try to complete a2−aba^2-aba2−ab to a square. However, I will reveal that this will not lead to the goal. The trick to proving this inequality is to multiply it by two and prove the equivalent inequality

2a2+2b2+2c2≥2ab+2bc+2ca.2a^2+2b^2+2c^2 \ge 2ab+2bc+2ca.2a2+2b2+2c2≥2ab+2bc+2ca.

It seems we haven't helped ourselves. However, another trick is to split 2a22a^22a2 as a2+a2a^2+a^2a2+a2. After suitable rearranging of terms we then have

a2+a2+b2+b2+c2+c2−2ab−2bc−2ca=(a2−2ab+b2)+(b2−2bc+c2)+(c2−2ac+a2)=(a−b)2+(b−c)2+(c−a)2.\begin{align*} a^2+a^2+b^2+b^2+c^2+c^2-2ab-2bc-2ca &= \\ (a^2-2ab+b^2)+(b^2-2bc+c^2)+(c^2-2ac+a^2) &=\\ (a-b)^2 + (b-c)^2 + (c-a)^2. \end{align*}a2+a2+b2+b2+c2+c2−2ab−2bc−2ca(a2−2ab+b2)+(b2−2bc+c2)+(c2−2ac+a2)(a−b)2+(b−c)2+(c−a)2.​==​

Since this last expression is certainly non-negative, the proof of the inequality is finished. Equality occurs if and only if the first parenthesis a+b+ca+b+ca+b+c is zero or the second parenthesis a2+b2+c2−ab−bc−caa^2+b^2+c^2-ab-bc-caa2+b2+c2−ab−bc−ca is zero. From the proof of its non-negativity, we see that it is exactly when a−b=0a-b=0a−b=0, b−c=0b-c=0b−c=0, c−a=0c-a=0c−a=0, i.e., when a=b=ca=b=ca=b=c. We are done.

3What to remember

3.1Techniques

  • We look for differences/sums of powers so we can use an+bna^n+b^nan+bn and an−bna^n-b^nan−bn
  • We check when the expression is zero, which helps us factor correctly
  • We complete to a square/cube. We try multiple possibilities of how to do it

3.2Useful formulas

  • Factorization of an−bna^n-b^nan−bn and an+bna^n+b^nan+bn (for odd nnn)
  • Expressions of the form a4+4b4a^4+4b^4a4+4b4 can often be factored, even if it is not evident
  • Non-evident factorization of a3+b3+c3−3abca^3+b^3+c^3-3abca3+b3+c3−3abc and its consequences (Proposition 3)
  • Inequality a2+b2+c2≥ab+bc+caa^2+b^2+c^2 \ge ab+bc+caa2+b2+c2≥ab+bc+ca and its proof
  • Other useful factorizations like
    • a2+2ab+b2=(a+b)2a^2+2ab+b^2=(a+b)^2a2+2ab+b2=(a+b)2
    • a2+b2+c2+2ab+2bc+2ca=(a+b+c)2a^2+b^2+c^2+2ab+2bc+2ca=(a+b+c)^2a2+b2+c2+2ab+2bc+2ca=(a+b+c)2
    • etc, there are no limits to the imagination of problem authors...

Comments

Obsah

  • 1Introduction
  • 2Theory
  • 2.1Difference and sum of powers formulas
  • 2.2Grouping
  • 2.3Completing the square
  • 2.4Completing the cube
  • 3What to remember
  • 3.1Techniques
  • 3.2Useful formulas
  • Comments
MathComps LogoMathComps

The long-term vision of the project is to create a platform for beginners and advanced solvers of mathematical competitions, their tutors, and all supporters.

Navigation

  • Problems
  • Handouts
  • Guide

Project

  • About
  • Sponsors

© 2026 MathComps•Patrik Bak•Privacy and terms

MathComps LogoMathComps
ProblemsHandoutsGuideNews
Sign in