# How to get Integrate to resolve integrals term by term?

Integrate seems to return a whole expression unresolved whenever just a single term is unintegrable. How do I get it to return the integral of all terms that are resolvable with the only the unintegrable terms unresolved?

For example, I think Integrate[x^2 + (Log[x]Log[1-x])^2,x] should return x^3/3 + Integrate[(Log[x]Log[1-x])^2,x]; instead it returns the whole expression unintegrated. Even invoking Simplify or FullSimplify doesn't help.

I'm Integrating an expression that, when expanded, has only one unintegrable term, but I would like to have the results for the other terms.

• Map[Integrate[#, x] &, x^2 + (Log[x] Log[1 - x])^2]
– Bill
Apr 25, 2017 at 18:46

Map the Integrate onto the expression. "Map[f,expr] or f/@expr applies f to each element on the first level in expr."
Integrate[#, x] & /@ (x^2 + (Log[x] Log[1 - x])^2)