The distance along the path of the ship be within the range of the torpedoes is 4 kilometers.
Explanation:
The submarine lies 3 km from the target ship.
Let B denotes the target ship and C denotes the submarine.
Let AC denotes the the target ship would be within the range of the torpedoes.
The image attached below illustrates that the distance between submarine and the target ship and the range of the torpedoes.
Let BC denotes the distance between the target ship and the submarine. Let AC denotes the range of the torpedoes.
To determine the length of AB, let us use Pythagorean theorem,
Substituting the values of BC = 3 and AC = 5, we have,
Squaring the terms, we get,
Subtracting both sides by 9, we have,
Taking square root on both sides,
Thus, the distance along the path of the ship be within the range of the torpedoes is 4 kilometers.