﻿ GPC - John Weber - Math2431 Computer Project 2 - Summer 2012

## Project 2 – Algebra – Due: 21 June 2012

You must complete the project in a group of two students. Normally, all members of the group will receive the same grade; however, the instructor reserves the right to conduct individual interviews over the content of the project and to assign different grades to different members of the group.

## Introduction

Graphing functions is extremely important for successfully completing calculus I. More importantly, knowing the shapes of the graphs of functions will be helpful in calculus I. In this project, you will learn the `Plot` function of mathematica and its arguments and you will make some conclusions from your work on this project. You will be graded on the quality and clarity of your written presentation as well as the mathematical accuracy of your paper.

To label your work, use comments. For example, use the following to start your project (after every line, use SHIFT-ENTER to execute):

(* Partner's Name *)
(* Math2431-100 *)
(* Summer 2012 *)
(* Project 2 *)

### The Plot Function

There are two required arguments for the `Plot` function: 1. the expression of the function and 2. the interval on which you want the graph. Example: Graph f(x) = x2 – 5x – 2 on [–10, 10]

`Plot[x^2-5x-2,{x,-10,10}]`

Alternatively, you can store x2 – 5x – 2 into f(x):

```f[x_] := x^2-5x-2 Plot[f[x],{x,-10,10}]```

To zoom in or out, simply change the interval as needed:

`Plot[f[x],{x,-1,6}]`

Alternatively, use the additional `PlotRange` argument:

`Plot[f[x],{x,-10,10},PlotRange->{-10,10}]`

### Questions (clearly label the questions and your work)

Graph the following functions using mathematica and describe their shape, asymptotes (if any), domain (in interval notation), and range (in interval notation). 0.4 points each. Zoom in/out where necessary:

1. f(x) = 3x – 2
2. f(x) = 2x2 – 5
3. f(x) = – x2 + 5x + 1
4. f(x) = – x3 + 2x + 3
5. f(x) = x3 + 3x2 + 5x
6. f(x) = 3x
7. f(x) = 2– x
8. f(x) = 0.6x
9. f(x) = √(x + 3); (use `Sqrt[x+3])`
10. ``` f(x) = log3(x + 5); (use Log[3,x+5]) f(x) = log0.5(2 – x); (use Log[0.5,2-x]) f(x) = | 3 – 2x |; (use Abs[3-2x]) ```
``` Please follow these guidelines when preparing your report: Find a partner with whom you will complete the project. One person in the project needs to send the instructor an email in iCollege and cc: your partner. Type your partner's name and the project number on the Subject line of the email. This email is due on or before 10:00 a.m. on 18 June (1 point deducted if not completed). Each function must be graphed in order and clearly labeled. The Mathematica code is to be submitted by email in iCollege on or before 10:00 a.m. on the due date. The summary of the shape, asymptote(s) (if any), domain (in interval notation), and range (in interval notation) must be typed (you may handwrite any unusual mathematical symbols, e.g., ∞) and submitted in class on or before 10:00 a.m. on the due date. Use mathematically correct notation. Do not use any cover page or report cover. Turn in one paper per group. The instructor will keep all papers. Make a copy for your files before turning in your paper. Clearly explain your reasoning. Use complete, grammatically-correct sentences or complete mathematical sentences. <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin var half = "a.m." var days = new Array(8); days[1] = "Sunday"; days[2] = "Monday"; days[3] = "Tuesday"; days[4] = "Wednesday"; days[5] = "Thursday"; days[6] = "Friday"; days[7] = "Saturday"; var months = new Array(13); months[1] = "January"; months[2] = "February"; months[2] = "February"; months[3] = "March"; months[4] = "April"; months[5] = "May"; months[6] = "June"; months[7] = "July"; months[8] = "August"; months[9] = "September"; months[10] = "October"; months[11] = "November"; months[12] = "December"; var dateObj = new Date(document.lastModified) var wday = days[dateObj.getDay() + 1] var lmonth = months[dateObj.getMonth() + 1] var date = dateObj.getDate() var fyear = dateObj.getYear() var lhour = dateObj.getHours() var lmin = dateObj.getMinutes() if (fyear < 2000) { fyear = fyear + 1900; } if (lhour >= 12) { half = "p.m."; } lhour = lhour % 12; if (lhour == 0) { lhour = 12; } if (lmin < 10){ lmin = "0" + lmin; } document.write(document.URL); document.write('<br>'); document.write('Last revised: '); document.write( lmonth + " " + date + ", " + fyear) document.write('&nbsp;'); document.write( lhour + ":" + lmin); document.write('&nbsp;'); document.write(half); // End --> ```