How Can You Factor Terms in Non-Polynomials Using Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter yitriana
  • Start date Start date
  • Tags Tags
    Mathematica Terms
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 9K views
yitriana
Messages
35
Reaction score
0
is there a way to factor terms in non polynomials

for example, to factor out (e^t)*t^2, (e^t)*t

e^t t^2 (b + a t) + e^t (2 b + 6 a t) + e^t (2 b t + 3 a t^2) -
2 (e^t (2 b t + 3 a t^2) + e^t (b t^2 + a t^3)) +
e^t (2 b t + 3 a t^2) Log[e] + e^t (b t^2 + a t^3) Log[e]
 
Physics news on Phys.org
You can factor out terms in Mathematica using Collect[expression, {terms}].

For example, Collect[a + a b + a b c, {a, b}] = a (1 + b (1 + c)).

But Collect[(a b)^2 + a b + a b c, {a}] = a^2 b^2 + a (b + b c), not a(a b^2 + b + b c).