How to solve transcendental equations in matlab

Written by thomas bourdin
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to solve transcendental equations in matlab
MATLAB can be used to solve potentially complicated math problems, included transcendental equations. (Jupiterimages/ Images)

MATLAB is a powerful numerical computing program created by The MathWorks. MATLAB is also a high level programming language that allows potentially complicated numerical programs to be written in a short series of steps. MATLAB can also be integrated with programs written in other languages, and MATLAB also has a number of "toolboxes" supported by The MathWorks that can simplify any analyses you do. One such example is the Symbolic Math toolbox, which allows the user to solve algebraic equations, including transcendental equations (that is, an equation which contains a transcendental function, such as sine). This can be accomplished in a few short steps within MATLAB.

Skill level:

Things you need

  • Computer with MATLAB program and Symbolic Math toolbox

Show MoreHide


  1. 1

    Define the variable you would like to solve using the "syms" command. For example, the command

    > syms x;

    defines the variable to be solved as "x". Press enter.

  2. 2

    Write down the equation you wish to solve as a string. This gives

    > s = 'sin(x) = x^3 - 1';

  3. 3

    Use the 'solve' command (contained within the Symbolic Math toolbox) to solve the string 's'. To do this in MATLAB, simply input the command:

    > solve(s);

    This gives the numeric solution to sin(x) = x^3 -1, which is x = 1.24905. This is the solution to the transcendental equation.

Tips and warnings

  • If the right-hand side of the equation you wish to solve is zero, specify the left-hand side only of the equation as a string. If the right-hand side is non-zero, specify the entire equation as a string.
  • Ensure you use proper MATLAB syntax when solving equations within MATLAB.
  • Note that any solutions in MATLAB are only approximate, and are rounded down, depending on the accuracy desired in MATLAB.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.