Any tips on how to solve complicated simultaneous equations?
Show older comments
Hello @anyone who has any advice
I'm super stuck at this simultaneous equation,
By varying ℓ, I'm trying to solve for Φm and 𝑥m, while everything else are constants.

but its so complicated and I don't know how to input these into matrices (AX =B) to solve for inverse A\B.
Any help or advice would be greatly appreciated!!
4 Comments
KSSV
on 31 Jan 2021
Have a look on symbolic toolbox.
Walter Roberson
on 31 Jan 2021
Those are non-linear. There is no hope of solving them using the \ operator.
You do not have matrices in any apparent way.
Are there any constraints that you can give on the constants? Potentially dealing with some complex-valued cases might be ruled out.
David Lee
on 31 Jan 2021
Walter Roberson
on 31 Jan 2021
You are probably going to need to proceed numerically using fsolve() . Subtract one side of each equation from the other, to get a resulting expression that must equal zero. Now fsolve() a function that calculates the two different expressions.
If you use the symbolic toolbox, you can simplify. Solving the first expression for
gives an hyperbolic arc cosine expression that is not unresonably long; you can then substitute that into the second equation to get a single equation in one variable

Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!