0

I have the mathematical expression

Integrate[f[r], {r, τ, t}] == a*Integrate[f[r]/a, {r, τ, t}]

which is obviously true for all functions f[r] if a is a constant. However, Mathematica does not simplify the above expression to "true". Even Simplify and FullSimplify don't work. What am I doing wrong?

march
  • 23,399
  • 2
  • 44
  • 100
HerpDerpington
  • 333
  • 1
  • 6

1 Answers1

2

Mathematica does not like to take things out of integrals.

You can define the following rule:

repl = Integrate[x_ y__, {var_, bounds__}] /; FreeQ[x, var] :> 
  x Integrate[y, {var, bounds}];

And then Mathematica will happily factor out the "constants"

Integrate[f[r], {r, τ, t}] == 
  a*Integrate[f[r]/a, {r, τ, t}] /. repl
(* True *)
march
  • 23,399
  • 2
  • 44
  • 100
Natas
  • 2,310
  • 4
  • 14