I have another problem that I can't figure out.
A triangle har 2 of its summits in points (7.788,0,1.95), (0,7.788,1.95), and the last one on the curve with all the points (7.788,7.788,a^2+1.95), a is a real number. Calculate the area f(a) of the triangle as a function of a and calculate where it takes its minimal value.
I tried the following. Because I can't calculate vectors from points, I counted by hand:
u1 = {-7.788, 7.788, 0}
u2 = {0, 7.888, a^2}
Then I did that:
(Norm[Cross[u1, u2]])/2
The output was:
1/2 Sqrt[3773.86 + 60.6529 Abs[a]^4 + Abs[0. + 7.788 a^2]^2]
Which is not the right solution.
How should I do this?
A = {7.788,0,1.95}
,B= {0,7.788,1.95}
andF[a_]:={7.788,7.788,a^2+1.95}
. You canCross
two edge vectors of the triangle emanating from a common corner like this:Norm[Cross[B-A,F[a]-A]]/2
. The result is the same as yours. For minimization, you can use the observation thata
is a minimizer of area if and only ifa
is a minimizer ofCross[B - A, F[a] - A].Cross[B - A, F[a] - A]
(that's the square of the norm!). I think you can do it on your own from this point on (you know how to minimize a quadratic function, right?) $\endgroup$ComplexExpand
earlier which will help too $\endgroup$