Solving equation in terms of symbols

  • Thread starter Thread starter quin
  • Start date Start date
  • Tags Tags
    Symbols Terms
Click For Summary

Discussion Overview

The discussion revolves around solving a complex equation involving multiple variables (x, y, z, m) and finding the variable m expressed as a function of the others. Participants explore methods of solving this equation using software tools like MATLAB and Mathematica, while also considering manual approaches.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses difficulty in obtaining solutions for m using MATLAB and Mathematica, despite expecting four solutions.
  • Another participant suggests that the equation can be solved by hand, indicating it is a quartic equation in m and recommends expanding and grouping terms.
  • A participant claims that Mathematica can find the four exact solutions quickly, but questions why the original poster did not achieve the same result.
  • The original poster mentions receiving a "very large output" error from Mathematica, possibly due to using an older version of the software.
  • Another participant inquires about the version of Mathematica being used, suggesting that software version may affect the ability to solve the equation.
  • The original poster later indicates success in finding a solution using a different version of MATLAB.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to solve the equation, with some advocating for manual methods while others emphasize the capabilities of software tools. The discussion reflects differing experiences with Mathematica and its output.

Contextual Notes

Limitations include the potential impact of software version differences on the ability to solve the equation and the complexity of the output generated by Mathematica.

quin
Messages
50
Reaction score
0
Hi friends
I want to solve an equation which is function of x,y,z,m but i want to find answer like this m=... i want my answer(m) to be a function of x, y, z
but when i solve it in MATLAB or mathematica none of them give me the answer
I know that my equation must have 4 answer for "m" in terms of x , y , z

in code of MATLAB my equation is:

-36 + m* (-64 - 24 *m + m^3) - 16* (2 + m)^2 *cos(x) + 8* cos(2*x) - 28* cos(x - y) + 2 *cos(2 *(x - y)) - 64 *cos(y) - 8* (2* m *(4 + m) + (1 + m)* (7 + m)* cos(x)) *cos(y) + 8 *cos(2*y) - 28* cos(x + y) + 2 *cos(2 *(x + y)) - 64 *cos(z) - 8* (2* m* (4 + m) + (14 + m *(8 + m) + 2 *cos(2*x)) *cos(y) + cos(x) *(14 + m *(8 + m) + 8 *(3 + m) *cos(y) + 2 *cos(2*y))) *cos(z) + 8 *(cos(x) - cos(y))^2 *cos(2*z)==0



i want to solve it and find "m" which is in terms of x,y,z

thank for your guidence
 
Physics news on Phys.org
But surely you can do it by hand?

$$
-36 + m(-64 - 24 m + m^3) - 16(2 + m)^2 \cos(x) + 8\cos(2x) - 28\cos(x - y)
+ 2\cos(2(x - y)) - 64\cos(y)\\ - 8(2m(4 + m) + (1 + m)(7 + m)\cos(x))\cos(y) + 8\cos(2y) - 28\cos(x + y) + 2\cos(2(x + y)) - 64\cos(z)\\ - 8(2m(4 + m) + (14 + m(8 + m) + 2\cos(2x))\cos(y) + (14 + m(8 + m) + 8(3 + m)\cos(y) + 2\cos(2y))\cos(x))\cos(z)\\ + 8(\cos(x) - \cos(y))^2\cos(2z)=0$$... is basically finding the roots of a quartic in m:
http://en.wikipedia.org/wiki/Quartic_function

... expand the brackets and group the terms.
I know it's painful: use a whiteboard or a large window.
 
Mathematica finds the four exact solutions of this in a few seconds.

m/.Solve[-36 + m*(-64 - 24*m + m^3) - 16*(2 + m)^2*Cos[x] + 8*Cos[2*x] - 28*Cos[x - y] + 2*Cos[2*(x - y)] - 64*Cos[y] - 8*(2*m*(4 + m) + (1 + m)*(7 + m)*Cos[x])*Cos[y] + 8*Cos[2*y] - 28*Cos[x + y] + 2*Cos[2*(x + y)] - 64*Cos[z] - 8*(2*m*(4 + m) + (14 + m*(8 + m) + 2*Cos[2*x])*Cos[y] + Cos[x]*(14 + m*(8 + m) + 8*(3 + m)*Cos[y] + 2*Cos[2*y]))*Cos[z] + 8*(Cos[x] - Cos[y])^2*Cos[2*z] == 0, m]

Each is huge and contains a forest of Cos[], but they are the exact solutions.

Just curious, what did you give Mathematica that did not find the solutions?
 
Bill Simpson said:
Mathematica finds the four exact solutions of this in a few seconds.

m/.Solve[-36 + m*(-64 - 24*m + m^3) - 16*(2 + m)^2*Cos[x] + 8*Cos[2*x] - 28*Cos[x - y] + 2*Cos[2*(x - y)] - 64*Cos[y] - 8*(2*m*(4 + m) + (1 + m)*(7 + m)*Cos[x])*Cos[y] + 8*Cos[2*y] - 28*Cos[x + y] + 2*Cos[2*(x + y)] - 64*Cos[z] - 8*(2*m*(4 + m) + (14 + m*(8 + m) + 2*Cos[2*x])*Cos[y] + Cos[x]*(14 + m*(8 + m) + 8*(3 + m)*Cos[y] + 2*Cos[2*y]))*Cos[z] + 8*(Cos[x] - Cos[y])^2*Cos[2*z] == 0, m]

Each is huge and contains a forest of Cos[], but they are the exact solutions.

Just curious, what did you give Mathematica that did not find the solutions?

thanks for your help
I used "solve[]" too
and also now I test the sentence that you write above but mathematica said:
"a very larg output was generated"
maybe its reason is that the version of my mathematica is older than yours.

however finally I could reach to my result with other version of Matlab and it quickly gave answer

thank you friend
 
quin said:
I test the sentence that you write above but mathematica said:
"a very large output was generated"
maybe its reason is that the version of my mathematica is older than yours.

I have never seen that error before. What version are you using?

$Version

will tell you this.
 
Mathematica 7

thanks for your help
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K