Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have input this:

Integrate[1, f[t]*Exp[(v/V)*t]]

That is $\large\int 1*d(f(t)*e^{\frac{v}{V}*t})$

I expected this output: $\large f(t)*e^{\frac{v}{V}*t} + C$

but instead I get:

Integrate::ilim: "Invalid integration variable or limit(s) in E^((t\v)/V)\ f[t]. "

What am I doing wrong ?

PS: in the model at the origin of my troubles t is the only variable v and V are constants

share|improve this question
But I want to integrate 1 with respect to f(t)*e^(v/V*t). – Ouistiti Jul 31 '13 at 12:20
You can want whatever you like, but you have to adhere to the Mathematica syntax. It expects a variable in that position and what you provide is clearly not a variable. – Sjoerd C. de Vries Jul 31 '13 at 12:23
Integrate[1, u] /. u -> f[t]*Exp[(v/V)*t] – gpap Jul 31 '13 at 12:28
This works thanks gpap do you want to put it as an answer? – Ouistiti Jul 31 '13 at 12:37
The type of integral you want to calculate often pops up when using the integration by parts trick. The resulting expression with a function behind the d is considered by many a (slight) abuse of notation and not mathematically solid. – Sjoerd C. de Vries Jul 31 '13 at 12:39
up vote 4 down vote accepted

Well, here's a (trivial) answer that works:

Module[{u}, Integrate[1, u] /. u -> f[t]*Exp[(v/V)*t]]
share|improve this answer
FYI: For best style u should be \[FormalU] or localized with Module. (+1) – Mr.Wizard Jul 31 '13 at 15:39
agreed and amended – gpap Jul 31 '13 at 15:47

Here's a way to implement your concept. But you do have to specify which variable is the variable of integration:

SetAttributes[int, HoldAll];
int[integrand_, D[measure_, var_Symbol]] := Integrate[integrand D[measure, var], var]

int[1, D[f[t]*Exp[(v/V)*t], t]]
(* E^((t v)/V) f[t] *)


int[f[t] Exp[(v/V) t], D[f[t]*Exp[(v/V)*t], t]]
(* 1/2 E^((2 t v)/V) f[t]^2 *)


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.