For the region 0≤x≤d:
Time taken to exit the field: t1=V0d
Acceleration along the y-axis: ay=−mqE
For the position and velocity components at the boundary x=d:
y1=21ayt12=−2mV02qEd2
Vx=V0,Vy=ayt1=−mV0qEd
For the straight-line trajectory in the region x>d:
Slope of the path: M=VxVy=−mV02qEd
Equation of the line passing through (d,y1): y−y1=M(x−d)
y−(−2mV02qEd2)=−mV02qEd(x−d) ⟹ y=−2mV02qEd2−mV02qEdx+mV02qEd2
y=mV02qEd(2d−x)