Basically, the situation is:
y
^
|
|
|
|
<=|====================----------p-----------------> x
... where the ='s represent a line of uniform charge (with given charge q) and given length L. The goal is to find the electric field generated by that charge at point p, a given distance from the end of the line of charge.
My intuition says that the way to solve the problem is to expand the line into a sphere of charge surrounding the bar with radius 1/2L. At that point, since I can treat a uniformly charged sphere as a point charge, and the sphere would be uniformly charged in the x direction only (or maybe better to say that it produces a perfectly symmetrical field pointed in the +/-x direction), I can treat the line of charge as a point charge centered at 1/2L.
Is this a valid approach to solving this problem, and if not, why not?
Disclaimer: This is a homework question, so I'm trying to follow normal SE homework policy. Please let me know if I'm letting you down. :)