# Thread:

1. ## Vector Problem. Finding the angles and sides of a triangle in 3d as well as the area.

Problem:

Find all angles and the lengths of all the sides in the triangle with the corners P(1,2,3) Q(0,2,1) R(-2,4-2). Hence compute its area.

Solution so far:

Vectors (u = u2 - u1)

PQ = (-1,0,-2), PR = (-3,2,-5)
QP = (1,0,2), QR =(-2,2-3)
RQ = (2,-2,3), RP = (3,-2,5)

Lengths of vectors |u| = sqrt(u1^2 + u2^2 + u3^2)
hence,

|PQ| = sqrt(5)
|PR| = sqrt(38)
|QP| = sqrt(5)
|QR| = sqrt(17)
|RQ| = sqrt(17)
|RP| = sqrt(38)

Therefore the sides of the triangle are sqrt(5), sqrt(38) and sqrt(17)

Area of parallelogram = the magnitude of the cross product of PQ and PR
PQ cross PR = (4, 1 ,-2)

|PQ cross PR| = sqrt(21)

The area of the triangle is therefore 1/2 sqrt(21)

Angles between vectors
PQ and PR => cosine(a) = (PQ.PR)/(|PQ||PR|)
therefore a = cos^-1 (PQ.PR)/(|PQ||PR|)

Now if I calculate the angle between all the vectors then the sum of those angles should be 180 degrees, right...

Are there any problems with my workings?

Basically, am I doing anything wrong?

Feedback would be greatly appreciated.

2. You've done about twice as much work as what's needed.

Your calculation of the lengths look correct (though you didn't need to do it twice).

I would simply apply Heron's formula to find the area of the triangle, and use the Cosine rule to find all the angles...

3. But would I not require all those vector lengths in order to apply the law of cosines to calculate the angles?

That is angles between PQ and PR, QP and QR, RP and RQ

4. What I am saying is, the length of PR is the same as RP, the length of PQ is the same as QP, etc... Like I said, your calculations of the lengths look correct, but you only needed to do it three times, not six.

So you really only need to work out the three lengths of the triangle. That is enough to be able to apply Heron's formula to find the area, and the cosine rule three times to find the angles. But your logic is correct, as using dot products is another valid method (in fact, the dot product is proven using the cosine rule). And yes, the angles should add to $180^{\circ}$.

5. Cool, thankyou very much.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 1, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9328160285949707, "perplexity_flag": "middle"}