Advanced Math - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Advanced Math

 

New features and updates in Advanced Math:

• 

Bivariate Limits

• 

Branch Cuts of Mathematical Expressions

• 

Differential Equations

• 

Graph Theory

• 

Intersecting Plane Curves

• 

Linear Inequality Solving

• 

Semialgebraic System Solving

• 

Solving Equations with Branch Cuts

Maple 17 is the result of many thousands of hours of work by talented developers at Maplesoft as well as experts in research labs and universities all around the world. Maple 17 offers numerous advancements in a variety of branches of mathematics that push the frontiers of mathematical knowledge, including ground-breaking achievements in solving new classes of differential equations. Maple 17 also features major advancements in solving systems of equations, introducing new solution methods for polynomial and linear inequalities, as well as new algorithms for finding limits of bivariate rational functions.

 

Maple 17 introduces new packages in Group Theory and Signal Processing, and major updates to Graph Theory, Differential Geometry, Physics and Statistics.  There are also new commands for finding intersecting points in algebraic curves, and updates to many core commands that solve and explore branch cuts in mathematical expressions.

 

Bivariate Limits

Branch Cuts of Mathematical Expressions

Differential Equations

Graph Theory

Intersecting Plane Curves

Linear Inequality Solving

Semialgebraic System Solving

Solving Equations with Branch Cuts

See Also

Bivariate Limits

The limit command has been enhanced for the case of limits of bivariate rational functions. Many such limits that could not be determined previously are now computable. The new algorithm specifically handles the case where the function has an isolated singularity at the limit point.

In Maple 16, the following limit calls would return unevaluated, but they can be computed in Maple 17:

Example 1

Example 2

Example 3

f:=xyx2+y2:

limitf,x=0,y=0

undefined

(1.1)

gx y2x4+y2:

limitg,x=0,y=0

0

(1.2)

hx4+x2+x y2+y2x2x2y+y2:

limith,x=0,y=0

1

(1.3)

 

Let us plot these three functions in the neighborhood of the origin:

pf:=plot3df,x=0.1..0.1,y=0.1..0.1,axes=boxed: pf

pgplot3dg,x=0.1..0.1,y=0.1..0.1,axes=boxed:pg

phplot3dh,x=0.1..0.1,y=0.1..0.1,axes=boxed:ph

 

In the last two examples, we can visually verify the existence of the limit.

 

In the first example, by inspecting the graph we can identify two different directions with different limits, namely y=x and y=x. Indeed:

evalf,y=x

12

(1.4)

evalf,y=x

12

(1.5)

withplots:

c1spacecurvex,x,12,x=0.1..0.1,color=red,thickness=3:

c2spacecurvex,x,12,x=0.1..0.1,color=blue,thickness=3:

displaypf,c1,c2

 

How does Maple determine these limits? Let us consider a circle C given by x2+y2=r2, where we will later let r 0. Using the theory of Lagrange multipliers, the extremal values (maxima and minima) of the function f  on the circle, for a fixed radius r, satisfy the condition that the gradient of the function and the gradient of the constraint equation of the circle are parallel:

Cx2+y2r2:

withVectorCalculus:

dfnormal~Jacobianf,x,y

dCJacobianC,x,y

eqnumernormaldf1,1dC1,2df1,2dC1,1

eq:=2x2+2y2

(1.6)

Thus, the maximal and minimal values of f  on C occur when both C=0 and eq=0. For the bivariate limit, this means that it is sufficient to consider only those critical paths satisfying eq=0. In the example, there are two such paths, namely, y=x and y=x, and indeed they are exactly the same two paths from above leading to the extremal values 12 and 12. Since we have found two directions with different limits, we can conclude that the bivariate limit does not exist.

 

The following graph depicts both critical paths in the x,y-plane:

implicitploteq,x=0.1..0.1,y=0.1..0.1,numpoints=10000,thickness=2

 

Note that the critical paths are not necessarily always lines. For example, in the second example above:

dgnormal~Jacobiang,x,y

eqnumernormaldg1,1dC1,2dg1,2dC1,1

eq:=2y2x6+3x4y2y4

(1.7)

implicitploteq,x=0.1..0.1,y=0.1..0.1,numpoints=100000,thickness=2

 

In fact, we can give nonlinear closed form expressions for the critical paths:

pathssolveeq,y

paths:=0,122x9x2+8+6x2x,122x9x2+8+6x2x,122x9x2+8+6x2x,122x9x2+8+6x2x

(1.8)

In our example, the limits along all of the critical paths are identical:

mapzevalaNormalevalg,y=z,paths

0,14x9x2+8+3x24x2x21,14x9x2+8+3x24x2x21,14x9x2+8+3x24x2x21,14x9x2+8+3x24x2x21

(1.9)

limit~,x=0

0,0,0,0,0

(1.10)

This is a proof that the bivariate limit of g at the origin exists and is equal to 0.

 

The following graph depicts the function g as well as all of the critical paths:

curves mapzplotsspacecurvex,z,evalg,y=z,x=0.1..0.1,color=red,thickness=3,paths:

displaypg,opcurves

 

Branch Cuts of Mathematical Expressions

The FunctionAdvisor can now compute, algebraically, branch cuts (discontinuities) of mathematical expressions involving compositions of +, *, ^, and possibly fractional powers, with every mathematical function call for which FunctionAdvisor knows the branch cuts, with no restrictions to the level of nesting in the expression. This new feature includes the ability to generate 2-D and 3-D plots of the cuts, so as to view where the cuts are located and how the function evolves from one cut to another one.

Example

expressionlnz3

FunctionAdvisorbranch_cuts,expression,plot=3.

lnz32&comma;z<0&comma;Andz=3z3&comma;z<0&comma;Andz=3z3&comma;0<z

(2.1)

The segments of discontinuity are therefore located in the imaginary part of expression, lnz32.

You can rotate these plots with the mouse and use any of the options of plot, plot3d and plotcompare to observe the cuts in different ways.

 

A 2-D more abstract visualization of the same cuts:

FunctionAdvisorbranch_cuts&comma;expression&comma;plot=`2D`

lnz32&comma;z<0&comma;Andz=3z3&comma;z<0&comma;Andz=3z3&comma;0<z

(2.2)

 

 

Example

A classic example in the theory of branch cut calculation: Kahan's teardrop

expression2arccosh1+2z132arccosh12+5z3z+122arccosh2z+3z+327z+108

This expression is equal to zero for all values of z in the complex plane except for a small teardrop shaped region over the negative real axis, as shown in the following 3-D plot on the right (you can rotate it with the mouse). To see just the plot, without displaying the complicated algebraic description of the cuts, end the input with colon ':'

FunctionAdvisorbranch_cuts&comma;expression&comma;plot=3.&comma;shift_range=3&comma;scale_range=2&comma;orientation=124&comma;20&comma;14

 

Differential Equations

A new class of ordinary differential equations of Abel type, with non-constant invariants and depending on two arbitrary parameters, is now fully solvable in Maple 17.  Additionally, a large number of changes were added to the routines for tackling ordinary and partial differential equations.

Ordinary differential equations

• 

For 1st order ODEs, the simplest problem beyond the reach of complete solving algorithms is known as Abel equations. These are equations of the form

y'&equals;y3f3&plus;y2f2&plus;yf1&plus;f0yg1&plus;g0

  

where yyx is the unknown and the fifix and gjgjx are arbitrary functions of x. The biggest subclass of Abel equations known to be solvable was discovered by our research team and is the AIR 4-parameter class. New in Maple 17, another 2-parameter class of Abel equations, beyond the AIR class, is now known and solvable.

Example

ode1yx=2yx+βyxαxαβx2αβ+1yx+3αx2β2αβxβ1α&colon;

sol1dsolveode1

sol1_C1+yxβ1β+1yxα+1α+1xyx+12yx1yx1β_a1β1+1α_aα&DifferentialD;_a=0

(3.1.1)

odetestsol1&comma;ode1

0

(3.1.2)
  

 

  

The related class of Abel equations that is now entirely solvable consists of the set of equations that can be obtained from equation (3.1.1) by changing variables

xFx&comma;yP1xy&plus;Q1xP2xy&plus;Q2x

  

where Fx and the four Pix&comma;Qjx are arbitrary rational functions of x; this is the most general rational transformation that preserves the form of Abel equations and thus generates Abel ODE classes.

  

 

• 

Several changes were performed in the existing algorithms to optimize their functioning, resulting in new solutions for problems that were out of reach in previous releases.

 

Example: Second order linear equations

ode2yxl+2a2+b2acosx+bsinx2yx=0&colon;

sol2dsolveode2&comma;useInt

sol2yx=_C1b2la2tanx2+2abl+1tanx+a2lb2&ExponentialE;b1+tanx2tanxb+a&DifferentialD;x+b2l+a2tanxb+a2b2b2la2tanx2+2abl+1tanx+a2lb2&DifferentialD;xb4ll+12b2l+a22+_C2b2la2tanx2+2abl+1tanx+a2lb2&ExponentialE;b1+tanx2tanxb+a&DifferentialD;xb2l+a2tanxb+a2b2b2la2tanx2+2abl+1tanx+a2lb2&DifferentialD;xb4ll+12b2l+a22

(3.1.3)

odetestsol2&comma;ode2

0

(3.1.4)

 

Example: Nonlinear ODE problems with initial values

ode3yx=1yxyx&comma;y0=12&colon;

sol3dsolveode3&comma;implicit

sol3x2arctanyxyx02arctanhyx0<yx2arctanh22=0

(3.1.5)

odetestsol3&comma;ode3

0

(3.1.6)

 

Example: Third order nonlinear ODE depending on arbitrary function, a reduction to a Riccati equation

ode4yx=212fx+14fx23yx24yx2yx&colon;

sol4dsolveode4&comma;yx

sol4yx=&ExponentialE;_g_f&DifferentialD;_f+_C1&DifferentialD;_f+_C2&where&DifferentialD;&DifferentialD;_f_g_f=&DifferentialD;&DifferentialD;_ff_f22+_g_f22+&DifferentialD;2&DifferentialD;_f2f_f&comma;_f=x&comma;_g_f=yxyx&comma;x=_f&comma;yx=&ExponentialE;_g_f&DifferentialD;_f+_C1&DifferentialD;_f+_C2

(3.1.7)

odetestsol4&comma;ode4

0

(3.1.8)

Partial differential equations

 

Changes were done in the existing algorithms for linear and nonlinear PDEs and systems of them, resulting in new solutions for more PDE problems.

Examples: Linear PDEs

pde12ytux&comma;y&comma;tux&comma;y&comma;tyux&comma;y&comma;ttux&comma;y&comma;t=0&colon;

sol1pdsolvepde1

sol1ux&comma;y&comma;t=_F1y&comma;x_F2t&comma;x

(3.2.1)

Results can be verified with pdetest

pdetestsol1&comma;pde1

0

(3.2.2)

pde2x2x2ux&comma;y2xux&comma;yx2y2ux&comma;y=0&colon;

sol2pdsolvepde2

sol2ux&comma;y=D_F1x+yx_F1x+y+D_F2x+yx_F2x+y

(3.2.3)

pdetestsol2&comma;pde2

0

(3.2.4)

pde322yxux&comma;y+2y2ux&comma;y=fx&comma;y&colon;

sol3pdsolvepde3

sol3ux&comma;y=_F1x+_F22yx+x_b2x2+yf_b&comma;_a&DifferentialD;_a&DifferentialD;_b2

(3.2.5)

pdetestsol3&comma;pde3

0

(3.2.6)

 

Examples: PDE problems with boundary conditions

pde4tux&comma;t=52x2ux&comma;t&colon;

bc4u0&comma;t=0,uπ&comma;t=0,ux&comma;0=3sin2x+6sin5x

bc4u0&comma;t=0,uπ&comma;t=0,ux&comma;0=3sin2x+6sin5x

(3.2.7)

sol4pdsolvepde4&comma;bc4

sol4ux&comma;t=3&ExponentialE;20tsin2x+6&ExponentialE;125tsin5x

(3.2.8)

The verification with pdetest also verifies that the solution satisfies the boundary conditions given

pdetestsol4&comma;pde4&comma;bc4

0&comma;0&comma;0&comma;0

(3.2.9)

Nonlinear PDE systems

 

pde52x2ux&comma;y+2y2ux&comma;y=0&comma;xux&comma;y2+yux&comma;y2&ExponentialE;2x=0&colon;

sol5pdsolvepde5

sol5ux&comma;y=&ExponentialE;Iy+x+4_C22&ExponentialE;x+Iy+4_C1+4_C3_C24_C2

(3.2.10)

pdetestsol5&comma;pde5

0

(3.2.11)

Graph Theory

Maple 17 has significant improvements to several GraphTheory commands, including:

• 

TuttePolynomial, ChromaticPolynomial, FlowPolynomial, AcyclicPolynomial and RankPolynomial

• 

 IsIsomorphic

 

In addition, two new commands were added to the package:

• 

LaplacianMatrix

• 

 ReliabilityPolynomial

Improvements to TuttePolynomial, ChromaticPolynomial, FlowPolynomial, AcyclicPolynomial and RankPolynomial commands

The TuttePolynomial command uses a new algorithm that is faster and consumes less memory.

For example, computation of the Tutte polynomial of the 12 vertex complete graph (CompleteGraph(12)) now requires 1/3 the memory, and completes in 1/3 the time.

For the 9,3 generalized Petersen graph (PetersenGraph(9,3)) the memory usage has dropped to 1/6, and the time to 1/8 of the time needed in Maple 16.

withGraphTheory&colon;

withSpecialGraphs&colon;

 

Example

G:=CompleteGraph12&colon;

CodeTools:-UsageTuttePolynomialG&comma;&apos;x&apos;&comma;&apos;y&apos;&colon;

memory used=106.98MiB, alloc change=0 bytes, cpu time=2.67s, real time=2.83s

G:=GeneralizedPetersenGraph9&comma;3&colon;

CodeTools:-UsageTuttePolynomialG&comma;&apos;x&apos;&comma;&apos;y&apos;&colon;

memory used=3.21MiB, alloc change=0 bytes, cpu time=125.00ms, real time=149.00ms

 

These improvements propagate to the commands ChromaticPolynomial, FlowPolynomial, AcyclicPolynomial and RankPolynomial as well.

Improvements to IsIsomorphic command

The IsIsomorphic command now utilizes a new algorithm that scales better to larger problems. As an example, two isomorphic soccer ball graphs (SpecialGraphs[SoccerBallGraph]) with 60 vertices and 90 edges can be tested for isomorphism in less than one second in Maple 17, while in Maple 16 and earlier, this same computation did not complete in under 10 minutes.

Example

S:=SoccerBallGraph&colon;

G:=IsomorphicCopyS&colon;

H:=IsomorphicCopyS&colon;

CodeTools:-UsageIsIsomorphicG&comma;H&comma;&apos;&phi;&apos;&colon;

memory used=448.29KiB, alloc change=0 bytes, cpu time=47.00ms, real time=50.00ms

The LaplacianMatrix command

The new LaplacianMatrix command can be used to compute the Laplacian matrix representation of a graph:

Example

G:=CompleteGraph5&colon;

LaplacianMatrixG

The ReliabilityPolynomial command

The new ReliabilityPolynomial command can be used to compute the reliability polynomial of a graph:

Example

ReliabilityPolynomialG&comma;&apos;x&apos;

24x6&plus;36x5&plus;30x4&plus;20x3&plus;10x2&plus;4x&plus;11x4

(4.4.1)

 

Intersecting Plane Curves

For Maple17, a new command, intersectcurves, has been added to the algcurves package.

withalgcurves&colon;

 

Example

Given two plane curves expressed as polynomials in two variables:

c1:=2y2x3&plus;x&colon;

c2x2y21&colon;

 

The intersectcurves command computes the points of intersection along with their multiplicities. Each set of intersection points is expressed as a list containing three values. The first two are irreducible polynomials, the second of which is in only one of the variables. The third value is either 0 or 1. When 1, the point is affine; when 0 it is a point in the projective plane (at infinity).

intersectcurvesc1&comma;c2&comma;x&comma;y

2&comma;1&plus;x&comma;y&comma;1&comma;2&comma;1&plus;x&comma;y&comma;1&comma;1&comma;2&plus;x&comma;y23&comma;1

(5.1)

 

This is to be interpreted as follows. There are two intersection points of multiplicity 2, namely, (-1,0) and (1,0), indicating that they are points where the curves intersect tangentially. In addition, there are two intersection points of multiplicity 1, namely, 2&comma;3 and 2&comma;3. We can see all intersection points graphically with a simple implicit plot.

withplots&colon;

implicitplotc1&comma;c2&comma;x&equals;3..3&comma;y&equals;3..3&comma;gridrefine&equals;3&comma;scaling&equals;constrained&comma;color&equals;Red&comma;Blue

The following example illustrates the case when there are intersection points at infinity.

d1:=yx2y1&colon;

d2:=x2x&colon;

intersectcurvesd1&comma;d2&comma;x&comma;y

1&comma;x&comma;1&plus;y&comma;1&comma;5&comma;x&comma;1&comma;0

(5.2)

implicitplotd1&comma;d2&comma;x&equals;3..3&comma;y&equals;3..3&comma;gridrefine&equals;3&comma;scaling&equals;constrained&comma;color&equals;Red&comma;Blue

 

There is one affine intersection point (0,-1) of multiplicity 1, plus one intersection point at infinity, of multiplicity 5. The tangent at this point is the line x&equals;0. Each of the two blue vertical lines intersects each of the two asymptotes of the red curve at the infinite point 0&comma;1&comma;0&period; All but one of these intersections have multiplicity 1, and the exceptional one, between the blue line and the asymptote to the red curve at x&equals;1, comes from a tangential intersection, of multiplicity 2.

We can perform a change of coordinates in order to plot this in the affine plane. First, we homogenize the equations, introducing a third variable z, and then we substitute y&equals;1 in order to move the intersection point that was previously at infinity to the origin.

h1:=yx2yz2z3y&equals;1|yx2yz2z3y&equals;1 

h1:=z3&plus;x2z2

(5.3)

h2x2xzy&equals;1|x2xzy&equals;1

h2:=x2xz

(5.4)

implicitploth1&comma;h2&comma;x&equals;1.5..1.5&comma;z&equals;1.5..1.5&comma;gridrefine&equals;3&comma;scaling&equals;constrained&comma;color&equals;Red&comma;Blue

 

intersectcurvesh1&comma;h2&comma;x&comma;z

5&comma;x&comma;z&comma;1&comma;1&comma;x&comma;z&plus;1&comma;1

(5.5)

After the coordinate transformation, all intersection points (of h1 and h2) are visible in the plot and there are no intersection points at infinity.

 

Linear Inequality Solving

The LinearSolve command in the RegularChains package, whose purpose is to solve systems of linear equations and inequalities, has been enhanced in several ways:

• 

A more efficient algorithm based on Fourier-Motzkin elimination, has been implemented.

• 

Two new options, canonical and projection, for controlling the form of the output have been added.

 

The examples below illustrate the use of this command and the two new options for computations with polyhedra.

Change of representation for polyhedra

There are at least two ways to mathematically describe a polyhedron, either by specifying its corners, or by specifying its bounding hyperplanes. We start by illustrating this using a cube of side length 1 with one corner at the origin and its three adjacent edges parallel to the three coordinate axes.

Example

Plot the cube:   

withplots&colon;withplottools&colon;

displaycuboid0&comma;0&comma;0&comma;1&comma;1&comma;1&comma;axes&equals;boxed&comma;labels&equals;x&comma;y&comma;z

 

Define this cube by bounding planes:

c1:=0x&comma;x1&comma;0y&comma;y1&comma;0z&comma;z1

c1:=0x&comma;x1&comma;0y&comma;y1&comma;0z&comma;z1

(6.1.1)

 

Alternatively, define the vertices of the same cube:

V:=Matrix0&comma;0&comma;0&comma;0&comma;0&comma;1&comma;0&comma;1&comma;0&comma;0&comma;1&comma;1&comma;1&comma;0&comma;0&comma;1&comma;0&comma;1&comma;1&comma;1&comma;0&comma;1&comma;1&comma;1

Suppose now that we are given the vertex representation and want to automatically derive the bounding planes representation. The cube is defined as the convex hull of all its vertices:

opconvertVectorrowx&comma;y&comma;z&equals;~addλiVi&comma;i&equals;1..8&comma;list

x&equals;&lambda;5&plus;&lambda;6&plus;&lambda;7&plus;&lambda;8&comma;y&equals;&lambda;3&plus;&lambda;4&plus;&lambda;7&plus;&lambda;8&comma;z&equals;&lambda;2&plus;&lambda;4&plus;&lambda;6&plus;&lambda;8

(6.1.2)

add&lambda;i&comma;i&equals;1..8&equals;1

&lambda;1&plus;&lambda;2&plus;&lambda;3&plus;&lambda;4&plus;&lambda;5&plus;&lambda;6&plus;&lambda;7&plus;&lambda;8&equals;1

(6.1.3)

seq0&lambda;i&comma;i&equals;1..8

0&lambda;1&comma;0&lambda;2&comma;0&lambda;3&comma;0&lambda;4&comma;0&lambda;5&comma;0&lambda;6&comma;0&lambda;7&comma;0&lambda;8

(6.1.4)

seq&lambda;i1&comma;i&equals;1..8

&lambda;11&comma;&lambda;21&comma;&lambda;31&comma;&lambda;41&comma;&lambda;51&comma;&lambda;61&comma;&lambda;71&comma;&lambda;81

(6.1.5)

sys:=&comma;&comma;&comma;

sys:=x&equals;&lambda;5&plus;&lambda;6&plus;&lambda;7&plus;&lambda;8&comma;y&equals;&lambda;3&plus;&lambda;4&plus;&lambda;7&plus;&lambda;8&comma;z&equals;&lambda;2&plus;&lambda;4&plus;&lambda;6&plus;&lambda;8&comma;&lambda;1&plus;&lambda;2&plus;&lambda;3&plus;&lambda;4&plus;&lambda;5&plus;&lambda;6&plus;&lambda;7&plus;&lambda;8&equals;1&comma;0&lambda;1&comma;0&lambda;2&comma;0&lambda;3&comma;0&lambda;4&comma;0&lambda;5&comma;0&lambda;6&comma;0&lambda;7&comma;0&lambda;8&comma;&lambda;11&comma;&lambda;21&comma;&lambda;31&comma;&lambda;41&comma;&lambda;51&comma;&lambda;61&comma;&lambda;71&comma;&lambda;81

(6.1.6)

We can now use the LinearSolve command to eliminate all &lambda;i from this system of equations and inequalities. We use the projection option to specify that elimination is required, and the canonical option to eliminate redundant equations and inequalities.

withRegularChains&colon;withSemiAlgebraicSetTools&colon;

vars:=seq&lambda;i&comma;i&equals;1..8&comma;z&comma;y&comma;x

vars:=&lambda;1&comma;&lambda;2&comma;&lambda;3&comma;&lambda;4&comma;&lambda;5&comma;&lambda;6&comma;&lambda;7&comma;&lambda;8&comma;z&comma;y&comma;x

(6.1.7)

LinearSolvesys&comma;PolynomialRingvars&comma;canonical&comma;projection&equals;3

0x&comma;x1&comma;0y&comma;y1&comma;0z&comma;z1

(6.1.8)

This agrees with the representation c1 above.

 

Dual polyhedra

Example

For every convex 3-D polyhedron, there is a dual polyhedron with the roles of corners and faces swapped. Let us compute the dual polyhedron of the cube. We start with a representation of the cube with the origin as the center.

c2:=x1&comma;x1&comma;y1&comma;y1&comma;z1&comma;z1

c2:=x1&comma;x1&comma;y1&comma;y1&comma;z1&comma;z1

(6.2.1)

Now we rewrite this in matrix form.

B:=Matrix1&comma;0&comma;0&comma;1&comma;0&comma;0&comma;0&comma;1&comma;0&comma;0&comma;1&comma;0&comma;0&comma;0&comma;1&comma;0&comma;0&comma;1

v:=Vectorx&comma;y&comma;z

c:=Vector1&comma;1&comma;1&comma;1&comma;1&comma;1

B&period;v~c

In general, if a bounded convex polyhedron is given by a set of inequalities of the form B&period;v1, then the vertices of its dual are exactly the columns of the matrix B. The convex hull of these six vertices defines an octahedron. Using the same method as before, we compute the bounding planes for this octahedron.

opconvertVectorrowx&comma;y&comma;z&equals;~addλiBi&comma;i&equals;1..6&comma;list

x&equals;&lambda;1&lambda;2&comma;y&equals;&lambda;3&lambda;4&comma;z&equals;&lambda;5&lambda;6

(6.2.2)

 

add&lambda;i&comma;i&equals;1..6&equals;1

&lambda;1&plus;&lambda;2&plus;&lambda;3&plus;&lambda;4&plus;&lambda;5&plus;&lambda;6&equals;1

(6.2.3)

seq0&lambda;i&comma;i&equals;1..6

0&lambda;1&comma;0&lambda;2&comma;0&lambda;3&comma;0&lambda;4&comma;0&lambda;5&comma;0&lambda;6

(6.2.4)

seq&lambda;i1&comma;i&equals;1..6

&lambda;11&comma;&lambda;21&comma;&lambda;31&comma;&lambda;41&comma;&lambda;51&comma;&lambda;61

(6.2.5)

sys:=&comma;&comma;&comma;

sys:=x&equals;&lambda;1&lambda;2&comma;y&equals;&lambda;3&lambda;4&comma;z&equals;&lambda;5&lambda;6&comma;&lambda;1&plus;&lambda;2&plus;&lambda;3&plus;&lambda;4&plus;&lambda;5&plus;&lambda;6&equals;1&comma;0&lambda;1&comma;0&lambda;2&comma;0&lambda;3&comma;0&lambda;4&comma;0&lambda;5&comma;0&lambda;6&comma;&lambda;11&comma;&lambda;21&comma;&lambda;31&comma;&lambda;41&comma;&lambda;51&comma;&lambda;61

(6.2.6)

vars:=seq&lambda;i&comma;i&equals;1..6&comma;z&comma;y&comma;x

vars:=&lambda;1&comma;&lambda;2&comma;&lambda;3&comma;&lambda;4&comma;&lambda;5&comma;&lambda;6&comma;z&comma;y&comma;x

(6.2.7)

S:=LinearSolvesys&comma;PolynomialRingvars&comma;canonical&comma;projection&equals;3

S:=1x&comma;x1&comma;x1y&comma;1&plus;xy&comma;y1&plus;x&comma;y1x&comma;yx1z&comma;y&plus;x1z&comma;1x&plus;yz&comma;1&plus;x&plus;yz&comma;zy&plus;x&plus;1&comma;zyx&plus;1&comma;z1&plus;xy&comma;z1xy

(6.2.8)

The first two inequalities represent that projection of the octahedron onto the x axis:

S1..2

1x&comma;x1

(6.2.9)

 

Together with the following four inequalities, which involve only x and y but not z, this defines the projection of the octahedron onto the x&comma;y-plane:

S1..2&semi;S3..6

1x&comma;x1

x1y&comma;1&plus;xy&comma;y1&plus;x&comma;y1x

(6.2.10)

 

The following plot shows this projection (blue) together with the four boundary lines.

 

inequalS3..6&comma;x&equals;2..2&comma;y&equals;2..2

Finally, the last 8 inequalities, i.e., the ones containing z, define the bounding planes of the octahedron.

 

S8..1

yx1z&comma;y&plus;x1z&comma;1x&plus;yz&comma;1&plus;x&plus;yz&comma;zy&plus;x&plus;1&comma;zyx&plus;1&comma;z1&plus;xy&comma;z1xy

(6.2.11)

 

The following 3-D plot displays the tetrahedron as well as the last of these 8 bounding planes. Rotate the plot with the mouse in order to see that the plane actually touches one of the faces.

plane:=Student:-LinearAlgebra:-PlanePlotlhsrhsS1&equals;0&comma;x&comma;y&comma;z&comma;caption&equals;&comma;shownormal&equals;false&comma;showpoint&equals;false&comma;planeoptions&equals;transparency&equals;0.3&colon;

 

displayoctahedron0&comma;0&comma;0&comma;plane&comma;axes&equals;boxed&comma;labels&equals;x&comma;y&comma;z

 

 

Semialgebraic System Solving

The SolveTools[SemiAlgebraic] command has been integrated directly into the solve command, such that many systems involving non-linear polynomial inequalities that could not be solved previously, are solved.

 

In Maple 16, no solutions were found for the following system, but in Maple 17 it is easily solved:

Example

sol:=solve0xy2&comma;x2&plus;y2<9&comma;0<y&plus;3x2&comma;x&comma;y

sol:=x&equals;1&comma;y<1&comma;1y&comma;x&equals;12&plus;1237&comma;y<122&plus;237&comma;122&plus;237<y&comma;x&equals;35&plus;11086&comma;y11060&plus;1086&comma;11060&plus;1086y&comma;x<35&plus;11086&comma;1<x&comma;y&equals;x&comma;x<35&plus;11086&comma;1<x&comma;y&equals;x&comma;x<1&comma;49<x&comma;y&equals;x&comma;x<12&plus;1237&comma;35&plus;11086<x&comma;y&equals;x&comma;x<12&plus;1237&comma;35&plus;11086<x&comma;y&equals;x&comma;x<35&plus;11086&comma;1<x&comma;y<x&comma;x<y&comma;x<1&comma;49<x&comma;y<3x2&comma;x<y&comma;x<3&comma;12&plus;1237<x&comma;y<x2&plus;9&comma;x2&plus;9<y&comma;x<12&plus;1237&comma;35&plus;11086<x&comma;y<x&comma;x<y

(7.1)

 

A solution to such a system of inequalities is a decomposition of the feasible region of the inequalities into bands as can be seen in the inequality plot:

plots&lsqb;inequal&rsqb;sol&comma;x&equals;0..3&comma;y&equals;2..2

Additionally, the SemiAlgebraic command now can build case discussions for systems with real-valued parameters.

SolveTools&lsqb;SemiAlgebraic&rsqb;ax2<b&comma;a<x&comma;x

&lcub;0<xAnda&equals;0&comma;0<ba<x&comma;x<abaAnd0<a&comma;a3<b0<x&comma;a<x&comma;x<0Anda<0&comma;b&equals;0a<xAnda<0&comma;b&equals;a3a<xAnda<0&comma;0<baba<xAnda<0&comma;b<a3aba<x&comma;a<x&comma;x<abaAnda<0&comma;a3<b&comma;b<0otherwise

(7.2)

 

Solving Equations with Branch Cuts

New functionality has been added to the solve command to account for branch cuts in the input equations and build piecewise expressions that are correct for substitution of parameters. This functionality is controlled with the new option symbolic&equals;false. The default behavior in Maple 17 and previous versions of Maple, is the same as specifying symbolic&equals;true.

Example

expr:=a&equals;a&plus;y&plus;1&colon;

sol1:=solveexpr&comma;y&comma;symbolic&equals;true

sol1:=y&equals;a23a&plus;1

(8.1)

sol2:=solveexpr&comma;y&comma;symbolic&equals;false

sol2:=&lcub;y&equals;a23a&plus;1And2argumenta1&pi;&comma;&pi;<2argumenta1otherwise

(8.2)

 

While both sol1 and sol2 are valid for some values of the parameter a:

sol1a&equals;1|sol1a&equals;1&comma;sol2a&equals;1|sol2a&equals;1&comma;solveexpra&equals;1|expra&equals;1&comma;y

y&equals;1&comma;y&equals;1&comma;y&equals;1

(8.3)

Only the solution using the symbolic&equals;false option are valid for other values of the parameter:

sol1a&equals;1|sol1a&equals;1&comma;sol2a&equals;1|sol2a&equals;1&comma;solveexpra&equals;1|expra&equals;1&comma;y

y&equals;5&comma;&comma;

(8.4)

Important Note: The default of the symbolic option is expected to change to false in a future version of Maple. Applications that rely on the current branch cut behavior should add symbolic&equals;true to their calls to solve.

 

See Also

dsolve command, pdsolve command, Graph Theory package, algcurves[intersectcurves] command, solve command, SolveTools[SemiAlgebraic] command, limit command