A point charge with a charge q1 = 3.80 μC is held stationary at the origin. A second point charge with a charge q2 = -4.10 μC moves from the point x= 0.140 m , y=0 to the point x= 0.240 m , y= 0.240 m. How much work is done by the electric force on q2?

I know that work = force*distance, and that force = k*q1*q2 / r^2, but I don't know what r is and I don't know how to calculate the distance given both change in the x and y directions. What should I do? Thanks

Hard way: do an integral force dot distance over the path, and of course the force magnitude and direction (cosTheta) is dependent on position. That would be an interesting exercise.

Easy Way. Calculate the difference in potential energies at each point: that is the work it took to get there, INDEPENDENT of path.
Work= Vb*q2 - Va*q2
and for course, V=kq1/distance
distance= distance from the point to the origin.

For the latter method, I understand the concept of path independence and computing work using the two points, such that (U = potential energy)

W = Uf - Ui
And I understand that V (electric potential) is
V = U/q0
such that U = Vq
And that V is also equal to kq/r

But I need a bit of help understanding the difference between Vf and Vi, and why both are multiplied by q2. Also, what distances are used? Initially, it should be .14m in the x direction; but the final distance using the pythagorean theorem is .34m at some angle. Is the angle irrelevant?

vf=final point

vi=voltage at initial point
final distance does not depend on angle. Voltage potential is a Scalar, not a vector.

To calculate the distance between the two points (0.140m, 0) and (0.240m, 0.240m), you can use the Pythagorean theorem. The distance formula is given by:

distance = sqrt((x2 - x1)^2 + (y2 - y1)^2)

In this case, (x1, y1) = (0.140m, 0) and (x2, y2) = (0.240m, 0.240m). Plugging in the values, you get:

distance = sqrt((0.240m - 0.140m)^2 + (0.240m - 0)^2)

Simplifying, you have:

distance = sqrt((0.1m)^2 + (0.240m)^2)

Now, you can calculate the value of r in the electric force equation.

Next, you can plug in the values of q1, q2, and r into the electric force equation:

force = (k * q1 * q2) / (r^2)

where k is the electrostatic constant, q1 is the charge of the stationary point charge, q2 is the charge of the moving point charge, and r is the distance between them.

Once you have calculated the force, you can then multiply it by the distance to find the work done by the electric force on q2:

work = force * distance

Remember to use consistent units throughout the calculations, converting any values to the appropriate unit if necessary.