A Geometry problem that is giving me trouble

  • Thread starter Yondaime5685
  • Start date
  • Tags
    Geometry
In summary, the problem presented is a trigonometric problem involving a rectangle with known dimensions and angles. The goal is to find the value of either x or y in terms of the other known variables. To solve this, the conversation discusses the use of vectors and equations to create a coordinate axis on the rectangle. The final solution is found using the value of a which is calculated using a formula that involves known variables such as g, h, and w.
  • #1
Yondaime5685
27
0
So here is a picture I quickly made in photoshop that has the problem:

[PLAIN]http://img21.imageshack.us/img21/9406/trigproblem.png

The rectangle's dimensions are known. (w & h) So it follows that the angle, "@", and the diagonal, "d", is also known. The width between the two black lines, "g", is known too. (I actually "slid" that line down to the end of the black line(The "bottom" one).) Also the black lines themselves are of the same length.

Basically everything that is in red is known and I need either x OR y in terms of the other "knowns."

Now in the paper that I drew this, I labeled more things such as all the possible angles that I saw or could create. I used law of cosines for that non-right triangle in the middle made up of d, y, and the length of one of the black lines. But I didn't label them on this picture since that would really clutter it up. I figured all those other things could be derived with the information from this picture and maybe even more that I missed.

I was hoping someone could help me find a relationship that gives me x OR y, since w is known, I just need one or the other.

This seems, at first, a doable trig problem, but when I started working on it, I found that it is not so simple.

So I would definitely appreciate any help on this problem. This is not a homework or some sort of hard teaser problem that was assigned in class. This popped up while I was doing my research work and I need to find "x" so that I can write finish writing my code for my research.

And if you need any more details, please ask. Thanks in advance.
 
Last edited by a moderator:
Mathematics news on Phys.org
  • #2
Hi Yondaime568! :smile:

Because I will work with x and y coordinates, I will call your x by a. I won't use the y.

First, fix a coordinate axis on the rectangle. The leftbottom corner will be (0,0), the lefttop corner is (0,h) and the rightbottom corner is (w,0).

The straight line emanating from (0,h) will intersect the x-axis in (a,0). Thus the line has the equation

[tex]hx+ay-ha=0[/tex]

A vector parallell to this line an emanating from (0,0) is (-a,h).

Let (s,r) be a vector normal to (-a,h), then this must satisfy

[tex]-sa+hr=0[/tex]

and thus

(s,r)=(h,a) seems to be a good choice for a normal. Normalizing this normal to have length g yields the normal

[tex]\left(\frac{h}{g\sqrt{h^2+a^2}},\frac{a}{g\sqrt{h^2+a^2}}\right)[/tex]

The line in your picture coming from (w,0) must go through

[tex]\left(\frac{h}{g\sqrt{h^2+a^2}},\frac{a}{g\sqrt{h^2+a^2}}+h\right)[/tex]

The line parallell to [itex]hx+ay-ha=0[/itex] and through this point is

[tex]hx+ay-\frac{h^2}{g\sqrt{h^2+a^2}}-\frac{a^2}{g\sqrt{h^2+a^2}}-ha=0[/tex]

Now you can check for yourself for which value of a that this line goes through (w,0). Thus you must find a such that the following is satisfied:

[tex]hw-\frac{h^2}{g\sqrt{h^2+a^2}}-\frac{a^2}{g\sqrt{h^2+a^2}}-ha=0[/tex]
 
  • #3
Well first of all, thank you for replying.

I followed your steps and it makes sense. I was a bit uneasy in understanding the normalizing parts, but I trusted you. (It is definitely because of my limited knowledge than yours. :shy:)

So I decided to use your end result and I solved for a using Alpha:

http://www.wolframalpha.com/input/?i=solve%28h*w-%28%28h^2%29%2F%28g*sqrt%28h^2%2Ba^2%29%29%29-%28%28a^2%29%2F%28g*sqrt%28h^2%2Ba^2%29%29%29-h*a%3D0%2Ca%29

I then plugged in test values to get some numerical results. g=50 w=997 h=1200

But when I used these values, I didn't get a sensible answer:

http://www.wolframalpha.com/input/?i=%28%28g^2*h^2*w%29-%28sqrt%28g^2*h^4%2Bg^2*h^2*w^2-h^2%29%29%29%2F%28g^2*h^2-1%29+where+g%3D50+h%3D1200+w%3D997

Of course the other result would give me an answer if the second line was on the other side. But either way, clearly the "x", or "a" from your definition, is less than that. Actually it should be around 932. (I checked it with photoshop. In fact, that is where this whole problem arose from: writing a code that can manipulate an image. Now I can do it manually with no problem. But I need it automated. And that is where I need to know what "x" is in terms of the other knowns.)

Again I thank you for replying and I don't want to be a burden. :shy:

-edit

Actually what I really need is that angle that forms from the end of "x" and the end of the black line. (The one starting from the top left corner of the rectangle.) I figured that might help someone.
 
Last edited:
  • #4
OK, I made a mistake on the normalizing part :frown:

Here's the corrected version

Because I will work with x and y coordinates, I will call your x by a. I won't use the y.

First, fix a coordinate axis on the rectangle. The leftbottom corner will be (0,0), the lefttop corner is (0,h) and the rightbottom corner is (w,0).

The straight line emanating from (0,h) will intersect the x-axis in (a,0). Thus the line has the equation

[tex]hx+ay-ha=0[/tex]

A vector parallell to this line an emanating from (0,0) is (-a,h).

Let (s,r) be a vector normal to (-a,h), then this must satisfy

[tex]-sa+hr=0[/tex]

and thus

(s,r)=(h,a) seems to be a good choice for a normal. Normalizing this normal to have length g yields the normal

[tex]\left(\frac{gh}{\sqrt{h^2+a^2}},\frac{ga}{\sqrt{h^2+a^2}}\right)[/tex]

The line in your picture coming from (w,0) must go through

[tex]\left(\frac{hg}{\sqrt{h^2+a^2}},\frac{ag}{\sqrt{h^2+a^2}}+h\right)[/tex]

The line parallell to [itex]hx+ay-ha=0[/itex] and through this point is

[tex]hx+ay-\frac{gh^2}{\sqrt{h^2+a^2}}-\frac{ga^2}{\sqrt{h^2+a^2}}-ha=0[/tex]

Now you can check for yourself for which value of a that this line goes through (w,0). Thus you must find a such that the following is satisfied:

[tex]hw-\frac{gh^2}{\sqrt{h^2+a^2}}-\frac{ga^2}{\sqrt{h^2+a^2}}-ha=0[/tex]

Wolfram alpha gave me as solution

[tex]a=\frac{gh\sqrt{h^2+w^2-g^2} -h^2w}{g^2-h^2}[/tex]

I'll check it some more, but it makes more sense now...
 
  • #5
I've checked it with a graphics program and it is correct now!
 
  • #6
Yep, that does it! :cool: Thanks so much! This is going to help me out a lot. I wish I could give you something. So here are some http://freeinternetcookies.com/" . You have to click yes. :smile:
 
Last edited by a moderator:
  • #7
@MM: Hey micromass, I voted yea in your poll a little while back, but I never got the cookie your promised! Nor did anyone else I suspect! :grumpy:
 
  • #8
I like Serena said:
@MM: Hey micromass, I voted yea in your poll a little while back, but I never got the cookie your promised! Nor did anyone else I suspect! :grumpy:

The cookies contained a virus :uhh:
 

1. What is the problem asking me to solve?

The problem is asking you to use geometric principles and equations to find a solution to a given scenario.

2. Why am I struggling with this particular problem?

Geometry problems can be challenging because they require a strong understanding of geometric concepts and the ability to apply them in different situations. It's important to review and practice regularly to improve your skills.

3. How can I approach this problem?

Start by carefully reading and understanding the problem, identifying any given information and what is being asked for. Then, visualize the scenario and try to relate it to known geometric principles. From there, you can create equations and solve for the unknown variables.

4. What should I do if I get stuck?

If you get stuck, try breaking down the problem into smaller, more manageable parts. Look for any patterns or relationships between different elements in the problem. You can also try using different methods or approaches to see if they lead to a solution.

5. How can I check if my answer is correct?

You can check your answer by plugging it back into the original problem and seeing if it satisfies all the given conditions. You can also ask a classmate or teacher to review your work and provide feedback. Remember to always check your work for any calculation or typing errors.

Similar threads

Replies
29
Views
1K
Replies
2
Views
268
  • General Math
Replies
4
Views
1K
Replies
2
Views
268
  • General Math
Replies
1
Views
990
Replies
1
Views
1K
Replies
12
Views
1K
Replies
1
Views
782
  • General Math
Replies
13
Views
1K
Back
Top