Use Maxima to work this project. Each group should email an annotated Maxima file to the instructor.
This problem is about finding the number of intervals needed to get the desired accuracy in an estimation. See section 6.5 for more information. There are some helper functions for the numeric approximations that you can use after you have determined the appropriate number of intervals.
Consider the integral \(F= \displaystyle \int_0^3 f(x)\, dx \), where \( f(x) = \exp\left(\dfrac 1 3 x - \dfrac 1 7 x^3\right)\).
A Computer Algebra System (CAS) is extremely beneficial for computing integrals. Maxima is the free CAS we use in class, but there are other commercial products available. There are even online interfaces to some computer algebra systems; WolframAlpha is one of the most popular of these, providing an interface to the Mathematica CAS.
Sometimes, computer algebra systems will return the same answer and other times they will return different answers. In this portion, we'll look at a couple of problems and show that, although the results appear different, they are either the same or differ only by a constant.
One reasonable way of showing answers are the same is to pick 5 random values and show that both expressions give the same value. Pick 5 different values for \( x \) that are in the domain of expression and substitute them into both expressions. Show that you get the same value (or that the difference between them is the same). Be sure to mix up the values for \( x\) since it is possible that certain conditions may hold if you only pick integers or only pick positives.
Consider the integral \( \displaystyle \int \frac{\sqrt{4x^2+9}}{x}\, dx \).
Here's one way you can accomplish this with Maxima.
P:[comma separated list of x values goes here];
M:Maxima answer goes here;
W:WolframAlpha answer goes here;
makelist(M-W,x,P);
The makelist() function will find the difference between M and W for every x value in the list P.
Another way to check for equality is to convert each expression into a series. We'll talk about this in chapter 8, but for now, we'll just let the computer do it for us. A convenient way to do this is to find a Taylor series and then compare terms. They should be identical except for possibly the constant term.
A commonly used series is the Maclaurin series, which is just a Taylor series centered at \( x = 0 \). Unfortunately, if \( x = 0 \) is not in the domain of the problem, you'll need to pick another value that is. It doesn't really matter what the value is, as long as it is in the open interval (not an endpoint) of the domain.
Consider the integral \( \displaystyle \int (x+3) \sqrt{x^2-9}\, dx \).
Here's what the Maxima pseudo-code would look like:
p:point in domain;
M:Maxima answer goes here;
W:WolframAlpha answer goes here;
taylor(M,x,p,6);
taylor(W,x,p,6);