How to solve a system of two non-linear equations symbolically
Show older comments
I have the following equations:


where
is a constant. I want to find both
and
as a function of A. I tried solving it symbolically, which does give a result, but I do not know how to interpret or simplify it.
is a constant. I want to find both syms L0
syms L1
syms A
a=2/3;
[L0 L1]= solve(L0 -1 +a*L1^(a-1) -a*A*L0^(a-1)==0, L1 -1 -a*L1^(a-1) +a*A*L0^(a-1)==0)
Plotting the Solution numerically worked with the following code, and led to the result I expected, but do you have an idea how I could get a symbolical solution (or approximation if necessary), for the variables
and
as a function of A? I'd need it to do further calculations (by hand).
Thanks a lot, your help is appreciated!
Accepted Answer
More Answers (1)
darova
on 18 Jun 2019
Use matlabFunction() to make function handle from symboliv expression
L0 = matlabFunction(L0);
L1 = matlabFunction(L1);
A = 0.5:0.01:2;
plot(A,L0(A),A,L1(A))
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!