2

There is supposed to be a command or set of commands to find the constant term of a binomial expression like

$$ \left(-2x^4 + \dfrac{-5}{x}\right)^{25} $$

(-2*x^4 - 5/x)^25

but I can manage to find it. Help would be greatly appreciated.

AsukaMinato
  • 9,758
  • 1
  • 14
  • 40
Orm
  • 137
  • 3

3 Answers3

17
Coefficient[(-2*x^4 - 5/x)^25, x, 0]
(*    -162139892578125000000    *)
Roman
  • 47,322
  • 2
  • 55
  • 121
6

The following, also, works:

(-2*x^4 - 5/x)^25 // SeriesCoefficient[#, {x, 0, 0}] &

Output is

-162139892578125000000

5
(-2*x^4 - 5/x)^25 // First @* ExpandAll
-162139892578125000000
kglr
  • 394,356
  • 18
  • 477
  • 896