MapleGraphingExamples.mws

Here is an exploration of the polynomial and its derivative using Maple.

>    with(plots):

Warning, the name changecoords has been redefined

>    f:=7*x^4-24*x^3+10*x^2+24*x-17:

>    fGraph:=plot(f,x=-2..3,y=-30..30,thickness=2):

>    display(fGraph);

[Maple Plot]

>    factor(f);

(x+1)*(7*x-17)*(x-1)^2

>    solve({f=0},{x});

{x = -1}, {x = 17/7}, {x = 1}, {x = 1}

>    fprime:=diff(f,x);

fprime := 28*x^3-72*x^2+20*x+24

>    factor(fprime);

4*(x-1)*(x-2)*(7*x+3)

>    solve({fprime=0},{x});

{x = 1}, {x = 2}, {x = -3/7}

>    eval(f,x=1);

0

>    eval(f,x=2);

-9

>    eval(f,x=-3/7);

-8000/343

>    evalf(%);

-23.32361516

>    fprimeGraph:=plot(fprime,x=-2..3,y=-30..30,thickness=2,color=blue):

>    display(fGraph,fprimeGraph);

[Maple Plot]

In the polynomial (f2) below the y-intercept has been changed (from what it was in f) which leads to a need to approximate the x-intercepts.  Notice that f2 cannot be factored over the

set of rational numbers.

>    f2:=7*x^4-24*x^3+10*x^2+24*x-22:

>    f2graph:=plot(f2,x=-2..3,y=-30..30,thickness=2):

>    display(f2graph);

[Maple Plot]

>    factor(f2);

7*x^4-24*x^3+10*x^2+24*x-22

>    fsolve({f2=0},{x});

{x = -1.048927367}, {x = 2.516846002}

>    f2prime:=diff(f,x);

f2prime := 28*x^3-72*x^2+20*x+24

>    factor(f2prime);

4*(x-1)*(x-2)*(7*x+3)

>    solve({f2prime=0},{x});

{x = 1}, {x = 2}, {x = -3/7}

>    eval(f2,x=1);

-5

>    eval(f2,x=2);

-14

>    eval(f2,x=-3/7);

-9715/343

>    evalf(%);

-28.32361516

>    f2primeGraph:=plot(f2prime,x=-2..3,y=-30..30,thickness=2,color=blue):

>    display(f2graph,f2primeGraph);

[Maple Plot]

In the polynomial f3 the coefficient of x has also been changed so that the zeroes of the derivative also had to be approximated.  Notice that both f3 and f3prime cannot be factored

over the set of rational numbers.

>    f3:=7*x^4-24*x^3+12*x^2+24*x-22:

>    f3graph:=plot(f3,x=-2..3,y=-30..30,thickness=2):

>    display(f3graph);

[Maple Plot]

>    factor(f3);

7*x^4-24*x^3+12*x^2+24*x-22

>    fsolve({f3=0},{x});

{x = -1.028932616}, {x = 2.285241888}

>    f3prime:=diff(f3,x);

f3prime := 28*x^3-72*x^2+24*x+24

>    factor(f3prime);

28*x^3-72*x^2+24*x+24

>    fsolve({f3prime=0},{x});

{x = -.4113053730}, {x = 1.116909911}, {x = 1.865824034}

>    eval(f3,x=-.4113053730);

-27.97097567

>    eval(f3,x=1.116909911);

-2.77068369

>    eval(f3,x=1.865824034);

-6.50032307

>    f3primeGraph:=plot(f3prime,x=-2..3,y=-30..30,thickness=2,color=blue):

>    display(f3graph,f3primeGraph);

[Maple Plot]

>