Function $f_n(t)$ is defined for all positive integer $n$ and is continuously differential in $t$ for $t\in[0,T]$.
We have a recursive differential equation that we would like to solve.
$$\frac{\partial f_n(t)}{\partial t}-\alpha\left(f_n(t)-f_{n-1}(t)\right)+\alpha\beta=0,$$ with the terminal condition $f_n(T)=0$.
Now we know that for $n=1$, we have $f_1(t)=\beta-\beta e^{-\alpha(T-t)}$. So we would like to find $f_n(t)$ for $n\ge 2$.
The first thought I had was solving using the integrating factor method. Doing that, we get this solution $$f_n(t)=\int_{t}^{T}\left(\alpha\beta + \alpha f_{n-1}(s)\right)e^{-\alpha\left(s - t\right)}ds.$$ This is nice but for higher $n$, solving the integral is very messy.
Is there another way to find a closed-form expression for $f_n(t)$?
I got a hint on using the Laplace Transform, the closed-form expression of $f_n(t)$ is something like $k + (a+bx+cx^2+…) e^{-\alpha x}$ where $x=T-t$.
So using this hint, I started with $n=2$ but I don't get this form. I can compute $f_n(t)$ for each $n$ but not a closed-form for any $n$.
Could someone help please?