A power series expansion of a multivariate function can be performed with the Series command, which performs each expansion consecutively. The results can be a bit clunky, however.
Often "mixed" terms will show up. For instance, a function f(x,y) expanded to the first order about zero in x then y will often have terms a*x*y with a some constant. Since we've aske for a first-order expansion, terms like a*x*y are undesirable. It is easy-enough to fix this in the two-variable case with something like this.
ReplaceAll[#,{x*y :> 0}]&
But in n variables, an explosion in the number of possible combinations becomes prohibitive to use this "by-hand" type of fix. Is there an elegant solution to this? I could write a routine to generate all combinations and corresponding list of replacement rules, but this seems... excessive.
Is there a better way to perform the expansion that avoids this? Or is there an elegant simplification method?
, then expand int, then maybe useNormal[expansion] /. t->1. Modify as needed if not expanding at the origin (either translate or, if at infinity, use reciprocals-- whatever it takes so that you can expand att=0`). – Daniel Lichtblau Aug 20 '13 at 21:00{x,y,z}fort*{x,y,z}, even terms that are derivatives of{x,y,z}will be replaced and thesetcoefficients will be expanded over---which is undesirable. However, I realize that most people will simply useReplaceAll. Which works. – Rico Picone Aug 26 '13 at 18:35