Calculus: derivatives, integrals and limits
Example 1. We set a polynom symbolically. First and third derivatives with respect to x are obtained.
f=x^5-2x^3-1
D[f,x]
D[f,{x,3}]
The same commands can be written with the help of palettes for mathematical symbols. If we use f' then we will recieve it as a substitution. То calculate the derivative we use . For the third derivative we add another x :
One can reperesent all functions by a declaration like this:
Example 2. Let us see the graphics of the derived functions from Example 1. Obviously interesting is the behaviour in the interval [-2,2] which is why we show the derivatives only in this interval.
Example 3. We define a function of two variables. The partial derivatives with respect to x is found, then to y, in the end - the mixed derivative .
Example 4. The variable f is nullified. We define the symbolical derivative.
f = .
D[f[x],x]
D[5* x *f[x], x]
Example 5. A new value is set to f, the old one is deleted automatically. An undefined integral is derived. In the end - a defined integral: a precise value and an approximate value.
Example 6. We set a function with the name newf. The derivative with respect to x and a double integral are calculated. Ultimately the result is given numerically.
Example 7. We set a trigonometric function. We want to carry out the definite integral, but the system is having difficulties, because we have singularities in the function Cos[ ]. Despite the slow calculations we get a result. If calculations are too slow we can interrupt them by pressin ALT + . or from the Kernel/Abort Evaluation menu.
Example 8. Here we show the graphics of the function from the previous example so that the singularities can be seen.
Plot3D[f[x,y],{x,0,1},{y,0,1}]
Example 9. New function and calculation of an integral with inconsistant boundaries.
Exampleр 10. This is an example of a triple integral. First the exact and then the approximate values are found. The latter is shown with double accuracy.
The upper example can be set in a usual way like this:
f= 1/(1+x+y+z)
Integrate[f,{x,0,1},{y,x/2,x},{z,(x+y)/2,x+y}]
N[%]
Example 11. Let us examine another function with singularities. The system does not find it difficult to draw the graphics even though in the point x=0 the function is not defined. Due to the large gap however, in a larger interval the zero is skipped.
Example 12. Let us find some boundaries and the indefined integral.
Example 12. Another function with sinugularities.
Example 12. Below are the graphics in suitably chosen intervals.
Plot[h,{x,-1, 1}]
Plot[h,{x,-1.5, -1.2}]
-Graphics-
-Graphics-
Created by Mathematica (October 10, 2007)