I know the area and the lengths of two sides (a and b) of a non-right triangle. I also know P1 (vertex between a and c) and P2 (vertex between a and b).
I already know this much:
Perimeter = $ \frac{(a+b+c)}{2} $
Area = $ A=\sqrt{p(p-a)(p-b)(p-c)} $
How do I simplify the above two equations to solve for c? (Obviously, this is just algebra, but it's long enough that it is prone to error; I've tried this by hand now and gotten a different set of solutions each time.)
$s\;$ is the conventional way of representing the semiperimeter $\frac{a+b+c}2$ of the triangle with sides $a\,,b\,,c$.
$\sqrt{s(s-a)(s-b)(s-c)}= \frac{\sqrt{-a^4-b^4-c^4+2b^2c^2+2c^2a^2+2a^2b^2}}4=\Delta$
Solving for $c$, $$c=\sqrt{a^2+b^2\pm 2\sqrt{a^2b^2-4\Delta^2}}$$
where area $=\Delta$