The angle between two straight lines.

Another approach is to use vectors and the dot product. A vector pointing in the direction of the first line is ##(1, m_1)##, and a vector pointing in the direction of the second line is ##(1, m_2)##. Then$$\cos(\theta) = \frac{(1, m_1) \cdot (1, m_2)}{\sqrt{1 + m_1^2} \sqrt{1 + m_2^2}} = \frac{1 + m_1 m_2}{\sqrt{1 + m_1^2} \sqrt{1 + m_2^2}}$$In this example, we have ##m_1
  • #1
adjacent
Gold Member
1,552
63

Homework Statement


Find the angle between two straight lines,##y=x## and ##y=2x##.
Find the general formula for finding the angles.


Homework Equations


##f(x)=mx+c##
##\tan(\theta)=\frac{opposite}{adjacent}##


The Attempt at a Solution


First I assign a value for x and calculate the value for y.Using the tan rule,I can find the angle(β) between the line y=x and x-axis.
Again repeat the same with y=2x and find the angle(∑).The angle between y=2x and y=x is ∑-β.

First I plugged in a number into the function.
Then the resulting value becomes the opposite and the x becomes the adjacent :biggrin:.
So I get $$\tan^{-1} \left( \frac{f(n)}{n} \right) - \tan^{-1} \left( \frac{g(n)}{n} \right)$$.
Where n is any number.f is the function of the line with the greater slope.g is the function of the line with the lower slope.
Is this correct? I am really worried about the terminology.
 
Physics news on Phys.org
  • #2
adjacent said:

Homework Statement


Find the angle between two straight lines,##y=x## and ##y=2x##.
Find the general formula for finding the angles.


Homework Equations


##f(x)=mx+c##
##\tan(\theta)=\frac{opposite}{adjacent}##


The Attempt at a Solution


First I assign a value for x and calculate the value for y.Using the tan rule,I can find the angle(β) between the line y=x and x-axis.
Again repeat the same with y=2x and find the angle(∑).The angle between y=2x and y=x is ∑-β.

First I plugged in a number into the function.
Then the resulting value becomes the opposite and the x becomes the adjacent :biggrin:.
So I get $$\tan^{-1} \left( \frac{f(n)}{n} \right) - \tan^{-1} \left( \frac{g(n)}{n} \right)$$.
Where n is any number.f is the function of the line with the greater slope.g is the function of the line with the lower slope.
Is this correct? I am really worried about the terminology.

The description of your method seems a bit round-about.

Look at it this way. Both of your lines have a y-intercept of zero. If you draw a simple sketch,
you can make a couple of right triangles. You know the slope of each line from its equation, and you should be able to find the acute angle by taking the arctan of the slope, since the slope is equal to the tangent of the acut angle.

The angle between the lines should be arctan (2) - arctan (1).
 
  • #3
SteamKing said:
The description of your method seems a bit round-about.

Did you understand my answer?
What I did was take a point in the x axis,for example, (4,0) and input the x value into the function to get the y value of the line at that point of x.Since we have got an opposite and an adjacent,we can use tan rule to find the angle.
SteamKing said:
Look at it this way. Both of your lines have a y-intercept of zero. If you draw a simple sketch,
you can make a couple of right triangles. You know the slope of each line from its equation, and you should be able to find the acute angle by taking the arctan of the slope, since the slope is equal to the tangent of the acut angle.

The angle between the lines should be arctan (2) - arctan (1).
Slope is equal to the tangent of the angle?
I think that method only works for lines passing through the origin.I was asked(Actually I am making it now lol) to find the general formula for all types of lines.
My method will also simplify to that if the lines passes through the origin.It also works for lines passing through any point in the y-axis.
 
  • #4
The slope of a line is defined as the rise over the run, or the change in y over the change in x. Ergo, the tangent of the angle which the line makes with the x-axis is equal to the slope.
 
  • #5
The simplest way to answer the question "what is the angle between a line with slope [itex]m_1[/itex] and [itex]m_2[/itex] (i.e. between the lines with equations [itex]y= m_1x+ b_1[/itex] and [itex]y= m_2x+ b_2[/itex].)?" is to use the "difference" formula:
[tex]tex(\alpha- \beta)= \frac{tan(\alpha)- tan(\beta)}{1+ tan(\alpha)tan(\beta)}[/tex]

Here, [itex]tan(\alpha)= m_1[/itex] and [itex]tan(\beta)= m_2[/itex] so that [itex]\alpha- \beta[/itex], the angle between the lines, satisfies [tex]tan(\alpha- \beta)= \frac{m_1- m_2}{1+ m_1m_2}[/tex]
 
  • #6
Another approach is to use vectors and the dot product. A vector pointing in the direction of the first line is ##(1, m_1)##, and a vector pointing in the direction of the second line is ##(1, m_2)##. Then
$$\cos(\theta) = \frac{(1, m_1) \cdot (1, m_2)}{\sqrt{1 + m_1^2} \sqrt{1 + m_2^2}} = \frac{1 + m_1 m_2}{\sqrt{1 + m_1^2} \sqrt{1 + m_2^2}}$$
In this example, we have ##m_1 = 1## and ##m_2 = 2##, so ##\theta = \cos^{-1}(3 / \sqrt{10})##. It's not immediately obvious that this equals ##\tan^{-1}(2) - \tan^{-1}(1)##, but Matlab assures me that it does. :-p
 

Related to The angle between two straight lines.

What is the angle between two straight lines?

The angle between two straight lines is the amount of rotation needed to bring one line into coincidence with the other. It is typically measured in degrees or radians.

How do you calculate the angle between two straight lines?

The angle between two straight lines can be calculated using the formula: θ = tan-1((m2 - m1) / (1 + m1m2)), where m1 and m2 are the slopes of the two lines.

What is the difference between the angle between two straight lines and the angle of intersection?

The angle between two straight lines is the angle formed by two intersecting lines, while the angle of intersection is the angle formed by two intersecting straight lines and a third line, typically a transversal. The angle of intersection is always equal to the sum of the angles between the two intersecting lines.

Can the angle between two straight lines be negative?

No, the angle between two straight lines is always positive. It is measured in a counterclockwise direction from the first line to the second line.

What is the relationship between the slopes of two lines and the angle between them?

The slopes of two lines are related to the angle between them by the formula: m1m2 = -tan(θ), where m1 and m2 are the slopes of the two lines and θ is the angle between them. This means that if the slopes are known, the angle between the lines can be calculated, and vice versa.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
17
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
972
  • Precalculus Mathematics Homework Help
Replies
2
Views
944
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
659
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
17
Views
1K
  • Precalculus Mathematics Homework Help
Replies
17
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
18
Views
2K
Back
Top