Two ships A and B leaves the some harbour at the same time in directions 152° and 142° respectively calculate the distance between the two ships when A has travelled 10km and B has travelled 12km. What is the bearing of A from B at this time

Draw a diagrem, as always.

use the law of cosines for the distance
d^2 = 10^2+12^2-2*10*12cos10° = 7.646
d = 2.765

To find the bearing, note that the locations are
A:(4.695,-8.829)
B:(7.388,-9.456)
So the bearing is 270+θ such that
tanθ = (9.456-8.829)/(7.388-4.695)=0.233
θ = 13.1°
So, the bearing of A from B is 283.1°

283.1

To calculate the distance between the two ships, we can use the Law of Cosines. Let's use the following variables:

- \(d\) represents the distance between the two ships.
- \(d_A\) represents the distance traveled by ship A.
- \(d_B\) represents the distance traveled by ship B.
- \(\theta\) represents the angle between the two paths of the ships.

Given:
\(d_A = 10\) km
\(d_B = 12\) km

To calculate \(\theta\), we can use the formula:

\[\cos(\theta) = \frac{d_A^2 + d_B^2 - d^2}{2 \cdot d_A \cdot d_B}\]

Rearranging the formula, we have:

\[d^2 = d_A^2 + d_B^2 - 2 \cdot d_A \cdot d_B \cdot \cos(\theta)\]

Plugging in the values, we have:

\[d^2 = 10^2 + 12^2 - 2 \cdot 10 \cdot 12 \cdot \cos(\theta)\]

Simplifying further:

\[d^2 = 100 + 144 - 240 \cdot \cos(\theta)\]

Using the identity \(\cos(\theta) = \cos(-\theta)\), we can rewrite the formula as:

\[d^2 = 100 + 144 - 240 \cdot \cos(-\theta)\]

Now, let's calculate the value of \(\theta\):

\[\cos(-\theta) = \frac{100 + 144 - d^2}{240}\]

\[-\theta = \arccos\left(\frac{100 + 144 - d^2}{240}\right)\]

To find \(d\), we can substitute the given values of \(d_A\) and \(d_B\) into the equation:

\[d = \sqrt{10^2 + 12^2 - 2 \cdot 10 \cdot 12 \cdot \cos(-\theta)}\]

Finally, we can calculate the bearing of ship A from ship B by subtracting the direction of ship B from the direction of ship A:

\[\text{Bearing} = 152° - 142°\]

To solve this problem, we can use the concept of vector addition to find the position vectors of ships A and B after traveling certain distances. Then, we can use the distance formula and bearing calculation to find the answers.

1. Finding the position vectors of ship A and ship B:
- Let's assume the initial position of both ships is at the origin (0,0) in a coordinate system, and that North is the positive y-axis.
- Ship A is traveling in a direction of 152°. We can represent this direction as a vector with magnitude 10km and angle 152° measured counterclockwise from the positive x-axis. We can use trigonometry to find the components of this vector:
- The x-component of the vector = 10km * cos(152°)
- The y-component of the vector = 10km * sin(152°)
- Similarly, for ship B traveling in a direction of 142°, we can find its components:
- The x-component of the vector = 12km * cos(142°)
- The y-component of the vector = 12km * sin(142°)

2. Calculating the distance between the two ships:
- Once we have the position vectors of ship A and ship B, we can calculate the distance between them using the distance formula:
- Distance = sqrt((x2 - x1)^2 + (y2 - y1)^2)
- Substitute the corresponding coordinates into the formula to find the result.

3. Finding the bearing of A from B:
- To find the bearing of A from B, we need to calculate the angle between the positive x-axis and the line segment connecting the two ships.
- We can use trigonometry to find this angle:
- Angle = arctan((y2 - y1) / (x2 - x1))
- Convert the angle to the appropriate bearing format (e.g., between 0° and 360°).

By following these steps, you can find the distance between the two ships when A has traveled 10km and B has traveled 12km, as well as the bearing of A from B at that time.