I have a solution to the problem below from my course materials, but I cannot understand where I went wrong with my own attempt at a solution. Any advice much appreciated.
Problem: Given a right triangle with one non-hypotenuse side BC at 10 inches, and the other non-hypotenuse side AC at 8 inches we need to find out the exact area of the largest rectangle (by area) that can be constructed within the triangle, such that one edge of the triangle is at the point C.
Solution Attempt:
I define the base of my rectangle to be CM where M is a point on the line segment AC.
|CM| = 8 - b
So now let us define the height. We select a point N on the line segment BC and the height will be |CN|. The length of NB is defined as a, and thus the height of the triangle, |CN| will be 10 - a.
Next I will try to define the area in terms of b. Since the smaller b is the larger the rectangle is, I will find a function for area in terms of b, then take first derivative, set to zero and solve.
Area as a function of b:
BC/AC = 10/8 = 5/4 = |CN|/|CM|, so, to find what a is in terms of b, we do this:
10-a/(8-b) = 5/4
40 - 5b = 40 - 4a
5b = 4a
a = 5/4*b
Area of rectangle = |CM| * |CN|
A(b) = (8-b) (10 - a)
A(b) = (8-b) * (10 - (5/4)*b )
A(b) = 80 - 20b + 5/4*b^2
Calculating first derivative:
A'(b) = 5/2*b - 20
Setting to zero gives me b = 8. If b = 8 then the area of my rectangle is zero, which does not seem to be the max achievable size. I am wondering what went wrong. Thanks!
