The Question: Given $f'(x) = 5f(x)$ and $f(3) = 2$ find the equation for $f(x)$
My Problem: My attempt to solve it produced the wrong answer. I got $f(x) = \frac{28}{5x - 1}$ but the correct answer is $f(x) = 2e^{5(x-3)}$ (you can follow this link to see how it is solved).
Note: I am not asking how to get the correct answer, as I have already found and understood such an explanation. I am instead asking why my process is incorrect.
My Method:
- $\frac{df(x)}{dx} = 5f(x)$
- $df(x) = 5f(x)dx$
- $\int{df(x)} = \int{5f(x)dx}$
- $f(x) = 5f(x)\cdot x + C$
- $f(3) = 5f(3)\cdot 3 + C$
- $2 = 30 + C$
- $C = -28$
- $f(x) = 5f(x)\cdot x - 28$
- $28 = f(x)(5x - 1)$
- $f(x) = \frac{28}{5x - 1}$
Explanation: I know my answer is wrong, as it does not satisfy the condition $f'(x) = 5f(x)$, yet I am intrigued by this problem as I cannot seem to figure out what I did wrong. My answer does satisfy the condition $f(3) = 2$ and its derivative - $f'(x) = -\frac{140}{(5x - 1)^2}$ - is suggestive of some similarity to the original differential (eg numerator is multiplied by 5). Perhaps someone can enlighten me regarding where I went astray. Thank you.
Your mistake is in going from (3) to (4).
Since $f(x)$ is a function of $x$, you cannot treat it as a constant in the integral. Basically, you should not say
$$\int 5 f(x) dx = 5 f(x) \cdot x + C$$