I was pleased to see that a recurrence relation that I'm interested in already has been discussed in this MSE post. However I do not understand how to use the function $f(x)$ once all the integration has been completed.
I wish I could make this post longer and discuss what I've tried and where I'm stuck, but I simply have no clue how the make use of $f$. My only idea is that perhaps it can be used to convert the problem into a linear homogenous recurrence relation, but that's just a hunch at this point.