Find the distance I traveled (c) by doing cos(a+b)?

  • Thread starter Gamish
  • Start date
In summary, the conversation discusses finding the distance traveled between two cities and how to calculate it using the Pythagorean theorem. The use of cosine is deemed unnecessary and it is explained that the distance between the cities is fixed and can be found using the theorem. Questions about calculating time and distance when traveling in a straight line are also addressed. It is noted that certain mathematical functions can only take pure numbers as arguments and that knowing the distance alone is not enough to calculate time or speed without further information.
  • #1
Gamish
108
0
If I travel A distance north, and B distance west, then can I find the distance I traveled (c) by doing cos(a+b)? I think that cos serves some sort of a purpose in finding the distance C, but I just can't figure it out. Can someone please help me out.
 
Physics news on Phys.org
  • #3
Im sorry, I think I should re-word my question. If I traveled from city City X to city Y, but I did not travel in a straight ling, how do I now the distance from city X to city Y? Instead of traveling in a straight line, I travel like x miles north, then x miles west. Sure, I can find the hyphotenius, but how do I find the distance I traveled from city X to Y?

(1/3*3 / 2) <> (1/2)
 
  • #4
"cos(a+b)" has nothing to do with this, especially since a and b are not angle!

da willem's answer is the one you want:

Pythagorean theorem: if the legs of a right triangle (the sides adjacent to the right angle) have length a and b and c is the length of the hypotenuse (the side opposite the right angle), then c2= a2+ b2.
 
  • #5
Gamish said:
Im sorry, I think I should re-word my question. If I traveled from city City X to city Y, but I did not travel in a straight ling, how do I now the distance from city X to city Y? Instead of traveling in a straight line, I travel like x miles north, then x miles west. Sure, I can find the hyphotenius, but how do I find the distance I traveled from city X to Y?

(1/3*3 / 2) <> (1/2)

It's not important the road u took to get from A to B.You asked about the distance from A to B.These are towns and,unless big tsunami takes one of them with him,they are fixed.The distance is constant and assuming you neglect the Earth's's curvature,it's given by the pythagorean theorem.

Daniel.
 
  • #6
Gamish said:
Instead of traveling in a straight line, I travel like x miles north, then x miles west. Sure, I can find the hyphotenius, but how do I find the distance I traveled from city X to Y?

if you travel x miles nort, then x miles west you traveled x=x=2x in total ?! :confused:

Or perhaps you mean on a curved surface like the earth. Then are you asking the distance through the earth, or the shortest line over the surface of the earth?
 
  • #7
Guys, what he's asking is can he find teh distance between the cities using how far he travelled, if the road he took was not a straight line.

And of course, he can't. And there's no way cosine would help.
 
  • #8
Thanks, DeadWolfe, I missed that.

Gamish, If you went x north and then y east, the distance YOU traveled is, of course, x+ y.
The straight line distance between your beginnning and ending points is
&radic;(x2+ y2).
 
  • #9
HallsofIvy said:
Thanks, DeadWolfe, I missed that.

Gamish, If you went x north and then y east, the distance YOU traveled is, of course, x+ y.
The straight line distance between your beginnning and ending points is
√(x2+ y2).

I am assuming that √(x2+ y2) means sqrt(x^2+y^2). erm, it seems simple, I must do some calculations with my new found knoledge.

Thanks you.
 
  • #10
I have 2 questions.

1.Can you use the d=sqr(x^2+y^2) to also calulate the time it will take you to travel in a straight line from city city X to city Y. For instance, it took me 1 hour to travel the X line, then .5 hours to travel the Y line, therefore, at those speeds, if I traveled in a straight line from X to Y, I can calulate the time it will take by sqr(1^2+.5^2)=1.11 hours.

2.What if you didn't travel in 2 lines, but 3. From point a, to b, to c, how do you calculate the distance from a to b in a straight line? :rolleyes:
 
  • #11
Gamish said:
I have 2 questions.

1.Can you use the d=sqr(x^2+y^2) to also calulate the time it will take you to travel in a straight line from city city X to city Y. For instance, it took me 1 hour to travel the X line, then .5 hours to travel the Y line, therefore, at those speeds, if I traveled in a straight line from X to Y, I can calulate the time it will take by sqr(1^2+.5^2)=1.11 hours.

If you move with constant speed v the time t it takes to travel the shortest distance can again be found using the Pythagorean theorem: [tex]t=d/v=\frac{\sqrt(x^2+y^2)}{v}=\sqrt{\frac{x^2}{v^2}+\frac{y^2}{v^2}}=\sqrt{t_x^2+t_y^2}[/tex]

2.What if you didn't travel in 2 lines, but 3. From point a, to b, to c, how do you calculate the distance from a to b in a straight line?

If there are angles of 90 degrees involved you can use the same theorem. Else you will have to use trigonometry.
 
Last edited:
  • #12
Something to keep in mind is that certain functions used in applied mathematics can only take arguments that are pure numbers. For instance, trigonometric functions like cosine don't make sense if the argument has units of length.
 
  • #13
Oh, it just hit me! In a common sense way, I just figured out how to calulate the time of the shortest distance.

[tex]t=d/v=\frac{\sqrt(x^2+y^2)}{v}=\sqrt{\frac{x^2}{v^2}+\ frac{y^2}{v^2}}=\sqrt{t_x^2+t_y^2}[/tex]

This is very simple

t=d/s, so if you know the distance by calculating sqr(x^2+y^2), then you already have your distance, so just divide it by the speed! like... t=sqr(x^2+y^2)/s
But my question is how do u know the speed or time if you only know the distance? Can someone please explaine this is lamen terms?
 
  • #14
Since the distance in a straight line is equal to the product between time of travel along the straight line and the average velocity of travel along the straight line,viz.
[tex] d=v\cdot t [/tex].
,u have to know at least 2 of the quantities:if one is distance,u must know either the average velocity,or the time of travel.Knowing only one of them (e.g.the distance) will give u no information about the other 2,except the value of their product,which means that,when geometrically interpreted,they are on a curve,viz.a hyperbola (their product would be constant and from geometry we know that the locus of all points who are on this curve
[tex] xy=C\neq 0 [/tex] is a hyperbola),meaning an infinite number of solutions.

Daniel.
 
  • #15
dextercioby said:
Since the distance in a straight line is equal to the product between time of travel along the straight line and the average velocity of travel along the straight line,viz.
[tex] d=v\cdot t [/tex].
,u have to know at least 2 of the quantities:if one is distance,u must know either the average velocity,or the time of travel.Knowing only one of them (e.g.the distance) will give u no information about the other 2,except the value of their product,which means that,when geometrically interpreted,they are on a curve,viz.a hyperbola (their product would be constant and from geometry we know that the locus of all points who are on this curve
[tex] xy=C\neq 0 [/tex] is a hyperbola),meaning an infinite number of solutions.

Daniel.

So, you can calulate the distance from from X to Y, in a straight line by
srq(X^2+y^2) But you cannot calculate the time or speed if you traveled in a straight line? I think I know how to do it tho. I travel to CityX taking 2 routes, X and Y, the time it took me to travel each line was tX and tY, my speed traveling the 2 lines was vX and vY, so I will just use the equation
sqr(x^2+y^2) to calculate it all.

Time it will take to travel in a straight line = sqr(tX^2+tY^2)

Distance traveled in a straight line = sqr(X^2+Y^2)

Speed in a straight line = sqr(vX^2+vY^2)

Mathamaticly, this should work 100%, if I am wrong, please tell me why.
 
  • #16
Mathamaticly, this should work 100%, if I am wrong, please tell me why.

Divide the distance of the short line as you calculated it by your expression for the time it takes you to travel this distance. Compare with your expression for the velocity. Does this work mathematically?
 
  • #17
da_willem said:
Divide the distance of the short line as you calculated it by your expression for the time it takes you to travel this distance. Compare with your expression for the velocity. Does this work mathematically?

It didn't work. look

I travel from city A to city B, in 2 straight lines, line X and line Y. If I travel in a straight line, I will express that line as Z.

Distance for X = 1 mile
Time for X = .15 Hours
Speed for X = 6.666 MPH

Distance for Y = 1.5
Time for Y = .225 Hours
Speed for Y = 6.666 MPH

Distance for Z = sqr(1^2+1.5^2) = 1.80277564 mile
Time for Z = sqr(.15^2+.225^2) = 0.270416346 Hours
Speed for Z = sqr(6.666^2+6.666^2) = 9.42714761 MPH

This does not work for straight line Z mathematically. look
speed=d/t = 1.5/.225=6.66666667
This is wrong, it says my speed will be 9.42714761 MPH, and it is wrong for all other units, like distance, time, and also speed. So, I am assuming that you can only calculate the distance in a straight line? But, I still think that there must be a way to do it. If you can calculate distance, you should be able to calculate everything else. Anyway, thank you for all of your replies.
 
  • #18
Can someone please coment on the above posting and confirm my calculations? For some reason, they did not work out the way I though they would. you can only calculate distance in a straight line.
 
  • #19
Gamish,

Why are you using d = 1.5 and t = .225 to find the speed, d/t, along Z?

And why would the speed along Z be sqr(6.666^2+6.666^2)?
 
  • #20
Gamish,

I just had a thought!

a^2 = b^2 + c^2, when the angle, call it A, opposite the side a is 90 degrees. This is just the pythagorean theorem.

But there's also an equation that gives you the length of a, given the other two sides and the opposite angle, A, even if it's not 90 degrees.

a^2 = b^2 +c^2 -2a*b*cos(A)

That may have been what you were thinking of. Notice how it becomes Pyth's theorem when A = 90 degrees!
 
  • #21
jdavel said:
Gamish,

I just had a thought!

a^2 = b^2 + c^2, when the angle, call it A, opposite the side a is 90 degrees. This is just the pythagorean theorem.

But there's also an equation that gives you the length of a, given the other two sides and the opposite angle, A, even if it's not 90 degrees.

a^2 = b^2 +c^2 -2a*b*cos(A)

That may have been what you were thinking of. Notice how it becomes Pyth's theorem when A = 90 degrees!

So A is the distance in a straight line? And a and b are the 2 lines of travel? If so, it sounds simple enough. Also, if you can calulate the distance in a straight line, can you calculate time and speed in a straight lin, if you know your time and speed for the 2 original lines? Also, waht is the A variable? notice that a and A are different.

Lucidity :!)
 

1. How do you calculate the distance traveled using cos(a+b)?

To calculate the distance traveled using cos(a+b), you will need to know the values of the angle (a+b) and the length of the hypotenuse (c). You can then use the formula: distance = c * cos(a+b). This will give you the distance traveled in the same unit as the length of the hypotenuse.

2. What do the variables in the formula represent?

The variable c represents the length of the hypotenuse, which is the longest side of a right triangle. The variables a and b represent the angles formed by the hypotenuse and the adjacent and opposite sides of the triangle.

3. How does cos(a+b) relate to the distance traveled?

Cos(a+b) is a trigonometric function that calculates the ratio of the adjacent side to the hypotenuse in a right triangle. When multiplied by the length of the hypotenuse (c), it gives the distance traveled, as it takes into account both the angle and the length of the hypotenuse.

4. Can cos(a+b) be negative?

Yes, cos(a+b) can be negative. This means that the angle (a+b) is in the second or third quadrant of the trigonometric circle, where the cosine function is negative. This does not affect the calculation of the distance traveled, as the absolute value of cos(a+b) is used in the formula.

5. What are some practical applications of using cos(a+b) to find distance traveled?

Cos(a+b) can be used in various fields such as navigation, engineering, and physics to calculate distances traveled in different directions or on inclined surfaces. It can also be used in sports science to analyze the movements of athletes and determine the distance covered during a specific activity or game.

Similar threads

Replies
12
Views
2K
Replies
18
Views
1K
Replies
8
Views
163
  • Calculus
Replies
3
Views
2K
  • Calculus
Replies
3
Views
1K
Replies
3
Views
594
Replies
12
Views
2K
  • Calculus
Replies
6
Views
1K
Replies
3
Views
1K
Replies
34
Views
154
Back
Top