MATLAB: 3= 2*(e^x – e^-x)

need urgent help

How to solve this equation to find x? Thanks in advance

Best Answer

syms x
eq=3==2*(exp(x)-exp(-x));
sol=vpasolve(eq)
If you solve it with solve command, you will obtain two roots, but one of them is a complex solution. Therefore, I directly solved it with vpasolve. But also see the solution for the solve command. The result is 0.6932.
sol=solve(eq)