Results 1 to 17 of 17

Thread: Solve x + 1/x = 2{resolved}

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    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.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    (x+1)/x=2 => (x+1)=2*x => 2*x-x=1 => x=1

    The first step is to multiply both "sides" (I don't know how to say it) by x...


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Location
    heaven
    Posts
    17
    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)

  5. #5
    Lively Member Something Else's Avatar
    Join Date
    Nov 2003
    Location
    Where Humboldt Intersects Carlson
    Posts
    99
    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
    &nbsp; &nbsp; &nbsp; -2 + (1/(-2)) = -2 - 1/2 = -2.5 <> 2



    da_silvy's the way to go.


    -Lou
    no soap...radio -mendhak

    I understand...just a little...
    No comprende, it's a riddle
    - Wall of Voodoo-Mexican Radio

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by da_silvy
    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
    Can you explain to me how you get from step one (x + 1/x = 2) to step two ((x^2 + 1)/x = 2)?


    Has someone helped you? Then you can Rate their helpful post.

  7. #7
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking 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

  8. #8
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    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

    BOFH Now, BOFH Past, Information on duplicates

    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...

  9. #9
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Ecniv
    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
    Same here... But now that I think of it, I was wrong assuming the parenthesis were there...


    Has someone helped you? Then you can Rate their helpful post.

  10. #10

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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

  11. #11
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275
    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.

  12. #12
    Junior Member
    Join Date
    Apr 2004
    Location
    heaven
    Posts
    17
    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)

  13. #13
    Lively Member Something Else's Avatar
    Join Date
    Nov 2003
    Location
    Where Humboldt Intersects Carlson
    Posts
    99
    Originally posted by beros87
    it has the form of a+b+c=0

    It looks more like aX2+bX+c=0.
    no soap...radio -mendhak

    I understand...just a little...
    No comprende, it's a riddle
    - Wall of Voodoo-Mexican Radio

  14. #14
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275
    it has the form of a+b+c=0
    It's a quadratic.

    Dunno where you're getting: a+b+c = 0 from.

  15. #15
    Junior Member
    Join Date
    Apr 2004
    Location
    heaven
    Posts
    17
    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)

  16. #16
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Firstly apologies for adding to a resolved post, but I think you may (just may) find the code below useful...

    VB Code:
    1. Public Function QuadraticEq(ByVal dblA As Double, dblB As Double, dblC As Double) As String
    2. '---- ax^2 + bx + c = 0
    3.  
    4. '---- x= (-b +/- sqr(b^2-4ac))/2a
    5.  
    6.  
    7.  
    8.     Dim dblAns1 As Double, dblAns2 As Double, dblSqr As Double
    9.    
    10.     If (dblB ^ 2) - (4 * (dblA * dblC)) >= 0 Then dblSqr = Sqr((dblB ^ 2) - (4 * dblA * dblC))
    11.    
    12.     dblAns1 = ((0 - dblB) + dblSqr) / (2 * dblA)
    13.     dblAns2 = ((0 - dblB) - dblSqr) / (2 * dblA)
    14.     QuadraticEq = CStr(dblAns1) & "  :  " & CStr(dblAns2)
    15. End Function

    Vince

    BOFH Now, BOFH Past, Information on duplicates

    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...

  17. #17
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    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
  •  



Click Here to Expand Forum to Full Width