Real World article
(written from a Production point of view)

The USS Intrepid was a Federation starship that was in service to Starfleet in the late 23rd century.

In 2285, this ship was docked within Spacedock in orbit above Earth. Just as the Whale Probe was passing by this space station, the Intrepid and the USS Excelsior were being cleared for departure. Subsequent to the station losing power, and the exit doors malfunctioning, an officer aboard the Intrepid reported that their ship couldn't power up. (Star Trek IV: The Voyage Home)

This ship was mentioned in a deleted scene from the movie's script. [1]