How Do You Complete the Square for 2kx^2 - (k+1)x + 4?

AI Thread Summary
The discussion focuses on solving the quadratic equation 2kx^2 - (k+1)x + 4 by completing the square. Participants clarify the importance of correctly expanding binomials and maintaining proper notation, as several errors were identified in the initial attempts. The conversation also highlights the differences between using the quadratic formula and completing the square, with emphasis on the need for precision in mathematical expressions. Ultimately, the correct approach involves careful manipulation of terms to arrive at the solution, ensuring that all steps adhere to algebraic principles. The thread concludes with a better understanding of the process and common pitfalls in solving quadratic equations.
autodidude
Messages
332
Reaction score
0

Homework Statement


Solve 2kx^2 - (k+1)x + 4 by completing the square


Homework Equations



2kx^2 - (k+1)x + 4

The Attempt at a Solution



What I have so far:

-> x^2 - (k+1/2k)x + 4/2k = 0

-> x^2 - (k+1/2k)x + ((k+1/2k)/2)^2 - ((k+1/2k/2)^2 + 2k = 0

-> x^2 - (k+1/2k)x + (k+1/4k)^2 - (k+1/4k)^2 + 2k = 0

-> x^2 - (k+1/2k)x + (k^2+1/16k^2) - (k^2+1/16k^2) + 2k = 0

-> (x - (k+1/4k))^2 = (k^2+1/16k^2) + 2k

What next?

Thank you
 
Physics news on Phys.org
hi autodidude! :smile:

(try using the X2 icon just above the Reply box :wink:)
autodidude said:
-> x^2 - (k+1/2k)x + 4/2k = 0

-> x^2 - (k+1/2k)x + ((k+1/2k)/2)^2 - ((k+1/2k/2)^2 + 2k = 0

what happened to the 4/2k ? :confused:
-> x^2 - (k+1/2k)x + (k+1/4k)^2 - (k+1/4k)^2 + 2k = 0

-> x^2 - (k+1/2k)x + (k^2+1/16k^2) - (k^2+1/16k^2) + 2k = 0

(k+1/4k)2 + 2k isn't (k2+1/16k2)
What next?

take the square-root (±) of both sides :smile:
 
autodidude said:

Homework Equations



2kx^2 - (k+1)x + 4
This is not an equation. This is an expression. I'm assuming that there is a "= 0" at the end.

autodidude said:
What I have so far:

-> x^2 - (k+1/2k)x + 4/2k = 0
I am reading this as
x^2 - \left( k + \frac{1}{2k} \right) x + \frac{4}{2k} = 0
I know what you mean but if you can't use LaTeX, add grouping symbols, at least, like this:
x^2 - ((k+1)/2k)x + 4/2k = 0
It's hard to be precise, but one has to be,

autodidude said:
-> x^2 - (k+1/2k)x + ((k+1/2k)/2)^2 - ((k+1/2k/2)^2 + 2k = 0
4/2k = 2k? That's wrong. You mean
\frac{4}{2k} = \frac{2}{k}

autodidude said:
-> x^2 - (k+1/2k)x + (k+1/4k)^2 - (k+1/4k)^2 + 2k = 0

-> x^2 - (k+1/2k)x + (k^2+1/16k^2) - (k^2+1/16k^2) + 2k = 0
There are still issues with parentheses. Also, from the bolded part, you state:
(k + 1)2 ≠ k2 + 1
... which is wrong. Use the square of a binomial pattern, or FOIL:
(k + 1)2 = k2 + 2k + 1

Fix these errors and repost, please.

EDIT: Beaten to it. :wink:
 
Fixing the silly '2k' error made everything work out! But now I'm having trouble with solving it by using the quadratic formula. It works fine when I just plug in the values as they are but if I simply first to get

x^2 - ((k+1)/2k)x + (2/k) = 0

and then plug THOSE values in, after working it all out, I end up with:

[k+1±√[((k^2+1)/4k^2) - (64/k^2)]] / 4k

There's probably another stupid error in there somewhere but I just don't see it

By the way, the answer is [k+1±√(k^2 +1-32k)] / 4k right? The book says -30k instead of -32k

Thanks a lot and sorry about my imprecision lol
 
You've forgotten to expand (k+1)2 correctly again. If you did, you would get -30k instead of -32k.

By the way, the question asked for you to solve it by completing the square. You've used the quadratic formula, which you could've used right at the start anyway before dividing through by 2k.
 
Mentallic said:
You've forgotten to expand (k+1)2 correctly again. If you did, you would get -30k instead of -32k.

Ah yeah I got it for completing the square now, the stupid mistake above was squaring 4ac, and not expanding (k+1). After reworking everything, I still get:

[k+1±√((k^2+1-30k)/4k^2)]/4k

The only way I can think of getting rid of the 4k^2 is by taking the square root of it first before multiplying the 2k under k+1 with 2. This gives 2k, so I can write it as

[(k+1)±√(k+1-30k)]/2k and that whole expression over another 2 which would give the answer though I'm not sure if that's allowed and exactly what I'm doing really

Mentallic said:
By the way, the question asked for you to solve it by completing the square. You've used the quadratic formula, which you could've used right at the start anyway before dividing through by 2k.

Yeah I know, but since I'm trying to teach myself, I want to be familiar with different situations and so I'm tackling the more difficult looking questions (for me) using different methods

Thanks
 
Last edited:
autodidude said:
[k+1±√((k^2+1-30k)/4k^2)]/4k

I'm not really sure how you got that... It's not right first of all, but then you get the right answer later down the track?

From 2kx^2-(k+1)x+4=0 we have
a=2k
b=-(k+1)
c=4

Now, plugging into the quadratic x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

we get \frac{k+1\pm\sqrt{(k+1)^2-4(2k)(4)}}{2(2k)}

Simplifying, we get x=\frac{k+1\pm\sqrt{k^2-30k+1}}{4k}

If you try to use the quadratic formula by first dividing through by the coefficient of x2, then
a=1
b=\frac{-(k+1)}{2k}
c=\frac{2}{k}

x=\frac{\frac{k+1}{2k}\pm\sqrt{\left(\frac{k+1}{2k}\right)^2-\frac{8}{k}}}{2}

So now you should be able to take out a factor of \frac{1}{2k} from the surd, and bring that down to the denominator of the fraction to get the same result as before.
 
Mentallic said:
I'm not really sure how you got that... It's not right first of all, but then you get the right answer later down the track?

Well I did get this: x=\frac{\frac{k+1}{2k}\pm\sqrt{\left(\frac{k+1}{2k}\right)^2-\frac{8}{k}}}{2}


but then I expanded ((k+1)/2k)^2 to get (k+1)^2/4k^2 and multiplied 8/k by 4k/4k to get 32k/4k^2



Mentallic said:
So now you should be able to take out a factor of \frac{1}{2k} from the surd, and bring that down to the denominator of the fraction to get the same result as before.

Could you elaborate please? (baby steps lol)
 
autodidude said:
Well I did get this: x=\frac{\frac{k+1}{2k}\pm\sqrt{\left(\frac{k+1}{2k}\right)^2-\frac{8}{k}}}{2}


but then I expanded ((k+1)/2k)^2 to get (k+1)^2/4k^2 and multiplied 8/k by 4k/4k to get 32k/4k^2





Could you elaborate please? (baby steps lol)

Yep that's right, so what you have so far is

<br /> x=\frac{\frac{k+1}{2k}\pm\sqrt{\frac{\left(k+1\right)^2}{4k^2}-\frac{32k}{4k^2}}}{2}<br />

Looking at the discriminant only:

\Delta=\frac{\left(k+1\right)^2-32k}{4k^2}

=\frac{k^2+2k+1-32k}{4k^2}

=\frac{k^2-30k+1}{4k^2}

Now what I mean by taking out a factor of \frac{1}{2k} is that \sqrt{4k^2}=2k so we have:

<br /> x=\frac{\frac{k+1}{2k}\pm\frac{\sqrt{k^2-30k+1}}{\sqrt{4k^2}}}{2}<br />

<br /> x=\frac{\frac{k+1}{2k}\pm\frac{\sqrt{k^2-30k+1}}{2k}}{2}<br />

Now we can factor out \frac{1}{2k} from the numerator, and we can move this to the denominator to get our desired result.
 
  • #10
^ Wow that makes perfect sense! Many thanks!
 
Last edited:
  • #11
No worries :smile:
 
  • #12
I edited my post to add this 4 minutes after you replied so I'm just going to post as a new reply :p

Just one last thing, say I didn't have the answer, how do I know not to move the 2k under the 2 before working with the discriminant?
 
  • #13
autodidude said:
how do I know not to move the 2k under the 2 before working with the discriminant?

Eh? I'm at a loss at what you're asking.

You don't need to know the answer, we're just simplifying things. For example, it is customary to rearrange an expression such as

\frac{\left(\frac{a}{b}\right)}{c} into \frac{a}{bc}.

We leave the quadratic formula as x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

but we can equivalently (but less customarily) write it as

x=\frac{\frac{-b}{2}\pm\sqrt{\frac{b^2}{4}-ac}}{a}

or

x=\frac{\frac{-b}{a}\pm\sqrt{\frac{b^2}{a^2}-\frac{4c}{a}}}{2}

etc.

Does this answer your question?
 
  • #14
x=\frac{\frac{k+1}{2k}\pm\sqrt{\left(\frac{k+1}{2k}\right)^2-\frac{8}{k}}}{2}

Basically this, what I did wrong before was moving the 2k denominator under k+1 (on the left) down to get 4k which prevented me from being able to do the factoring here:

<br /> x=\frac{\frac{k+1}{2k}\pm\frac{\sqrt{k^2-30k+1}}{2k}}{2}<br />

...wait, s that what you were saying was wrong in post #7?
 
  • #15
Yes, that's what you did wrong previously.

If you have \frac{\frac{a}{b}+c}{d} it's not valid to convert this into \frac{a+c}{bd} which is what you've essentially done. You first need to drag out of a factor of \frac{1}{b} from the numerator by first multiplying c by b as such,

\frac{\frac{a}{b}+\frac{cb}{b}}{d}=\frac{\frac{1}{b}\left(a+cb\right)}{d}=\frac{a+cb}{bd}
 
  • #16
Gotcha, cheers for putting up with me! :D
 
  • #17
autodidude said:
Gotcha, cheers for putting up with me! :D

Glad I was able to help!
 
Back
Top