Legacy Documentation

Mathematica CalcCenter 1 (2001)

This is documentation for an obsolete product.
Current products and services
 CalculationCenter / Functions / Solvers  /
SolveEquation

  • SolveEquation[ eqns , vars ] attempts to solve an equation or set of equations for the variables vars .
  • Equations are given in the form lhs == rhs .
  • Simultaneous equations can be combined either in a list or with && .
  • A single variable or a list of variables can be specified.
  • SolveEquation[ eqns ] tries to solve for all variables in eqns .
  • Example: SolveEquation[3 x + 9 == 0, x]
  • When there are several solutions, SolveEquation gives a list of them.
  • When a particular root has multiplicity greater than one, SolveEquation gives several copies of the corresponding solution.
  • SolveEquation deals primarily with linear and polynomial equations.
  • SolveEquation gives generic solutions only. It discards solutions that are valid only when the parameters satisfy special conditions.
  • SolveEquation gives {} if there are no possible solutions to the equations.
  • See also: LocateRoot , SolveODE .


    Examples

    Using InstantCalculators

    Here are the InstantCalculators for the SolveEquation function. Enter the parameters for your calculation and click Calculate to see the result.

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=

    Entering Commands Directly

    You can paste a template for this command via the Text Input button on the SolveEquation Function Controller.

    Polynomial equations in one variable

    These are standard formulas for the solutions of normalized quadratic and cubic equations.

    In[3]:=

    Out[3]=

    In[4]:=

    Out[4]=

    Here are two simple equations of higher degree with solutions in terms of powers. They can be rewritten in terms of trigonometric functions that sometimes automatically reduce to radicals.

    In[5]:=

    Out[5]=

    In[6]:=

    Out[6]=

    In[7]:=

    Out[7]=

    Polynomial equations in more than one variable

    Here we solve for x and y .

    In[8]:=

    In[9]:=

    Out[9]=

    Clear the variable definition.

    In[10]:=

    Here we solve two simultaneous algebraic equations.

    In[11]:=

    Out[11]=

    Here are three simultaneous algebraic equations; y and z must be paired up correctly with x .

    In[12]:=

    Out[12]=

    Here SolveEquation returns an empty list, indicating no solution. Every potential solution forces an equation in the parameter z alone, so there are no generic solutions.

    In[13]:=

    Out[13]=

    We can get solutions by solving for z as well as x and y .

    In[14]:=

    Out[14]=

    Equations involving trigonometric or hyperbolic functions, or their inverses

    This is an example using the trigonometric function cosine.

    In[14]:=


    Out[14]=

    Equations involving exponentials and logarithms

    This uses the ordinary mathematical notation for Exp .

    In[15]:=


    Out[15]=

    In[16]:=

    Out[16]=

    In[17]:=

    Out[17]=

    In[18]:=


    Out[18]=

    In[19]:=


    Out[19]=