Symbolics > Working with Symbolics > To Solve Equations Symbolically
To Solve Equations Symbolically
Type the equation to solve using the Boolean equal to operator. Insert the symbolic evaluation operator, type the keyword solve fully in the placeholder, and then press Enter or click anywhere.
Click to copy this expression
* 
If you type the keyword solve instead of solve fully, the returned solution may be partial, only in numeric form, or a math expression without domain details. Typing the keyword solve fully returns all solutions, including refinement of domain and conditions for formula variables. For example:
PTC Mathcad returns symbolic solutions to the equation, if possible. Otherwise, it returns numeric solutions. If the equation you are trying to solve has more than one solution, PTC Mathcad returns the solutions in a vector, unless the solution is periodic.
To solve an equation whose right-hand side is set to 0, you only need to type the left-hand side of the equation.
Click to copy this expression
If the equation contains more than one variable, specify a comma-separated list of variables you want to solve for after solve.
Click to copy this expression
If your equation includes numbers with decimal points, solve returns a decimal answer.
Click to copy this expression
To solve an equation subject to restrictions on the domain of the variable, for example, solving over the real numbers, use the keyword assume and a modifier with solve.
Click to copy this expression
If an equation has a periodic solution, solve returns a single value from the set of solutions.
Click to copy this expression
To see a more detailed solution, add the modifier fully after solve.
Click to copy this expression
PTC Mathcad returns the solution in terms of a newly generated variable that represents an arbitrary integer. The generated variable is preceded by an underscore to avoid conflicts with other variables you may have defined elsewhere in the worksheet.
To solve a system of equations symbolically, you can create a column vector with each element holding one equation in the system. Then solve using the symbolics operator, specifying a column vector or a comma-separated list of system variables after the solve keyword.
To solve an inequality, use >, <, ≤ , or ≥ in place of =.
You can include constraint equations in a column vector to restrict the solution to a range, for example, y > 0.
Solving systems of equations, inequality equations, or periodic equations may produce some special results that do not have meaning when evaluated numerically.
You can find roots numerically using the root function, solve linear systems numerically using the lsolve function, or solve linear or nonlinear systems using a solve block.
Was this helpful?