Section 1.5

Maple Tool 1

This graphing tool supports Activity 1.  Enter definitions for the functions f, g, h, and k, where k is defined in terms of g and h (not necessarily the sum of g and h).  If you have the right combination, the graph of k should coincide with the graph of f.  (The given definitions are not right.)

> f:=x->x^3+4*x^2;

f := proc (x) options operator, arrow; x^3+4*x^2 end proc

> g:=x->x^2;

g := proc (x) options operator, arrow; x^2 end proc

> h:=x->4+x;

h := proc (x) options operator, arrow; 4+x end proc

> k:=x->g(x)*h(x);

k := proc (x) options operator, arrow; g(x)*h(x) end proc

> plot([g(x),h(x),f(x),k(x)], x=-3..3, y=-40..40, color=[red,blue,black,green], thickness=[1,1,1,2], legend=["g(x)","h(x)","f(x)","k(x)"]);

[Plot]

>