# Workaround for Series messing up Inactive[Integrate]

Bug introduced in 10.0

Series does not correctly construct expansions of inactive Integrate:

Series[Inactive[Integrate][x^a, {x, 0, 1}], {a, 0, 2}]


It pulls stuff that depends on the integration variable x, outside of the integral.

Is there a workaround? Is this a bug, or intended behavior?

Edit: Reported as bug, case 3895925

• Well, it's incorrect, so I've got to think it's not intended. – Michael E2 May 26 '17 at 22:38
• The problem is that due to Inactive the Series code treats the integral as any other function, hence takes derivatives of it. It is instructive to replace Integrate by f. – Bruno Le Floch May 27 '17 at 2:41

taylor[f_, x_List, x0_List, n_Integer] :=