Some time ago I was given the following system of equations:
$$a^2 + b^2 + ab = 25$$
$$b^2 + c^2 + bc = 49$$
$$c^2 + a^2 + ac = 64$$
with $a,b,c \gt 0$ and tasked with finding $(a+b+c)^2$.
Clearly, the expressions here show some symmetry, and they very well resemble the law of cosines. Hence I used geometry to construct a triangle that would, in some way, follow these equations. Consider a triangle $PQR$, where we take a point $Z$ in the interior of the triangle such that the angle subtended by each side at that point $Z$ is $120^\circ$.
This is better understood through the following diagram:
Now, it is clear that: $$[QZP] + [PZR] + [QZR] = [PQR]$$ $$\frac{\sqrt3}{4}(ab + bc + ca) = \sqrt{10\cdot5\cdot3\cdot2}$$ $$ab + bc + ca = 40$$
And then by summing all equations of the system I was given: $$2(a + b +c)^2 - 3(ab + bc + ca) = 138$$ Hence, $(a+b+c)^2 = 129$. But I was able to do it only due to how closely these equations correlated with the geometry I could construct when relating these equations with the law of cosines. I do not think that in all kinds of symmetric expressions I would find similar pattern where I could use the law of cosines to think of helpful geometry.
Hence my question arises: how should one deal with symmetric expressions? I am looking for some strategies that can be useful for the same, such as using geometry or completely algebraic approaches given they are not tedious. In this case, law of cosines faired very well.
How should one analyze these equations to come up with something useful? Like how a particular geometric law was useful here, are there other examples where geometrical interpretations can be made out of some system of equations, such as the law of sines?
Besides geometry, how could one solve such problems? I know manipulating equations is what should be done, but in most cases it is tough and difficult to figure out which operation to use with what equation to get anything of importance. What should one keep in mind when algebraically manipulating such equations, which often becomes cumbersome?
Consider the example I began the question with: is there a simple algebraic way to solve for $(a+b+c)^2$ or any way that avoids the use of law of cosines?
Clearly there is no definitive answer here, hence I am just looking for helpful advice. Such equations are bothersome to solve mechanically and most often it can just be solved with some simple approach.
R=QQ[a,b,c,d]
I=ideal(a^2+b^2+a*b-25,b^2+c^2+b*c-49,c^2+a^2+a*c-64,d-(a+b+c)^2)
primaryDecomposition I -- {ideal(d-129,64*b-25*c,8*a-5*c,129*c^2-4096), ideal(d-9,c-8,b+5,a), ideal(d-9,c+8,b-5,a)}
. $\endgroup$