In the extreme case, a railway which is 200 miles long and takes 3 trains a day will never have a positive financial case for electrification. So once you've electrified all the stuff that should have been done decades ago (like main lines with 10 trains an hour) and then pushed on to the marginal stuff (hourly rural lines) there's still a small core of lines left. You could just bite the bullet and electrify them anyway, or you could go with things like battery electric trains (good for short distances off an electric mainline) or biodiesel/green hydrogen. The latter are likely to be cheaper.
Hydrogen trains might make sense even if hydrogen cars don't, since the trains run on their tracks, according to a fixed timetable, and need little new infrastructure.
It requires a high pressure (300-bar minimum, 700-bar ideal) environment... or cryogenics to store compact liquid hydrogen.
Building a small, personal, car-tank that withstands 700-bar of pressure and survives typical car accidents is... really difficult? However, building a large train-tank that withstands a typical derailment is far easier.
------
I don't think Hydrogen will ever be useful for personal cars. The pressure requirements / storage requirements look rather insane.
I know there's groups working with carbon-fiber designs and other advanced materials, but those are really expensive. Larger trains / trucks can just use standard steel to contain the Hydrogen at 700-bar of pressure (because a bigger tank is easier to scale).
But they're expensive, very expensive, because those storage tanks are extremely sophisticated. Unless those storage tank costs come down by a LOT, I don't think H2 cars will compete reasonably against other technologies (Hybrid, PHEV, or EVs)
-----
$50,000 for an H2 vehicle with only 180 horsepower engine is really meh.
It also turns out that we've repeatedly stopped and restarted our electrification campaign over the last hundred years, such that we have little persistent expertise and excessive costs per km. So it's not just tunnels and bridges.
So roughly 340km of double-track for $1.5bn.
https://en.wikipedia.org/wiki/Midland_Main_Line_railway_upgr...
With the numbers US planners are spewing out, we'd never have fast train network in Switzerland or high-speed rail across Italy, France or Spain.
The UK government estimates £600k/track-km, so even in the US with high wages it should be doable at $2 million/km per track if budgeted carefully...
From an engineering perspective the complication of the track electrical infrastructure and pantograph seem inferior to a hydrogen tank and fuel cells. Far less actual stuff to build and maintain.
Set against that, the miles per technical incident for electric trains are about twice that for diesel, and a train breaking down on the ECML is also disruptive, if not obviously infrastructural...
http://www.rail.co.uk/rail-news/ecml-suffers-another-failure...
Source: https://www.tagesschau.de/wirtschaft/deutsche-bahn-siemens-w...
The two techs are complementary.
You see this on tram systems where bridges or junctions conplicate the overhead wires.