Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multivariate Taylor series expansion in Mathematica

Mathematica seems to be missing a function for this, or I can't find it anyway.

The Series function can do expansion in succession for multiple variables, but it doesn't seem capable of doing a full multivariate expansion.

Does anyone know how to do this?

Thanks

like image 278
Nick Avatar asked Oct 12 '11 23:10

Nick


1 Answers

This question is not clear to me. Do you mean something like this, where you get terms up to some specified total degree?

f[x_, y_] := Sin[x*y^2] + x^4*y - 3*x*Cos[y] - x^2*y^3

Normal[Series[f[x*t, y*t], {t, 0, 5}]] /. t -> 1
(*
->  -3*x + x^4*y + (5*x*y^2)/2 - x^2*y^3 - (x*y^4)/8
*)

Daniel Lichtblau

like image 147
Daniel Lichtblau Avatar answered Sep 22 '22 12:09

Daniel Lichtblau