A tugboat is traveling at 30 miles per hour at a compass heading of 38 degrees. The current is from the direction of 125 degrees moving at 7 mph. Find the resultant speed and the direction of the boat.

I understand the concept and that I must use the law of cosines. I got 30^2+7^2-2(30)(7)cosine of ___. I don't understand how to find the angle.

I appreciate your time, thank you.

Draw a diagram. Label the angles in the drawing, and you will see that the angle you must use is 180-38-35 = 107°

Be sure to note that the current is coming from the direction of 125°. That means the current's flow is in the direction 305°.

To find the angle in the law of cosines formula, we can use the concept of vector addition. Let's break down the vectors involved in this problem.

The velocity of the tugboat can be represented as a vector with a magnitude of 30 mph, and the current can be represented as a vector with a magnitude of 7 mph.

To find the resultant speed and direction of the boat, we need to find the sum of these two vectors. We can do this by breaking down the vectors into their horizontal and vertical components.

For the tugboat, the horizontal component can be found using the formula:

horizontal component = velocity * cosine (heading angle)

Substituting the known values:

horizontal component = 30 * cosine (38 degrees)

Similarly, the vertical component of the tugboat's velocity can be found using the formula:

vertical component = velocity * sine (heading angle)

Substituting the known values:

vertical component = 30 * sine (38 degrees)

Now, let's find the horizontal and vertical components of the current in a similar manner:

horizontal component of current = 7 * cosine (125 degrees)
vertical component of current = 7 * sine (125 degrees)

Next, we can add the horizontal components and vertical components separately:

horizontal component of resultant velocity = horizontal component of tugboat + horizontal component of current
vertical component of resultant velocity = vertical component of tugboat + vertical component of current

Now, we have the horizontal and vertical components of the resultant velocity. To find the resultant speed, we can use the Pythagorean theorem:

resultant speed^2 = (horizontal component of resultant velocity)^2 + (vertical component of resultant velocity)^2

Once we calculate the resultant speed, we can find the direction by using trigonometry. The direction angle can be found using the inverse tangent function:

direction angle = inverse tangent (vertical component of resultant velocity / horizontal component of resultant velocity)

Substituting the calculated values, we can find the direction angle.

I hope this explanation helps you in obtaining the solution to your problem!