cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

solve equations symbolically

Marius_P
10-Marble

solve equations symbolically

Hello,

 

I would like to get some help from you in regards to an equation that I would like to solve it symbolically.

Please find attached the file, which is on PTC Mathcad Prime 7.

Please let me know how to improve the equations in order to be able to find a relation for x.

 

Thank you,

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Cornel)

Have you ever considered to use the function polyroots() ?

LucMeekes_0-1687903489959.png

You can go up to order 99.

Success!
Luc

View solution in original post

9 REPLIES 9
Cornel
19-Tanzanite
(To:Marius_P)

Your first expression is nonlinear type (because of that sqrt which has the x variable inside the sqrt):

Cornel_2-1687771085369.png

and therefore  it's not so easy to find out the solutions. I don't think the solution will help you much even if Mathcad or other math software could find the solution for x. Maybe better, give values for the other variables, plot that expression according to x and read from the graphs what interests you.


Your second equation:
Cornel_1-1687771077653.png
is of type:

Cornel_6-1687771467706.png

Cornel_5-1687771268863.png

But, at least Mathcad, cannot find solutions for such equations. Although I don't know if there are closed form solutions for equations of degree > 4. But if I'm wrong with this statement, others can correct me.

 

 

Marius_P
10-Marble
(To:Cornel)

Hello Cornel,

 

Thank you very much for your feedback.

Actually, the 2nd equation is the exactly the 1st one after I eliminated the sqrt and I grupped the terms.

I ploted the transfer function for different values of lm, mvr, ls,cr, and q, and from there can be read x, but I thought that I can get a symbolic formula that I can use in my worst case calculations where the variables of the 6th degree equation varies between a min and max value.

 

Thank you 

Cornel
19-Tanzanite
(To:Marius_P)

Look what the solution looks like for a polynomial of degree 3:
Cornel_0-1687778718228.png

Cornel_2-1687778740047.png
EDIT:
For a polynomial of degree 6 Mathcad probable will think at infinity:

Cornel_3-1687779019371.png

 

 

 

 

 

Cornel
19-Tanzanite
(To:Marius_P)

So, do you want one of the symbolic solutions of that 6th-order equation, and with that symbolic solution to further do some worst case analysis, correct?
Anyway, if you really want to get the  symbolic solutions of that 6th order equation, probably the most appropriate would be to use another math software (for example Wolfram Mathematica, Maple, Matlab) and see if you manage to get the solutions with these softwares. If you don't succeed with these software either, then you have to try something else...another way to achieve what you want to achieve.

Werner_E
25-Diamond I
(To:Marius_P)

As your simplified second equation shows, what you ended up with is a so called bi-cubic equation, which can be transformed to a simple cubic equation by substitution (y=x^2). A cubic equation is solvable symbolically (Cardano formula) and Prime should be able to do so. But as Cornel had shown, even using simple coefficients result in a rather huge expression for the solution (he only showed one of the three possible solutions).

Given the much more complex (not in the sense of non-real) coefficients in your equation, chances are that Prime will(should?) be able to solve that cubic equation but refuses to display the symbolic results as of their size. I haven't tried, but if thats the case you could turn the result in a function in all variables involved and use this function for further calculations.

 

But if you (as I guess) don't really need a symbolic solution but rather want to find the value of F for a given result value of the function Mvrg(), you could define a function using Primes numeric methods, either use a solve block or the root function.

Using a solve block:

Werner_E_2-1687785811932.png

 

The root function can be used in two different ways:

1) by providing a guess value (similar to whats needed when using a solve block)

Werner_E_0-1687784918230.png

2) by providing a range of F-values with a solution in between

Werner_E_1-1687784999102.png

 

You may consider adding n as an additional argument to your function Mvrg() and also to the function get_F()

 

LucMeekes
23-Emerald III
(To:Marius_P)

"Mathcad, cannot find solutions for such equations"...? Correction!

Mathcad (11) can, Prime cannot.

To give you an idea, the solution to

LucMeekes_1-1687801468024.png

is

:

LucMeekes_0-1687801442910.png

Likewise

LucMeekes_2-1687801523276.png

can also be solved, with as result:

LucMeekes_3-1687801553823.png

 

Success!
Luc

Cornel
19-Tanzanite
(To:LucMeekes)

In fact it seems that Mathcad Prime can find the solutions for that equation of 3th degree (of course, not so easy - Mathcad Prime needs to think a little bit), but Mathcad Prime cannot find the solutions for that equation of 6th degree...But as Werner said above, that equation of 6th degree, in this case - fortunately, can be reduced at an equation of 3th degree.

 

It would be interesting to know how one could deduce the solutions for polynomial equations of order 3, 4, 5, 6, when Mathcad can no longer deduce itself...

 

 

LucMeekes
23-Emerald III
(To:Cornel)

Have you ever considered to use the function polyroots() ?

LucMeekes_0-1687903489959.png

You can go up to order 99.

Success!
Luc

Hello Luc,

Actually, I planned to try it.

Thank you,

Announcements

Top Tags