Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'll give a concrete example and I hope that my general question will be clear.

Say I have three variables, $f$, $g$, $h$, and I know that $f=\mathcal O(x)$, $g=\mathcal O(x^2)$, $h=\mathcal O(x^3)$ ($\mathcal O$-notation) or something of that sort. Now, I want to do a series expansion of expressions involving $f$, $g$, $h$ to a consistent order in $x$. For example, if I write Series[..., {x,0,4}] I want to keep terms like f^3 and f g but to throw away terms likef g^2 and g h.

Is there a simple way to do so?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

Try this

Normal@Series[expr/.{f->x f, g->x^2 g, h->x^3 h},{x,0,4}] /.x->1

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.