How do I get the $f(t_{n+1}, y_{n+1})$ needed to use the implicit Euler method?

Backward Euler is an implicit method whereas Forward Euler is an explicit method. The latter means that you can obtain $y_{n+1}$ directly from $y_n$. The former means that you in general must solve a (non-linear) equation at each time step to obtain $y_{n+1}$. The typical way to do this to to use a non-linear equation solver such as Newton's method.

Example:

Say we want to solve $$ \frac{dy}{dx}= y\cos{y}. $$ Backward Euler gives us $$ y_{n+1} = y_n + h y_{n+1} \cos{y_{n+1}} $$ or $$ y_{n+1}(1 - h \cos{y_{n+1}}) = y_n, $$ which clearly is non-linear in $y_{n+1}$ and thus requires a non-linear solver.

Update:

The reason we shouldn't use Forward Euler to obtain $f(t_{n+1},y_{n+1})$ is that it defies the entire purpose of the implicit method. If we can obtain $f(t_{n+1},y_{n+1})$ in a stable way using Forward Euler, then we can also obtain $y_{n+1}$ in a stable way, hence there is no need for the implicit method in the first place. However, usually the very reason for using an implicit method is that explicit ones (Forward Euler in this case) are unstable for certain problems, which brings us back to square one.


You can use fixed point iteration or Newton iteration

Fixed point iteration is

$$y_{n+1}^{(s+1)}= y_n + hf(t_{n+1}, y_{n+1}^{(s)})$$

with iteration starting with explicit Euler: $y_{n+1}^{(0)}= y_n + hf(t_{n+1}, y_n)$