Menu ▾ ▴

#5882 taylor(x^2,[x,a,0,'asymp]) misses the term a^2

None
open
nobody
5
3 days ago
3 days ago
No

By Claude:

Asymptotic expansions at a finite point lose terms. With 'asymp, taylor(expr, [x, a, n, 'asymp]) expands in powers of u = 1/(x-a) through u^n. Since x = a + 1/u, x^2 is (x-a)^2 + 2*a*(x-a) + a^2 with the terms of order -2, -1 and 0 in u, but:

(%i1) display2d:false$
(%i2) taylor(x^2, [x, a, -2, 'asymp]);
(%o2) +0
(%i3) taylor(x^2, [x, a, -1, 'asymp]);
(%o3) +(x-a)^2
(%i4) taylor(x^2, [x, a, 0, 'asymp]);
(%o4) (x-a)^2+2*a*(x-a)

Rational functions are affected as well. Here x^3/(x^2-1) is (x-1) + 1 + 1/(x-1) + ... in powers of 1/(x-1):

(%i5) taylor(x^3/(x^2-1), [x, 1, 0, 'asymp]);
(%o5) +0
(%i6) taylor(x^3/(x^2-1), [x, 1, 1, 'asymp]);
(%o6) +(x-1)

At the point 0 a power of x is dropped whenever its exponent is larger than the order, although it has a negative order in 1/x:

(%i7) taylor(x^2+x+1, [x, 0, 0, 'asymp]);
(%o7) +1
(%i8) taylor(x^2/(x-1), [x, 0, 1, 'asymp]);
(%o8) +x

The right answers are x^2+x+1 and x+1+1/x.

Discussion


Log in to post a comment.