Mathematics in the Computer Lab
(make the arrow with a dash - and > sign). After the arrow, enter the rule for the function. For example, to define the function f(x) = x2 - 3x + 5, enter
f := x -> x^2 - 3*x + 5;
How did Maple solve the equation? How many solutions are there? If you want the solutions in decimal form, put a decimal point after the 17:
solve(f(x)=17.,x);
This plots the graph in the range .
Notice that the scales on the x and y axes are different,
and that the scale on the y-axis does not start at zero. How can
you visualize one of the solutions to f(x) = 17 on the graph?
Assignment 3 (Lab)
First draft due at the end of class Friday
Answer briefly, but use complete sentences. Illustrate with rough sketches
where appropriate. Do not hand in any printed Maple output.
1. What is the relationship between the functions f and
g
which you defined above? What is the relationship between their graphs?
2. Using Maple, define and plot the three functions .
Plot these simultaneously in the range
,
.
What relationship do the graphs have to each other?
3. If f,g are two functions such that g(x) = f(x) + c where c is a constant (possibly negative), how is the graph of g related to the graph of f?
4. Using Maple, define the function f(x) = x3 - 3x + 1. Then define the function g(x) = f(x + 1). That is, replace x in the rule for f by x + 1. The simplest way to do this on Maple is (once you have defined f)
g := x -> f(x + 1);
5. Plot f,g from problem 4 on the same axes, in
the range .
What is the relationship between their graphs?
6. Using Maple, define the function .
Then define the function g(x)
= f(x - 2). Plot both in the range
and determine the relationship between their graphs.
7. If f,g are two functions such that g(x) = f(x + c) where c is a constant (possibly negative), how is the graph of g related to the graph of f?
8. Investigate the effect of the transformation which replaces x by -x. That is, let g(x) = f(-x) and compare the graphs of f and g, as you did in the previous problems. You may use different functions than the ones used above. You do not have to write down all your intermediate steps. The goal is to use your observations to complete the following sentence: ``The effect on the graph of f(x) of replacing f(x) by f(-x) is ... ''. You should illustrate your answer with at least one example.
9. As in problem 9, but investigate the effect of the transformation which replaces f(x) by -f(x). That is, let g(x) = -f(x), etc.
10. An even function is one for which f(x) = f(-x). An odd function is one for which f(x) = -f(-x). Classify the following functions as even, odd, or neither. One way to do this is to plot the functions and use your answers from problems 9 and 10. Another way is simply replace x by -x in the formula for f and see how the formula changes.