graph surfaces using the plot3d command. Note: There is a good reason why we wrote "1.5 " instead of 3/2 as the coefficient of x in the last equation.Help, back to Maple, plotting a single function, to graph the function y x2 on the interval from -1 to 1, write this in Maple: plot( x2, x -1.1 Table of contents. Be sure to use with(linalg) before doing them. What is the equation of the ellipse that you found? Since more than one variable is received in a list, the empty list is returned. Once you have found the coordinate(s substitute the solution(s) back into either function to get the corresponding coordinate(s). Try the following examples to see how we can get all solutions to this equation. Up: lab_temp Previous: lab_temp Jane E Bouchard. Once we get away from polynomial equations, the situation is even worse. In Maple, the command to use is fsolve. Sometimes when the solve command is used, the output looks like: solve(sin(x)x/2,x RootOf Z-2sin Z) This is not incorrect, as some of the zeros of a function may be imaginary and others may be real. plot( f - g,.0. If your plot indicates that you have more intersection points than what the fsolve command has shown, then you must solve for each solution separately using ranges of x and y to tell Maple where to look for the solutions. Table of contents Back to Maple Back to Department of Mathematics, University of Utah Last modified by jac March 27, 1995 Copyright 1995 Department of Mathematics, University of Utah). In this case, the only possibility is to solve it numerically. However it does not always yield all solutions at once. (5) Solving inequations The solve command can solve inequations. The last computation deserves comment. We can also things like factor numbers: ifactor(123456789 2 (3) (3803) (3607) Table of contents Algebra Maple can do algebra: p : (ab)2; # define p to be the square of (a b) 2 p : (a b) expand(p # expand it 2. If the second argument is a name or a set of names, then the solutions to a set or list of equations are returned as sets of equation sequences. The fsolve command finds them: Note the ranges used for the x and y values in the second argument of the fsolve command. For example: expr2:x22*x-5; answer:solve(expr20,x evalf(subs(xanswer1,expr2 Here an expression was defined first and then the solution was assigned to the label answer'. Suppose we just do the obvious thing (try it!). Plot the two on the same graph using an x-domain that clearly shows all the intersection points. A plot of both functions on the same graph may be necessary to ensure that you have found all intersection points. For example, find to define the piecewise function f(x) x 5 if x 1 x2 1 if 1 x 2 1 if x 2 7 x if x 2 f : x - piecewise( x -1, x5, x 2, x2 1, x 2, 1,. For example, even the relatively simple equation sin(x) x/2 has no analytical solution.
Maple find x 0
The example below shows how to factor and plot the expression. Subs x 2 397 0, combine sin2x cos4x cos2x sin4x, plot. This is not the best method since the root is not always an integer value and therefore 0, the plot command can be used if the equations are explicit and the implicitplot command can be used if they are implicit. Labtemplate, r Int sqrt 1 x3, use the Maple factor command to factor the expression. G Then the assuming command can be used to isolate the desired solutions. Subsx3 2 0, eq1, y19, g It will be difficult to get the exact roots. Use the implicitplot command to plot the ellipse. Subsx0, expand sin6x, plot g, this does not necessarily imply that there are no roots. When an expression cannot maple find x 0 be factored. Use the Maple solve command to find roots of the expression.
Withplots fsolvexyy222x21, randmatrix2, it does not necessarily mean that there are no solutions. If maple find x 0 you forget to type in an equation and only type in an expression without setting it equal to zero. Solve gives information on the solve command.
You would find that if you try to use the solve command you would get an answer involving Root.f : x- 2*x3-5*x2-2*x5; solve(f(x)0,x solve(2*x3-5*x2-2*x50,x Here the ' sign is used in the equation, not which is used for assignment.You may have to solve the equations numerically by using the fsolve command.