I am trying to learn more about calculus by myself, in order to be able to use dynamical systems analysis methods. In a book example, I have to find $f(t)$ from this:
$$\frac{df(t)}{dt}+\frac{v}{V}f(t) =\frac{m}{V}$$
with $m$, $v$ and $V$ being parameters
This is a linear differential equation, so I used an integrating factor (as advised in the book) and I get:
$$\frac{d\left(f(t)\cdot \exp\left[\frac{v}{V}t\right]\right)}{dt}=\frac{m}{V}\cdot \exp\left[\frac{v}{V}t\right]$$
I know what the answer is supposed to be, but I keep failing at finding the good solution. I guess my knowledge and skills are too low, but I am working on it and will edit :)
Could you please tell me what are the steps to integrate this and get an expression of $f(t)$?
According to the book the solution is : $$f(t)=\frac{m}{v}-k e^{-\frac{v}{V} t}$$
And it is also the output I get from Mathematica from this code:
DSolve[f'[t] + (v/V)*f[t] == m/V, f[t], t]
I still cannot find that on paper :/
Here is what I find (please don't hate about the maths and LaTex, I just started learning):
$$\int {d\left(f(t)\cdot \exp\left[\frac{v}{V}t\right]\right)}=\frac{m}{V}\int \cdot \exp\left[\frac{v}{V}t\right]\cdot dt$$
which gives
$$f(t)\cdot \exp\left[\frac{v}{V}t\right]=\frac{m}{V}\cdot\frac{V}{v}\cdot \exp\left[\frac{v}{V}t\right]$$
so
$$ f(t)=\frac{m}{v} $$
WHERE AM I WRONG ?
So it was ridiculously simple, just omitted the constant when integrating...
$$\int {d\left(f(t)\cdot \exp\left[\frac{v}{V}t\right]\right)}=\frac{m}{V}\int \cdot \exp\left[\frac{v}{V}t\right]\cdot dt$$
which gives
$$f(t)\cdot \exp\left[\frac{v}{V}t\right]+C=\frac{m}{V}\cdot\frac{V}{v}\cdot \exp\left[\frac{v}{V}t\right]$$
so we divide everything by $exp\left[\frac{v}{V}t\right]$
$$ f(t)+\frac{C}{exp\left[\frac{v}{V}t\right]} =\frac{m}{v} $$
$$ f(t) =\frac{m}{v}-C\cdot \exp\left[-\frac{v}{V}t\right]$$
Thank you littleO