Rearranging equation

  • #1

Main Question or Discussion Point

Hi, I have fitted a graph with a function of the form
[tex]y(x) = a + bx^{-2} + cx^{-4} + dx^{-6}[/tex]

I now need to calculate x for a given y and have no idea how to go about rearranging this function.

I need to find x for a lot of y values, so I was hoping to write something in methematica, but I need to understand how to rearrange it before I can implement it in mathematica.
 

Answers and Replies

  • #2
699
6
Hi, I have fitted a graph with a function of the form
[tex]y(x) = a + bx^{-2} + cx^{-4} + dx^{-6}[/tex]

I now need to calculate x for a given y and have no idea how to go about rearranging this function.

I need to find x for a lot of y values, so I was hoping to write something in methematica, but I need to understand how to rearrange it before I can implement it in mathematica.
Numerical techniques can be used, but if you want to solve it algebraically, then you can try the substitution u=1/x2 and then use the usual cubic polynomial algebraic solution to solve for u.

There is a cubic solution cheat sheet at the end of this thread.

https://www.physicsforums.com/showthread.php?t=396973&highlight=cubic+solution
 
  • #3
Thanks for your reply. What numerical technique would you suggest?
 
  • #4
699
6
Thanks for your reply. What numerical technique would you suggest?

I usually start by plotting the function just to visually see how many real roots there might be, then I usually opt for Newton's method as a first try. The plot will allow you to generate some good initial guesses needed for Newton's method.

http://mathworld.wolfram.com/NewtonsMethod.html
 

Related Threads for: Rearranging equation

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
7
Views
3K
  • Last Post
Replies
6
Views
3K
Replies
1
Views
1K
  • Last Post
Replies
3
Views
2K
Top