Many a times in symbolic manipulations, I end up with lots of terms of higher powers of a variable. Is there a command to drop all the terms above a given power from a symbolic expression?
Eg: from an expression f(x)= x+ x^2 + x^3 + x^4
I want to get only upto 2nd order. i.e. g(x)= x + x^2
This will be very useful for simplifying expressions upto lower order terms for further calculations.