Results 1 to 4 of 4

Thread: how???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    20

    Question how???

    Im searching for an equation that governts the movement of a point such that the sum of its distances from the coordinate axes is minimal.....
    for convinience sake just consider the first quadrant.... plz give an elaborate answer.... im abit simple in maths...

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: how???

    Quote Originally Posted by The Godfather
    Im searching for an equation that governts the movement of a point such that the sum of its distances from the coordinate axes is minimal.....
    for convinience sake just consider the first quadrant.... plz give an elaborate answer.... im abit simple in maths...
    This is what I could come up with...
    Let y=f(x) the equation we're after. Then the sum of distances to be minimized is:
    x2 + y2 = x2 + f(x)2
    If it's to be minimized, then the derivative must be 0:
    0 = d/dx(x2 + f(x)2) = 2x + 2f(x)*f'(x)
    or
    f'(x) = -x/f(x)
    which for convenience can be written as
    dy/dx = -x/y
    and rearranged:
    ydy = -xdx
    and integrated to yield:
    y2/2 = -x2/2 + C
    C being an integration constant which, being arbitrary, can be written as
    y2/2 = -x2/2 + k2/2
    without loss of generality. After rearrangement this finally gives:
    y = Sqrt(k2 - x2)

    HTH
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: how???

    I was about to say that myself.

  4. #4
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: how???

    I think my post above is not correct... What I was trying to minimize in it was not the sum of distances to the x and y axes but the distance to the origin x2 + y2
    so that's why I got the equation of a circle of radius k.

    Actually, the sum of distances to be minimized is:
    x + y = x + f(x)

    Taking the derivatives:
    0 = d/dx(x + f(x)) = 1 + f'(x)
    or
    f'(x) = dy/dx = -1
    or
    dy = -dx
    so that, finally:
    y = C - x
    the equation of a straight line, with C being the integration constant.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

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