Wouldn't it be easier to have DC lines running along side the tracks and have some sort of roller contacts (if the lines are flat and the rollers are spring loaded) or brushes connect to those DC lines instead of overhanging lines (AC or DC) for electric trains? Everything from maintenance and capital cost would be reduced. Yes, having exposed high-voltage electrical lines close to the ground is risky and weather might also be a problem but these seem like problems much easier to solve than having a massive infrastructure of overhanging cables, pantographs, maintaining tension, aerodynamic inefficiencies with high speeds, etc.
Am I missing something here? Please let me know if I am wrong.