Next: About this document ...
The purpose of this lab is to find solutions to one equation.
You can set an expression or function equal to another expression, function, or number inside a solve command.As an example, you may want to find where the following two parabolas intersect.
> g := 9*x^2-14;
The plot shows that there are two intersection points and the solve command finds both values.It is good to get into the habit of naming your output so you can use it in a later command. Giving the values a name makes it easy to plug them into the function to find the values.
Since there are two values called , use [ ] to call up the one you want.
Therefore the two intersection points are
. This seems like the answer shown on the graph.
If you would like to find where the following function crosses the horizontal line you can try the solve command.
The graph shows there should be three answers.
AAAAAAAAAAAAAARG! That is some scary output! So instead of using the algebraic solve try the numerical fsolve.
If you want to find where the following function crosses the x-axis, just set it equal to zero.
Wow, what is that?!?! We know from the graph that there should be three answers and solve wasn't a great option so try fsolve again.
Where are the other two answers!? This is actually how fsolve usually works. It shoots for one answer and only gives that one. But you can tell fsolve where to look by getting an idea from the graph and typing that domain into the fsolve command.
To find the values just plug in the names of the values.
(Of course the y-values are zero!)
Given two planes and
you can find the line where they intersect with the solve command. First use plot3d to see the intersection
Notice that the solution can be written in parametric form:
or it may be written symmetrtically as:
.Note that you can do the algebra for the symmetric form with Maple:
- Given the expression
- Plot the expression and in text state how many times the it crosses the x-axis.(Experiment with domain values until you find values that show the crossing points clearly.)
- Use the Maple solve command to find the values of where it crosses the x-axis (also called the roots).
- Use the Maple fsolve command to find the roots.
- State, in text, the value of the roots. Also, how are the results of solve and fsolve different in this problem?
- Given the functions
- Plot the functions. Again experiment with domain values until the intersection points are clear. Then state in text how many intersection points you see.
- Using the solve command find the intersection points.Label the values by giving the solve command a name. How many values does the solve command find?
- Use the fsolve command to find the rest of the answers. Label the values by giving each fsolve command a name.
- Find all the values and state the intersection points in text.(When writing your text sentence use only two decimal places for the numbers. Round correctly!)
- Find the intersection point of the three planes , , and . First plot the planes over the domain
Next: About this document ...
Jane E Bouchard