|
-
Aug 2nd, 2004, 06:52 PM
#1
Thread Starter
Dazed Member
Solve x + 1/x = 2{resolved}
Logically x = 1 but i can't figure this out mathematically.
x + 1/x = 2 --> x^2 + 1 = 2x --> x^2 = 2x - 1 --> x = +/- sqr(2x -1)
What am i doing wrong.
Last edited by Dilenger4; Aug 9th, 2004 at 03:20 PM.
-
Aug 3rd, 2004, 01:00 AM
#2
-
Aug 3rd, 2004, 07:16 AM
#3
Conquistador
that maths is wrong 
x + 1/x = 2
(x^2 + 1)/x = 2
so x^2 + 1 = 2x
x^2 - 2x + 1 = 0
(x-1)^2 = 0
.'. x = 1
-
Aug 3rd, 2004, 10:16 AM
#4
Junior Member
this equation has 2 answers
the first one is x= 1
the second one is x= -2
Programming is an Art, not a Science
Not everything that can be counted counts, and not everything that counts can be counted.(EINSTEIN)
For theose of us who believe in physics, the difference between the present, the past and the future is just an illusion.(EINSTEIN)
-
Aug 3rd, 2004, 01:15 PM
#5
Lively Member
Originally posted by beros87
this equation has 2 answers
You are correct!
The right one: the first one is x= 1
1 + 1/1 = 1 + 1 = 2
and the Wrong One: the second one is x= -2
-2 + (1/(-2)) = -2 - 1/2 = -2.5 <> 2
da_silvy's the way to go.
-Lou
-
Aug 4th, 2004, 01:12 AM
#6
-
Aug 4th, 2004, 03:17 AM
#7
Fanatic Member
ok
Firstly, that step in full is:
x + 1/x = (x^2)/x + 1/x = (x^2 + 1) / x
just putting over common denominator.
Secondly, you error is:
"x = +/- sqr(2x -1)"
That is actually right, just you have x on both sides.
Try putting in x = 1, you get 1 = sqrt(1). If you say 'x = -1', then you no longer have sqrt(1), you have sqrt(-3)!
So, in short, with x^2 = 2x - 1, you put it all on one side and make a quadratic...
OR: you can do this:
2x - x^2 = 1. x(2 - x) = 1.
No, you can also see 1 is the only answer.
sql_lall 
-
Aug 4th, 2004, 09:19 AM
#8
Is that :
(x+1)/x = 2
or
x+ (1/x) = 2
??
I assumed the top one and couldn't see where you were getting the x^2 from...

Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Aug 5th, 2004, 09:22 AM
#9
-
Aug 5th, 2004, 03:23 PM
#10
Thread Starter
Dazed Member
Yeah sorry. I did this x^2 + 1 = 2x --> x^2 = 2x - 1 when i should have did this x^2 + 1 = 2x --> x^2 + 1 - 2x = 0
-
Aug 9th, 2004, 05:09 PM
#11
Hyperactive Member
It's a quadratic though isn't it? I'm sure you can re-arrange it to get it in the form of: ax^2 + bx + c
x + 1/x = 2
(* all terms by x)
x^2 + 1 = 2x
(-2x to get all terms on LHS)
x^2 - 2x + 1 = 0
(factorise to give)
(x-1) (x-1) = 0
So the solution is x = 1.
this equation has 2 answers
the first one is x= 1
the second one is x= -2
I don't see how x= -2 can be right.
-2 + 1/-2 = -2.5
So that doesn't equal 2!!!
Last edited by TheRobster; Aug 9th, 2004 at 07:35 PM.
-
Aug 14th, 2004, 04:35 AM
#12
Junior Member
sorry
the equation is x^2-2x+1=0
it has the form of a+b+c=0
then the first answer is x=1
the second answer is x=c/a=1
i made a mistake and i took the second answer as b/a which is wrong
that's what happens when you have little time
Programming is an Art, not a Science
Not everything that can be counted counts, and not everything that counts can be counted.(EINSTEIN)
For theose of us who believe in physics, the difference between the present, the past and the future is just an illusion.(EINSTEIN)
-
Aug 14th, 2004, 09:35 AM
#13
Lively Member
Originally posted by beros87
it has the form of a+b+c=0
It looks more like aX2+bX+c=0.
-
Aug 14th, 2004, 04:31 PM
#14
Hyperactive Member
it has the form of a+b+c=0
It's a quadratic.
Dunno where you're getting: a+b+c = 0 from.
-
Aug 22nd, 2004, 01:40 PM
#15
Junior Member
i know it has the form of ax^2 +bx+c=0 but i assumed that you already know that
but like in this case if a+b+c=0 then, it is known globally that x=1 or x=c/a
if a-b+c=0 then x=-1 or x=-c/a
these are global exceptions.
Programming is an Art, not a Science
Not everything that can be counted counts, and not everything that counts can be counted.(EINSTEIN)
For theose of us who believe in physics, the difference between the present, the past and the future is just an illusion.(EINSTEIN)
-
Aug 23rd, 2004, 03:46 AM
#16
Firstly apologies for adding to a resolved post, but I think you may (just may) find the code below useful...
VB Code:
Public Function QuadraticEq(ByVal dblA As Double, dblB As Double, dblC As Double) As String
'---- ax^2 + bx + c = 0
'---- x= (-b +/- sqr(b^2-4ac))/2a
Dim dblAns1 As Double, dblAns2 As Double, dblSqr As Double
If (dblB ^ 2) - (4 * (dblA * dblC)) >= 0 Then dblSqr = Sqr((dblB ^ 2) - (4 * dblA * dblC))
dblAns1 = ((0 - dblB) + dblSqr) / (2 * dblA)
dblAns2 = ((0 - dblB) - dblSqr) / (2 * dblA)
QuadraticEq = CStr(dblAns1) & " : " & CStr(dblAns2)
End Function
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Aug 23rd, 2004, 07:46 AM
#17
Fanatic Member
Originally posted by beros87
i know it has the form of ax^2 +bx+c=0 but i assumed that you already know that
but like in this case if a+b+c=0 then, it is known globally that x=1 or x=c/a
if a-b+c=0 then x=-1 or x=-c/a
these are global exceptions.
I wouldn't call that an exception, just a special case. One that is easier to calculate. If it was an exception it would break the rule.
Don't pay attention to this signature, it's contradictory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|