Math 111: MATLAB Assignment 2

DUE DATE:  NOVEMBER 4, 2010

 

 

Your Assignment

In this assignment, we will be investigating the behavior of functions of the form f(x)=x3 + ax2 + 4.

Consider the cases where a = -4, -1, 0, 1, 4.

  1. Plot these curves on the same graph on a reasonable interval. Use your name in the graph's title. (You may want to experiment with other values of a to get a feel for how the curve changes as a changes, but you need not hand in plots for values of a other than those above).

  2. Where, if at all, is the slope equal to zero for each of the curves? (Calculate using the derivative. Compare your answers to the plot.)

  3. At each of these points indicate whether there is a maximum, a minimum or and inflection at each of the points noted in step 2.

  4. Note how many roots there are and their relative locations (i.e. if x is greater than, less than or equal to zero) for the a<0, a>0 and a=0.

  5. Is there a value of a for which there are exactly 2 roots? If so, find this value and plot the curve on the same graph as the others.

In addition to your plot (with curves labeled via the legend command) and answers to the questions, please hand in your MATLAB code (either an M-file or printout of the command window).

You can find more information to help you with the MATLAB commands useful for this assignment at http://m.njit.edu/~bukiet/M111/MatlabHelp_Higley.doc

More on MATLAB can be found at Matlab Documentation.

Here are some tips on what you are expected to hand in.

1. For part 1 there is nothing to hand in.

2. For part 2 and 3, you might make a table for each value of a along the lines of: (Note, there may be more than one row for a given value of a.)

a Point where slope = 0 analytically Point where slope = 0 using data cursor Maximum, minimum or inflection
0 (0,4)    
       

 

3. For part 4. for each value of a discuss where the roots are (just whether they are at x greater than, less than or equal to zero. You need not 

            find the values.

      4. For part 5, show your analytical work then plot the relevant curve on the same graph as those in part 1. Thus you need hand in just one plot with

            6 curves on it

 

 

 

Last update: 10/22/10