1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

X(x-y) = y/z solve for x?

  1. Nov 26, 2013 #1
    1. The problem statement, all variables and given/known data
    Not a homework problem. I'm trying to solve an equation that will help me with some code I'm writing but I'm stuck. I haven't done much math in a while and I'm not sure if I'm missing something or if solving for x here is even possible, though the equation works so... it should be right?


    2. Relevant equations
    The title actually contains the result of one of my solution attempts. The original equation is:

    z = y/x * 1/(x-y)

    This is actually the equation to find the average wait time in a queue in a mono-server system.
    I'm hoping to get an equation I can use to determine the ideal number of servers to use given a desired average wait time (z) and the arrival rate (y). x here should equal the service rate needed to attain the desired average wait time. I know that solving for x with those two numbers won't directly give the number of servers needed but I THINK I'll be able to calculate that using the actual service rate and the value of x.


    3. The attempt at a solution
    As you can see from the title I got to:

    x(x-y) = y/z

    And here I'm stuck because I can't figure out what to do about (x-y). Every solution I've attempted has been vexed by an inability to get that subtraction out of the equation. If there's some algebraic trick I'm not aware of I'd love to pointed in the right direction.
    1. The problem statement, all variables and given/known data

    PS. There's a bug in your preview viewer that causes the template to be appended to the text.
     
  2. jcsd
  3. Nov 26, 2013 #2

    Mark44

    Staff: Mentor

    Expand the left side of your equation and bring the y/z term over to get
    x2 - xy - y/z = 0

    This is a quadratic equation in x. Use the quadratic formula to solve for x in terms of y and z.

    The bug you mentioned has been known for quite a while. I don't know if the owner of the site has attempted to fix it.
     
  4. Nov 27, 2013 #3
    Its working very well, thank you.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: X(x-y) = y/z solve for x?
  1. Solving y=x^x for x (Replies: 8)

  2. Solve for x/y = (Replies: 1)

  3. Solving for x and y (Replies: 3)

Loading...