Ma · Mathematics

Solve y³ = x³ + 8x² − 6x + 8 for Positive Integers

Published By the 9to5Science editorial team

At a glance

  1. 1. Compare the cubes

    The extra term is positive for positive x, so y must be greater than x.

  2. 2. Set the difference

    Write y = x + d, where d is a positive integer, and expand the difference of cubes.

  3. 3. Bound the difference

    Show that d cannot be 3 or larger; then check d = 1 and d = 2.

  4. 4. Verify the solution

    The only positive-integer pair that satisfies the equation is x = 9 and y = 11.

To solve

y3=x3+8x2−6x+8y^3=x^3+8x^2-6x+8

in positive integers, compare the two cubes rather than searching through possible values. The right-hand side exceeds x3x^3 for every positive integer xx, which forces y>xy>x. Writing their difference as a positive integer gives a short, exhaustive check.

Show that y is larger than x

The extra term is positive because

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

For positive xx, the expression in parentheses is positive. For example, its discriminant is (−3)2−4(4)(4)=−55<0(-3)^2-4(4)(4)=-55<0, and its leading coefficient is positive. Thus y3>x3y^3>x^3. Since xx and yy are positive, the cube function is strictly increasing, so y>xy>x.

Let

d=y−x,d=y-x,

where dd is a positive integer. Then y=x+dy=x+d, and subtracting x3x^3 from both sides gives

(x+d)3−x3=8x2−6x+8.(x+d)^3-x^3=8x^2-6x+8.

Expanding and collecting terms yields

(3d−8)x2+(3d2+6)x+d3−8=0.(3d-8)x^2+(3d^2+6)x+d^3-8=0.

This equation restricts which positive values of dd are possible.

Rule out d ≥ 3

If d≥3d\ge 3, then 3d−8≥13d-8\ge 1, 3d2+6>03d^2+6>0, and d3−8≥19d^3-8\ge 19. Since x>0x>0, every term on the left-hand side is positive. Their sum cannot equal zero. Therefore dd must be either 1 or 2.

This sign argument is the key to making the solution exhaustive: it eliminates all larger gaps between yy and xx at once.

Check the two remaining values

If d=1d=1, the equation becomes

−5x2+9x−7=0,-5x^2+9x-7=0,

or equivalently 5x2−9x+7=05x^2-9x+7=0. Its discriminant is

(−9)2−4(5)(7)=81−140=−59.(-9)^2-4(5)(7)=81-140=-59.

A quadratic with negative discriminant has no real roots, so there is no positive integer solution for d=1d=1.

If d=2d=2, substitution gives

−2x2+18x=0,-2x^2+18x=0,

so −2x(x−9)=0-2x(x-9)=0. The positive solution is x=9x=9. Since y=x+dy=x+d, this gives y=11y=11.

Verify the pair

Substitute x=9x=9 and y=11y=11 into the original equation:

113=1331,11^3=1331,

while

93+8(92)−6(9)+8=729+648−54+8=1331.9^3+8(9^2)-6(9)+8=729+648-54+8=1331.

The pair works, and the preceding cases show that no other positive-integer pair can work. Hence the unique solution is (x,y)=(9,11)(x,y)=(9,11).

Common mistakes

  • Assuming y>xy>x without checking. Establish that the added term is positive first; then strict increase of the cube function gives y>xy>x.
  • Checking only a few values of xx. A numerical search can find (9,11)(9,11) but does not prove uniqueness. The integer difference d=y−xd=y-x makes it possible to rule out every other case.
  • Dropping terms when expanding. The full expansion is (x+d)3−x3=3dx2+3d2x+d3(x+d)^3-x^3=3dx^2+3d^2x+d^3. Keeping all three terms is necessary to obtain the correct equation in xx and dd.
  • Treating d=0d=0 as possible. The added term is strictly positive, so yy cannot equal xx.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.