Implicit Euler Integration

I'm trying to write a code to implement he backwards Euler method to integrate the equation of motion. The sticking point seems to be that the acceleration is due to drag, and thus is dependent on the new position and velocity.

I understand the method to be:

$v_{i+1}=v_{i}+a_{i+1}δ$
$x_{i+1}=x_{i}+v_{i+1}δ$

With only the current conditions I can’t evaluate $a_{i+1}$ and am stuck.

Any help on how the implicit methods work would be really appreciated.

I’ve considered using $a_{i+1}= a_{i}+ (a_{i}-a_{i-1}){δ}$ but then that’s not really an implicit method is it? – you’re simply reusing the acceleration from last time around.

 PhysOrg.com science news on PhysOrg.com >> Front-row seats to climate change>> Attacking MRSA with metals from antibacterial clays>> New formula invented for microscope viewing, substitutes for federally controlled drug
 The backwards Euler method is iterative. The first guess is usually the forward Euler method, so the right-hand side is determined using the information at time "i". You now have a first estimate of the properties at time "i+1". You can now use these estimates in the right-hand side to get a better estimate of the properties at time "i+1". so for your example, first use a and v at time "i", then you have v and x at time "i+1". Now calculate a at "i+1" and recalculate v an x, but using your new estimate of a and v at "i+1": first iteration: $v^1_{i+1}=v_{i}+a_{i}\Delta t$ $x^1_{i+1}=x_{i}+v_{i}\Delta t$ calculate $a_{i+1}=f(v^1_{x+1})\Delta t$ second iteration: $v^2_{i+1}=v_{i}+a^1_{i+1}\Delta t$ $x^2_{i+1}=x_{i}+v^1_{i+1}\Delta t$

Recognitions:
 Quote by RH10 I’ve considered using $a_{i+1}= a_{i}+ (a_{i}-a_{i-1}){δ}$