Find the largest possible area of a triangle that has two sides of lengths 30 and 40.
The largest possible area will be when you have a right-triangle. The two sides are 30 and 40 and the hypotenuse is 50. The area of this triangle is therefore ....
A non-calculus proof (and I will scale the triangle down by a factor of 10 to sides of 3 and 4):
Let the third side be x. It follows from Heron's formula that:
.
Since the first term is always negative the maximum area will occur when . Therefore you have a right-triangle.
Clearly the square of the maximum area is then and so the maximum area is 6 (for this scaled down triangle).
For a triangle:
Use either 30 or 40 as your Base and the other will be the radius of a circle. (See the attached sketch.)
Let theta run through the values from zero to 180 degrees. Calculate the Height of the triangle and then compute the area.
You may be able to see that the area of a triangle with theta = 2 degrees has the same area as a triangle with theta = (180 - 2 )degrees.
& if theta = 30 degrees the area is the same and theta = (180 - 30) degrees.
That should reduce the number of computations required.
At some point you will reach a maximum area.
.