How many integer pairs ( x , y ) satisfy x 2 + 4 y 2 − 2 x y − 2 x − 4 y − 8 = 0 ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Another approach could be considering the following expression as a quadratic equation in x, and then for x to be real, its discriminant should be greater than or equal to 0, which bounds the value of y , ie applying D >= 0 gives -1<= y <= 3.
Hence there are only few values of y, and putting each of them, we can get our desired result.
Log in to reply
Yes, that method would get the answer more quickly, but I wanted to present a more general approach in case the coefficients of such a problem made the range of possible y values much larger, and to give a sense of the "geometry" of the equation involved.
I could have also written the ellipse equation as
( ( x − 2 ) − ( y − 1 ) ) 2 + 3 ( y − 1 ) 2 = 1 2 ,
from which we see that the center of the rotated ellipse lies at ( 2 , 1 ) .
Log in to reply
You are right that this is the equation of a rotated ellipse centred at ( 2 , 1 ) , but writing the equation as ( x − y − 1 ) 2 + 3 ( y − 1 ) 2 = 1 2 does not show that.
Moving from coordinates ( x , y ) to coordinates ( x − y − 1 , y − 1 ) is not rotating the system about ( 2 , 1 ) ; it is setting up a set of skew coordinates centred at that point (with the coordinate axes pointing North-South and Northwest-Southeast).
If we rotated the coordinate frame about ( 2 , 1 ) , the equation of the ellipse would end up looking like a X 2 + b Y 2 = c , where X = 2 + d x + e y and Y = 1 + f x + g y where a and b are the eigenvalues of the symmetric matrix ( 1 − 1 − 1 4 ) so a and b would be 2 1 ( 5 ± 1 3 ) , and ( e d ) and ( g f ) are the corresponding unit eigenvectors. This is too much work for this problem!
The quickest way to obtain the equation ( x − y − 1 ) 2 + 3 ( y − 1 ) 2 − 1 2 = 0 is to first complete the square in x , then complete the square in y , with x 2 − 2 x y + 4 y 2 − 2 x − 4 y − 8 = ( x − y − 1 ) 2 + 3 y 2 − 6 y − 9 = ( x − y − 1 ) 2 + 3 ( y − 1 ) 2 − 1 2
Log in to reply
@Mark Hennings – I agree with all your comments. I was being a bit informal with the "geometry" of my solution, as my main goal was just to create a sum of squares in whatever way I could so that I could narrow down the integer options for x , y . As you point out, actually finding the equation in standard form for the rotated ellipse would have been more work than necessary for this particular problem. :)
I too found this approach better.
Yes easier approach!
You missed the 6th solution which is (4,3).
Log in to reply
That solution is mentioned in my initial example, just before I list the remaining 5 solutions.
After multiply with 2, the equation x 2 + 4 y 2 − 2 x y − 2 x − 4 y − 8 = 0 can be written as ( x − 2 ) 2 + ( x − 2 y ) 2 + 4 ( y − 1 ) 2 = 2 4
It is clear now that we need only consider y = − 1 , 0 , 1 , 2 , 3 and finally obtain the six solutions ( x , y ) = ( 0 , − 1 ) , ( 4 , 0 ) , ( − 2 , 0 ) , ( 0 , 2 ) , ( 6 , 2 ) , ( 4 , 3 ) .
Completing the square;
( x − y ) 2 − 2 ( x − y ) + 3 y 2 − 6 y = 8
Here's where the magic happens;
( ( x − y ) 2 − 2 ( x − y ) + 1 ) + 3 ( y 2 − 2 y + 1 ) = 8 + 1 + 3 = 1 2
Which becomes;
( x − y − 1 ) 2 + 3 ( y − 1 ) 2 = 1 2
Now here are the conditions; the possible combinations of x and y needs to make the equation as either 3 2 + 3 ( 1 2 ) = 1 2 or 0 2 + 3 ( 2 2 ) = 1 2
Setting up 6 different system of equations with 2 variables and solving for x and y individually will get you the answer.
Took me almost an hour to get the factoring part right :(
Treating it as a quadratic polynomial in terms of x , the discriminant is 4 ( y + 1 ) 2 − 4 ( 4 y 2 − 4 y − 8 ) = 1 2 ( 3 − y ) ( 1 + y ) , which is only positive for y = − 1 , 0 , 1 , 2 , and 3 . Testing all of these values and using the quadratic formula to see which of these values for y yield integer values for x gives us the 6 solutions: ( 0 , − 1 ) , ( − 2 , 0 ) , ( 3 , 0 ) , ( 0 , 2 ) , ( 6 , 2 ) , ( 4 , 3 ) .
Problem Loading...
Note Loading...
Set Loading...
The given equation is that of a rotated ellipse. Noting that x 2 − 2 x y + 4 y 2 = ( x − y ) 2 + 3 y 2 we'll make an attempt at rewriting the equation in the form
( ( x − y ) − a ) 2 + 3 ( y − b ) 2 = c for some integers a , b , c .
Expanding, this becomes x 2 − 2 x y + y 2 − 2 a x + 2 a y + a 2 + 3 y 2 − 6 b y + 3 b 2 − c = 0
⟹ x 2 + 4 y 2 − 2 x y − 2 a x + ( 2 a − 6 b ) y + ( a 2 + 3 b 2 − c ) = 0 .
Comparing like coefficients between this and the original equation, with the coefficient of x being − 2 a = − 2 we set a = 1 . Next, this will require that the coefficient of y be such that
2 a − 6 b = − 4 ⟹ 6 b = − 4 − 2 a = − 6 ⟹ b = 1 .
Finally, this will in turn require that
a 2 + 3 b 2 − c = 4 − c = − 8 ⟹ c = 1 2 .
So we have factored the original equation to
( x − y − 1 ) 2 + 3 ( y − 1 ) 2 = 1 2 .
Now since we are looking for integer solutions, both of ( x − y − 1 ) and ( y − 1 ) must be integers. For an equation of the form A 2 + 3 B 2 = 1 2 to have integer solutions we will require any of
( A , B ) = ( 0 , 2 ) , ( 0 , − 2 ) , ( 3 , 1 ) , ( 3 , − 1 ) , ( − 3 , 1 ) , ( − 3 , − 1 ) .
Each of these 6 pairs results in a distinct solution pair ( x , y ) .
For example, with ( A , B ) = ( ( x − y − 1 ) , ( y − 1 ) ) = ( 0 , 2 ) we find that
x − y − 1 = 0 , y − 1 = 2 ⟹ x = y + 1 , y = 3 ⟹ ( x , y ) = ( 4 , 3 ) .
The other corresponding solutions for pairs ( A , B ) are ( x , y ) = ( 0 , − 1 ) , ( 6 , 2 ) , ( 4 , 0 ) , ( 0 , 2 ) and ( − 2 , 0 ) .
We can thus conclude that there are 6 ordered integer pairs satisfying the given equation.