Home

Homework   Index   Syllabus

Definite Integrals via Mathematica

Calculus 2 - Mathematics 120 - Spring 2007


  1. Click:  Start > All Programs > Mathematics > Mathematica.

  2. Once Mathematica is open, click:  File > Palettes > Basic Input.

  3. In the Palette that opens (or may already have been open), click on the Definite Integral button (see below).

  4. You can click on and type inside each of the "input boxes" of the Integral (can also use Tab and Shift-Tab to move between them).

  5. When done typing in the desired expressions, press Shift-Enter or the Enter key that's on your keyboard's number-pad.

  6. For Problem 19g, the answer may look like nonsense to you (involving Arc-hyperbolic-sine)! Here's what's happening:
    Type in Sqrt[2] (or use the Basic Input palette) to find the square root of 2; press Shift-Enter. Do this and see what happens!
    What's the result? Mathematica doesn't give you 1.4142...; instead it gives you back what you typed in! Why? Because it prefers to give you an exact answer. But you can tell it to give you a numerical approximation by typing in N[Sqrt[2]] ; try it!  N[ ] means "give me a Numerical answer".
    Note: capitalization and bracket-type matter: It's N[ ], not n[ ], nor N( ).

  7. Now go back to the problem you were working on and put N[ ] around it and press Shift-Enter.


Updated: 31 August, 2009 17:44:19