Well, now that you've learned heron's (bashy) formula, there's another (more bashy) formula for the area of a cyclic quadrilateral given its side lengths! How nice.
Brahmagupta's Formula states:
The area of a cyclic quadrilateral ABCD with sides of length a,b,c,d and semiperimeter s is equal to (s−a)(s−b)(s−c)(s−d)
Proof
Denote the area of polygon A1A2…An by [A1A2…An]. We let a=AB, b=BC, c=CD, and d=AD. Then, we have:
[ABCD]=[ABD]+[CBD]=21adsinA+21bcsinC
Since A=180∘−C, we have sinA=sinC, so the above expression simplifies to:
[ABCD]=21(ad+bc)sinA[ABCD]2=41(ad+bc)2sin2A4[ABCD]2=(ad+bc)2(1−cos2A)4[ABCD]2=(ad+bc)2−(ad+bc)2cos2A
We see a cosine and we want to get rid of it, so we apply the law of cosines on △ADB and △CDB to get DB and set them equal to end up with:
a2+d2−2adcosA=b2+c2−2bccosCa2+d2−2adcosA=b2+c2+2bccosAa2+d2−b2−c2=2(ad+bc)cosA2a2+d2−b2−c2=(ad+bc)cosA
Then we can substitute this to the area formula to get:
4[ABCD]2=(ad+bc)2−41(a2+d2−b2−c2)216[ABCD]2=(2ad+2bc)2−(a2+d2−b2−c2)2
We then use difference of squares (and rearrange a bit):
16[ABCD]2=(a2+2ad+d2−(b2−2bc+c2))⋅(−(a2−2ad+d2)+b2+2bc+c2)16[ABCD]2=((a+d)2−(b−c)2)((b+c)2−(a−d)2)
Now, we can apply difference of squares again to get:
16[ABCD]2=(a+d+b−c)(a+d−b+c)⋅(b+c+a−d)(b+c−a+d)=(−a+b+c+d)(a−b+c+d)⋅(a+b−c+d)(a+b+c−d)
Now, this would be a nice formula already, but let's try to simplify it a bit to get those semiperimeters in. We plug in semiperimeters to get:
16[ABCD]2=16(s−a)(s−b)(s−c)(s−d)
Then, dividing by 16 and taking the square root, we get:
[ABCD]=(s−a)(s−b)(s−c)(s−d)
As desired.
Also, note that by taking limit as D→C we can get the herons formula back.