Maple/Lesson 7: Using Maple in Analysis

From Wikibooks, the open-content textbooks collection

< Maple
Jump to: navigation, search

There are many various kinds of analysis, and in very few of of them Maple may help. One of "maplable" analises is the Asymptotical analysis. It is typical, that at calculus of cumbersom expressions, small values of some parameters are especially interesting. One can evaluate derivatives and then approximate the function with truncated Tailor series. As these operations often appear together, there is special service called series.

[edit] Examples of series

series(sin(x), x, 4)

returns

x-1/6*x^3+O(x^4)

because the function sin has known derivatives. If the funcion is not known, the derivatives remain in general form:

s(0)+(D(s))(0)*x+1/2*((`@@`(D, 2))(s))(0)*x^2+1/6*((`@@`(D, 3))(s))(0)*x^3+O(x^4)

One can guess that the sequence

`@@`(D, 2))(s))(0)

means second derivative of function whose name is s.

In general, arguments of series can be: expression, variable which is suppesed to be small, and the minimal power of this argument dropped out.

If no obvious dependenve of the expression on the variable is found, the result is just expression:

series(a, b)

returns just

a

Not all functions can be expressed as Tailor expansion. Nevethe less Maple series tries to do its best, for example,

series((1+1/x^2)/(1+2/x+x*log(x)), x, 2)

returns

1/2/x-1/4+(5/8-1/4*ln(x))*x+O(x^2)

which may have sense in asymptotic analysis.

It is not figgicult to write a function when the series cannot help, for example,

series(exp(1/x^2), x, 3)

returns

Error, (in series/exp) unable to compute series

although it is easy to see, that, at least for the real values of the argument, all the derivatives in zero are just zero. My default, Maple considers all variables as complex; in the complex plane, behavior of the function in the last example is pretty singular and no simple expansion is possible.