Given quadratic equation how are the integer solutions found?

In summary: Yes, you have.In summary, the equation has two integer solutions (1043 and 1110) when x=1043 and y=1110.
  • #1
curiouschris
147
0
Not homework but given the question it probably fits here best

Given the following equation
$$x^2+138x+317=y^2$$
How do you find the integer solutions?

For example wolframalpha has the solutions. but I cannot see how they are derived
http://www.wolframalpha.com/input/?i=x^2+138x+317=y^2

By completing the squares and setting [itex]y[/itex] to [itex]0[/itex] I get the x intercepts

$$x^2+138x+317=y^2$$ ... $$x+69=+/-sqrt(4444)$$ $$x=-69+/-sqrt(4444)= -2.34\ or\ -135.66$$
But I don't understand how to take it further!

How do I calculate the integer solutions that WolframAlpha shows?
 
Physics news on Phys.org
  • #2
curiouschris said:
Not homework but given the question it probably fits here best

Given the following equation
$$x^2+138x+317=y^2$$
How do you find the integer solutions?

For example wolframalpha has the solutions. but I cannot see how they are derived
http://www.wolframalpha.com/input/?i=x^2+138x+317=y^2

By completing the squares and setting [itex]y[/itex] to [itex]0[/itex] I get the x intercepts

$$x^2+138x+317=y^2$$ ... $$x+69=+/-sqrt(4444)$$ $$x=-69+/-sqrt(4444)= -2.34\ or\ -135.66$$
But I don't understand how to take it further!

How do I calculate the integer solutions that WolframAlpha shows?
It looks like you completed the square correctly.

After completing the square, you can write the equation as:
##\displaystyle\ (x+69)^2-y^2=4444 \ ##​

Do you recognize that equation?
 
  • #3
SammyS said:
It looks like you completed the square correctly.

After completing the square, you can write the equation as:
##\displaystyle\ (x+69)^2-y^2=4444 \ ##​

Do you recognize that equation?
Hi Sammy

No I don't recognise it. As explained this is not homework just personal research. From my research it looks like Fermat's theorem.
So...
$$(x+69)^2-y^2 = (x+69+y)(x+69-y)=4444$$
Is that correct?
My problem is I can't make sense of the 4444! The actual n value should be 1111 and I am looking to only solve it at the simple factor of [itex]1111 * 1[/itex]

I seem to have missed a step but I don't know what that step is :(

Do I divide both sides by 4? and where did the 4 come from...
 
  • #4
curiouschris said:
Hi Sammy

No I don't recognise it. As explained this is not homework just personal research. From my research it looks like Fermat's theorem.
So...
$$(x+69)^2-y^2 = (x+69+y)(x+69-y)=4444$$
Yes, that's what you needed to do. You have two integer factors on the left. How can they lead to the number on the right? There are only so many possibilities.
 
  • #5
harupex is better prepared to work with you on this than I am.

I just wanted to get you started.
 
  • #6
haruspex said:
Yes, that's what you needed to do. You have two integer factors on the left. How can they lead to the number on the right? There are only so many possibilities.

So

$$(x+69)2−y2=(x+69+y)(x+69−y)= 4444 = 4 * 1111 = 1 * 4444$$

is valid and for 1 solution I just need to find combinations of [itex]x[/itex] and [itex]y[/itex] where [itex]x+y=-65[/itex] and [itex]x-y=1042[/itex]?

Hmmm ok it makes my next problem a little harder I need to code that as an excel macro
 
  • #7
curiouschris said:
So
$$(x+69)2−y2=(x+69+y)(x+69−y)= 4444 = 4 * 1111 = 1 * 4444$$
Yes, but what about other factorisations?
curiouschris said:
I just need to find combinations of [itex]x[/itex] and [itex]y[/itex] where [itex]x+y=-65[/itex] and [itex]x-y=1042[/itex]?
I don't follow. Where are you getting those numbers from?
curiouschris said:
Hmmm ok it makes my next problem a little harder I need to code that as an excel macro
Not sure how to factorise using Excel. Google for it.
 
  • #8
haruspex said:
Yes, but what about other factorisations?

I don't follow. Where are you getting those numbers from?

Not sure how to factorise using Excel. Google for it.

The numbers are from the factors [itex]4[/itex] and [itex]1111[/itex] which have the product [itex]4444[/itex]

[tex](x+y+69)=4=(x+y)=4-69=-65\ and\ (x-y+69)=4=(x-y)=1111-69=1042[/tex]
Isn't this correct? If not then I have missed something.

In this instance I am only interested in the largest number which in this case is [itex]1111[/itex].
 
  • #9
curiouschris said:
The numbers are from the factors [itex]4[/itex] and [itex]1111[/itex] which have the product [itex]4444[/itex]

[tex](x+y+69)=4=(x+y)=4-69=-65\ and\ (x-y+69)=4=(x-y)=1111-69=1042[/tex]
Isn't this correct? If not then I have missed something.

In this instance I am only interested in the largest number which in this case is [itex]1111[/itex].
Ok, I see where you get those numbers, but they won't give you integer solutions.
Think about the parities of the two terms on the left. Can x+y be odd but x-y even?
 
  • #10
There are more possible factorizations of 4444. Some of them will lead to integer solutions.
 
  • #11
haruspex said:
Ok, I see where you get those numbers, but they won't give you integer solutions.
Think about the parities of the two terms on the left. Can x+y be odd but x-y even?

Oops an erroneous [itex]=4[/itex] in that lot.
Never thought about odds and evens. Like signs its something I always forget :( so the sum of an odd and an even can never be an even
[tex](x-y+69)=2=(x-y)=2-69=-67\ and\ (x+y+69)=2222=(x+y)=2222-69=2153[/tex]
Is that better?

So working that through
[tex]( 2153 - 67 )/2 = 1043[/tex]
[tex]( 2153 - 1043 ) = 1110[/tex]
so 1 possible solution is
[tex]x=1043: y=1110[/tex]

Have I done this correctly?
 
  • #12
curiouschris said:
Oops an erroneous [itex]=4[/itex] in that lot.
Never thought about odds and evens. Like signs its something I always forget :( so the sum of an odd and an even can never be an even
[tex](x-y+69)=2=(x-y)=2-69=-67\ and\ (x+y+69)=2222=(x+y)=2222-69=2153[/tex]
Is that better?

So working that through
[tex]( 2153 - 67 )/2 = 1043[/tex]
[tex]( 2153 - 1043 ) = 1110[/tex]
so 1 possible solution is
[tex]x=1043: y=1110[/tex]

Have I done this correctly?
Yes, that looks right. Earlier you said you were only interested in the largest number, but I'm not sure what you meant by that. Do you mean the largest possible value of x or y?
 
  • #13
Thanks haruspex for all your help, Sammys and mfb too.

haruspex said:
Yes, that looks right. Earlier you said you were only interested in the largest number, but I'm not sure what you meant by that. Do you mean the largest possible value of x or y?

The largest integer number I am interested in is a semiprime. In this case the semiprime is 1111. That's why 4444 threw me. Why did the equation complete to 4444 when I was actually thinking it should have completed to 1111?

Its starting to make sense to me why by completing the squares I got a number different from what I was expecting. I know I am a long way from complete understanding.

Being a semiprime I know that factoring (when its large enough) its only two prime factors is computationally expensive. so I am trying to avoid that. The answers I managed to derive above with your help are exactly what I am looking for.
 
  • #14
$$(x-y+69)=2=(x-y)=2-69=-67\ and\ (x+y+69)=2222=(x+y)=2222-69=2153$$
Be careful with equal signs. This would imply 2=-67 and 2222=2153 which is clearly wrong.

curiouschris said:
Being a semiprime I know that factoring (when its large enough) its only two prime factors is computationally expensive.
Yes, if your factors have more than 20-25 digits it starts to take some time. Factorizing 1111 is trivial.
 
  • #15
mfb said:
$$(x-y+69)=2=(x-y)=2-69=-67\ and\ (x+y+69)=2222=(x+y)=2222-69=2153$$
Be careful with equal signs. This would imply 2=-67 and 2222=2153 which is clearly wrong.
Haha I see what you mean. I'll be more careful next time thru
 

1. How do you determine if a quadratic equation has integer solutions?

One way to determine if a quadratic equation has integer solutions is by using the discriminant. If the discriminant, b^2-4ac, is a perfect square, then the equation has integer solutions. If the discriminant is not a perfect square, then the equation does not have integer solutions.

2. What is the general method for finding integer solutions to a quadratic equation?

The general method for finding integer solutions to a quadratic equation is by using factoring or the quadratic formula. Factoring involves rewriting the equation in the form of (x+a)(x+b)=0, where a and b are integers. The solutions can then be found by setting each factor equal to 0. The quadratic formula, x = (-b±√(b^2-4ac))/2a, can also be used to find integer solutions by plugging in the values of a, b, and c from the equation.

3. Can a quadratic equation have more than two integer solutions?

No, a quadratic equation can only have a maximum of two integer solutions. This is because a quadratic equation is a polynomial of degree two, meaning it can have a maximum of two roots. If the equation has more than two integer solutions, it is not a quadratic equation.

4. Are there any other methods for finding integer solutions to a quadratic equation?

Yes, besides factoring and using the quadratic formula, there are other methods for finding integer solutions to a quadratic equation. These include completing the square and graphing the equation to find the intersection points with the x-axis. However, these methods may not always result in integer solutions.

5. Is it possible for a quadratic equation to have no integer solutions?

Yes, it is possible for a quadratic equation to have no integer solutions. This occurs when the discriminant is not a perfect square and the solutions involve complex numbers. It can also occur when the equation has irrational solutions, meaning the solutions cannot be expressed as a ratio of two integers.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
5
Views
684
  • Precalculus Mathematics Homework Help
Replies
12
Views
2K
  • Precalculus Mathematics Homework Help
Replies
23
Views
2K
  • Precalculus Mathematics Homework Help
Replies
20
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
917
  • Precalculus Mathematics Homework Help
Replies
1
Views
778
  • Precalculus Mathematics Homework Help
Replies
7
Views
731
  • Precalculus Mathematics Homework Help
Replies
3
Views
999
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
Back
Top