Results 1 to 15 of 15

Thread: Solve for x in log(x)*sin(x) ???

  1. #1

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Solve for x in log(x)*sin(x) ???

    Really don't know how to get this one. Its been a while since I have been in maths stuff. Your help would be appreciated

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Not sure if I got this one...

    doesn't it have to be equal to something to be possible to find X?


    log(x)*sin(x) = ?

  3. #3

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648
    f(x) = log(x)*sin(x)

    so if y = f(x), then what would the value of x be given a particular value of y...

    This is a sine wave that grows in a logarithmic fashion....

  4. #4
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    You can't "solve" a function. You can only graph it. You said it yourself, it's a sine wave that grows logarythmacilly (ok, the spelling went off at the end there(
    Don't pay attention to this signature, it's contradictory.

  5. #5

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648
    With all respect due, a function or any product or sum thereof can be represented on a 2D set of axes. Just like in the graph of

    y = m*x + c (straight line)

    a particular value of y exists for a particular value of x. You can also reverse the situation and say that a particular value of x exists for a particular value of y.

    Hence it is possible to create an expression of y = log(x)*sin(x) in terms of x. f(y) = ???

    I am saying that, if y = 5, then what is the value of x at that point?

    If you break things up a bit and think about what this waveform would look like for a single cycle, it would be a single sine that has an increasing amplitude that increases in a logarithmic fashion. It must surely be possible to find an expression in terms of x that represents y...

  6. #6
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    No such expression exists.

    You'd run into the same problem if you tried to solve

    y = f(x) = x - sin(x)

    for x...

  7. #7
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    your best bet is try some numerical technique... assuming this is used in a computer setting
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

  8. #8
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    This is the sortof thing you need to solve with a loop (since there are infinite answers at any one point) with a lower limit that increases as you go. Basicly, your equation is probably going to cover a page...
    Don't pay attention to this signature, it's contradictory.

  9. #9
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    You can't "solve" a function. You can only graph it. You said it yourself, it's a sine wave that grows logarythmacilly (ok, the spelling went off at the end there(
    You could solve and equation for x. For example, if we had the equation:

    y = m*x+b

    we could solve this for x, giving us:

    (y - b) / m = x

    I tried running the equation through my calculator, and I could not get a solution.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  10. #10
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    I said in my second post that it would be a "weird" formula.

    For example, when I put Solve(Y = sin(x), x) into my calculator (isolate x), it doesn't return arcsin(Y), it gives me back something like:

    x = (-180*(pi*arcsin(y)/180-(2*@n28+1)*pi))/Pi and y <= 1 and y >= -1 or (same basic thing)

    The key here is the (2*@n28+1) where (I think) @n represents all whole numbers.
    Don't pay attention to this signature, it's contradictory.

  11. #11
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Ok... I thought that you meant that we could not solve any equation for x.

    I did not say that my calculator gave me a weird formula for log(x)*sin(x). I said that my calculator gave me nothing back (as in it cannot solve for x.)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  12. #12
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Mine can't either

    All it gives back is:

    ln(x)*sin(x) = ln(10)*y

    Wow, it converted log to ln, then moved the division to the other side.
    Don't pay attention to this signature, it's contradictory.

  13. #13
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    If you knew the number of decimal places you need (and the range of values, though modulus would take care of that), you could use a finite number of terms in the Taylor series for sine and attempt to solve that way. The calculator might be able to help more then.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  14. #14

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648
    Thanks for your responses. It seems like numerical methods are the way then which is OK if a machine is going to do the calculations. It seems that our "normal" mathematics has a few inabilites when trying to derive solutions such as these


  15. #15
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    As some folks have pointed out it's not possible to reverse this equation by analytic methods, therefore numerical methods are the only way (so what?)
    So you must find the zero(s) of
    log(x)*sin(x) - y = 0
    for a particular value of y.
    Numerical methods usually rely on choosing an approppriate initial value for x and repeatedly applying a recursive algorithm whereby new values are found for x that may or may not converge. One thing to bear in mind is, because sin(x) has infinite zeors, so will your equation, so that depending on the particular choice of the initial values you'll get different solutions.

    For this equation I would try a scheme like this:

    1) Split your equation into 2, for instance:
    f(x) = log(x) - y
    g(x) = sin(x)
    2) Select an initial value for x, (call it x0)
    3) Substitute x0 into g(x), i.e., find g(x0) = sin(x0)
    4) Use this value as f(x) and calculate x2 such that
    f(x1) = log(x2) - y
    5) Calculate g(x2)
    6) If abs(x2 - x1) < epsilon you're done (epsilon is the accuracy you want to achieve). Otherwise go to step 4 and so on.
    Last edited by krtxmrtz; Jun 28th, 2004 at 04:36 AM.
    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