Basic Completing the Square Question

  • Context: Undergrad 
  • Thread starter Thread starter askor
  • Start date Start date
  • Tags Tags
    Square
Click For Summary

Discussion Overview

The discussion revolves around the process of completing the square for quadratic expressions, specifically focusing on the expression ##x^2 - 3x - 7##. Participants explore various methods and conditions under which the results can yield integer values, as well as the general applicability of the quadratic formula.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions how to complete the square in a way that results in integer values, citing the expression ##(x - 1.5)^2 - (\sqrt{9.25})^2## as a non-integer result.
  • Another participant asserts that there is no guarantee of obtaining integer solutions when applying the method of completing the square, noting that solutions can be real but not necessarily integers.
  • Some participants provide alternative forms of the expression, such as ##x^2-3x-7=\left(x-\dfrac{3}{2}-\dfrac{\sqrt{37}}{2}\right)\cdot \left(x-\dfrac{3}{2}+\dfrac{\sqrt{37}}{2}\right)##, emphasizing the presence of square roots and quotients.
  • A participant introduces a general approach to completing the square by selecting any number and forming a square polynomial, suggesting that there are no restrictions on the constants used.
  • Another participant explains the method of completing the square using the formula ##x^2 + bx + c##, emphasizing the addition and subtraction of ##(b/2)^2##.
  • There is a mention of the quadratic formula and its applicability to integers, rational numbers, and real numbers, prompting further exploration of its conditions.

Areas of Agreement / Disagreement

Participants express differing views on whether completing the square can yield integer results, with some asserting that it is not guaranteed while others explore various methods without reaching a consensus on the conditions for integer outcomes.

Contextual Notes

Participants highlight that the presence of square roots and non-integer values complicates the process of completing the square, and there is an acknowledgment of the limitations in achieving integer results based on the specific coefficients of the quadratic expression.

Who May Find This Useful

This discussion may be useful for students and educators interested in algebraic methods, particularly those exploring quadratic equations and the concept of completing the square in various contexts.

askor
Messages
168
Reaction score
9
How do you complete the square of this?:

##x^2 - 3x - 7##

I already worked on this but the result is not integer:

##(x - 1.5)^2 - (\sqrt{9.25})^2##

Is my above work correct?

How do you obtain the result in integer?

How do you complete the square so that the result is integer?

For example:
##x^2 - x - any constant##
##x^2 - 3x - any constant##
##x^2 - 5x - any constant##
##x^2 - 7x - any constant##
##x^2 - 9x - any constant##

and so on, where the magnitude of ##x## is odd.
 
Mathematics news on Phys.org
It is correct, and there is no guarantee for integers. If you apply the method on ##x^2+px+q=0## then you get none, one, or two real solutions. They are usually not integer solutions.

If you are happy and you can guess a solution, say ##a## which satisfies ##a^2+pa+q=0## then you can divide ##(x^2+px+q):(x-a)## by long division and get the other solution (or none, if there is no real solution).
 
fresh_42 said:
...there is no guarantee for integers.

What do you mean?
 
askor said:
What do you mean?
##x^2-3x-7=\left(x-\dfrac{3}{2}-\dfrac{\sqrt{37}}{2}\right)\cdot \left(x-\dfrac{3}{2}+\dfrac{\sqrt{37}}{2}\right)## so there is no way to get rid of the quotient, nor the square root.
 
fresh_42 said:
##x^2-3x-7=\left(x-\dfrac{3}{2}-\dfrac{\sqrt{37}}{2}\right)\cdot \left(x-\dfrac{3}{2}+\dfrac{\sqrt{37}}{2}\right)## so there is no way to get rid of the quotient, nor the square root.

Do you mean ##\frac{\sqrt{7}}{2}##?
 
askor said:
What do you mean?
Let's look at this in the reverse direction. Pick any number, let's call it n, it doesn't have to be an integer. You can make a square polynomial (x-n)2 = x2-2nx+n2 with it.

Now any polynomial with the form x2-2nx+k (for any other constant k) can be expressed as (x-n)2+(k-n2). This is completing the square. There is no need to limit the type of constants allowed.

For example x2+6πx+3/4 = (x+3π)2+3/4-9π2, with n=-3π, k=3/4.
 
No. I meant what I wrote. We have ##x^2-3x-7## and want to compare it with ##(x-a)^2+b=x^2-2ax+a^2+b.## So - as you correctly did - we get
$$
x^2\quad\underbrace{-3}_{=-2a}x\quad\underbrace{-7}_{=a^2+b} \Longrightarrow a=-1.5\text{ and }-7=(1.5)^2+b\text{ or }b=-7-(1.5)^2=-9.25
$$
so ##x^2-3x-7=(x-1.5)^2-9.25## which you had, too.
 
Putting the numeric example into a geometric rectangle & square approach will make the process of Completing The Square, very very clear. If you cannot find this or cannot figure it on your own, say, and someone will provide something.
 
symbolipoint said:
Putting the numeric example into a geometric rectangle & square approach will make the process of Completing The Square, very very clear. If you cannot find this or cannot figure it on your own, say, and someone will provide something.

Yes, please show me, I am interested.
 
  • #11
To complete the square of ##x^2 +bx+c ##, you add and subtract ## (b/2)^2 ##. The important thing is to get ## x^2+bx+c=(x+\frac{b}{2})^2+c-(\frac{b}{2})^2 ##. You usually don't need to put it in the form ## (x+e)^2-d^2 ##.

The ## -d^2 ## term is often better left simply as ##c-(\frac{b}{2})^2 ##.

The ## x^2+bx ## that is at the core of this operation. To make it a square, you add ## (\frac{b}{2})^2 ##.
 
Last edited:
  • #12
You know ##\left( x+a\right) ^{2}=x^{2}+2ax+a^{2}## ?
So to get the ##x## term inside a square of (##x##+ something) your 3 will have to equal ##2a##, so ##a=\dfrac {3}{2}## and the expression is ##\left( x+\dfrac {3}{2}\right) ^{2}-\dfrac {1}{4}## or if preferred
$$\left( x+\dfrac {3}{2}\right) ^{2}-\left( \dfrac {1}{2}\right) ^{2}$$
I wonder at what school you never saw anything like that? :oldsmile:
I know you got it in the end, seen in an exercise on indefinite integration, where you have to get the integrand in the form
$$\dfrac {1}{\sqrt {\left( u^{2}-1\right) }}$$
That and similar problems by the way are in every calculus textbook with a chapter on indefinite integration - one of the half dozen or so standard forms which with their variations and disguises make up the standard forms frequently encountered and that can actually be integrated in terms of standard functions.
 
  • Like
Likes   Reactions: Charles Link
  • #13
askor said:
Yes, please show me, I am interested.
Please try a search on the internet, or especially a search on YouTube.

Here is one which looks ok based on just the thumbnail:


The part YOU want to see begins at about 1:50 on the timeline.
 
  • #14
askor said:
How do you complete the square of this?:

##x^2 - 3x - 7##

I already worked on this but the result is not integer:

##(x - 1.5)^2 - (\sqrt{9.25})^2##

Is my above work correct?

How do you obtain the result in integer?
Here's a question. We have a quadratic equation $$ax^2 + bx + c$$ with up to two solutions given by $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ Does that quadratic formula apply (assuming ##a \ne 0##):

1) For any integers ##a, b, c##.

2) For any rational numbers ##a, b, c##.

3) For any real numbers ##a, b, c##
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K