solve  solve one or more equations

Calling Sequence


solve(equations, variables)


Parameters


equations



equation or inequality, or set or list of equations or inequalities

variables



(optional) name or set or list of names; unknown(s) for which to solve





Basic Information



Description


•

The solve command solves one or more equations or inequalities for their unknowns.



Output


•

If the second argument is a name or set of names, then the solutions to a single equation are returned as an expression sequence. If the second argument is a list, then the solutions are returned as a list.

•

If the second argument is a name or set of names, then the solutions to a set or list of equations are returned as sets of equation sequences. If the second argument is a list, then the solutions are returned as a sorted listlist of equations.

•

If the solve command does not find any solutions, then if the second argument is a name or set of names, then the empty sequence (NULL) is returned and if the second argument is a list, then the empty list is returned. This means that there are no solutions, or the solve command cannot find the solutions. In the latter case, a warning is issued and the global variable _SolutionsMayBeLost is set to true.

•

If the output of the solve command is a piecewisedefined expression, then the assuming command can be used to isolate the desired solution(s). If the output is not piecewisedefined, in particular, if the output is constant, assumptions on the independent variables may be ignored. If there are parameters in the input equations, the solve command will use those assumptions in its computations. See examples below.

•

For higher degree polynomial equations, Maple returns implicit solutions in terms of RootOf.




Examples



Solve an implicit function



In this example, solve is used to express an implicit function in an explicit form

>


 (1) 


Solve a quadratic equation


>


 (2) 


Specifying variables



To ignore parameters, specify the variables for which to solve.

>


 (3) 


Solving linear systems



The solve command can solve linear systems.

>


 (4) 


Solving inequations



The solve command can solve inequations.

>


 (5) 


Using the assuming command to isolate a solution



Assumptions on parameters can be used to get more specific solutions. Note also, the form of the output changes when variables are given in a list.

>


 (6) 
>


 (7) 


Using RootOf expressions as placeholders to solutions of highdegree polynomials



The explicit solutions to highdegree polynomials can be very large, so Maple may return a solution using RootOf expressions as placeholders.

>


 (8) 

Maple may also use RootOf expressions as placeholders when it cannot find an explicit form for the solution of a nonalgebraic equation in one variable.

>


 (9) 


No solutions found



In the following example, solve does not find a solution to the set of equations, and as mentioned above in the Description section, if the second argument variables is a set, the empty sequence is returned.

>



Here, solve does not find a solution to the list of equations. Since more than one variable is received in a list, the empty list is returned.

>


 (10) 



Details



For detailed information including:

•

Complete description of all parameters

•

Complete description of functionality

•

Complete description of output

•

Shortcuts for specifying equations and unknowns

•

Controlling the form and number of solutions returned



See Also


dsolve, eliminate, fsolve, intsolve, LinearAlgebra[LinearSolve], pdsolve, RealDomain, RootOf, singular, solve/details, SolveTools

