Click on a box with a + inside to expland the section.
Limits
> limit((x+2)^(1/ln(x)),x=infinity); Evaluate a limit, exactly if possible.
> limit((x^2+3*x)/(4*x^2-3e^(-x)), x=infinity);
Derivatives
> f:=x-> 5*x^2+1; Define the function f to be the map taking x to 5*x^2+1.
> D(f); take the derivative of the function f. The answer is another function.
> D(D(f)); Derivative of the derivative.
> f; This is not a good way to see what the function is.
> f(x); Evaluate f at x to see what function it is.
> diff(f(x),x); Take the derivative of the expression f(x) with respect to x . The answer is an expression, not a function.
> g:=unapply(10*x,x); Turn an expression into a function.
> g(2); Evaluate the function g at 2
> unapply(f(x),x); Turn the expression f(x) into a function. This is another way of seeing what function f is.
> diff((x^2-3*x^4)/(ln(x)+x^(-3)),x); Just for kicks!
Antiderivatives
> F:=x->int(f(t),t=1..x); An antiderivative of f , a Maple function. The variable t is a dummy.
> F(x); Evaluate F at x to see what function it is
> P:=x->int((sin^2)(x)*cos(x),x); The function P is the antiderivative of an expression.
> P(x); See explicitly what function P is.
> Q:=int((sin^4)(x)*cos(x),x); The expression Q is the antiderivative of an expression.
> Q(2); Q is an expression, not a function, so this does not produce what you might expect!
> unapply(Q,x)(2); This is better. First turn Q into a function, then evaluate at 2.
> evalf(%); Evaluate numerically.
Definite Integrals
> int(f(x),x=1..5); Evaluate the definite integral exactly.
> int(exp(-x^3),x=1..5); There is no closed form expression for this integral, so Maple gives up.
> Int(exp(-x^3),x=1..5); Set up, but do not evaluate the integral.
> evalf(%); Evaluate the integral numerically.
Rectangles under graphs of functions
> with(student); Load the package called student . The output lists the functions included in this package.
> with(student): Use a colon rather than a semicolon to suppress the output.
> f:=x->9-x^2; Define a function.
> rightbox(f(x),x=1..6,20); Plot the function together with 20 right-hand endpoint rectangles.
> rightsum(f(x),x=1..6,20); Set up the Riemann sum corresponding to the total area of these rectangles.
> value(%); Give the exact value of the previous expression.
> R:=[[n,rightsum(f(x),x=1..6,n)] $n=2..60]: Set up the Riemann sum for an arbitrary number n of right-hand endpoint rectangles.
> plot(R,x=2..60,style=point,symbol=circle);
> L:=[[n,leftsum(f(x),x=1..6,n)] $n=2..60]: Set up the Riemann sum for an arbitrary number n of left-hand endpoint rectangles.
> plot(L,x=2..60,style=point,symbol=circle);
> T:=(L+R)/2: The trapezoidal rule is supposed to converge more quickly
> plot(T,x=2..60,style=point,symbol=circle);
> int(f(x),x=1..6); Confirm the value of the integral.