For a constant force, we say that work,
Here, assuming you mean the particle ends up at
I don't wish to complicate this, but we have assumed that the particle moves in a straight line. We do not need to make that assumption as the field is conservative. It just simplifies the calculation.