markram987 said:
i didn't understand your hint.
the theta or angle are given and i know the high school inverse function..
i will thank you if you just let type the formula here or equate it to m1 and then i will think how it is derive.. if i didn't know i will ask you question^^
Ok then I will give you the answer and go through it step by step.
As you may know the tangent is calculated using rise over a run. So basically if our tangent was +1 it means that if my x moves one unit to the right, then my y moves one unit up. If it was +2 it means if i move one unit to the right, then my y moves two units up.
If it was say -1, it means that if i move my x one unit to the right then my y goes down one.
Now going back to trigonometry of right angled triangles we know that tan = opposite over adjacent which is what the tangent is: remember its a line and if we form a triangle with our x and y we get a right angled triangle.
So you know that m2 = (y2 - y1)/(x2 - x1) = tan(theta).
So to find theta if we have m2, we use the formula:
theta = tan^-1(m2). If you haven't seen tan^-1 it means the "inverse tangent" and it is also called "arctan". If you have a calculator it will probably say "tan^-1).
So let's say your m2 was 1 for example.
theta = tan^-1(1) = 45 degrees.
Now you have gotten the angle for the line, you add the angle that you're given in your question and to get the slope of the line we are trying to find you calculate it using
Lets pretend the angle you are given is 90 degrees.
Your answer for finding slope for line 2 would be found by calculating:
m1 = tan(45 + 90) = tan(135) = -1.
Also if you're using a calculator make sure its set to degrees if you're working in degrees.