The first one It's an optimization problem and a popular one at it too. Found the solution in google with not too much work. The solution below was posted by Ernesto David from PointAsk.com forums (so the credit is to him), the only difference with your question is that the hypothenuse is in point (2,1) instead of (4,1)
Draw the figure on paper. It is a right triangle in the 1st quadrant, whose vertices are
O(0,0)
A(0,y)
B(x,0)
In the hypotenuse AB, is point P(2,1).
Need minimum area of right triangle AOP.
We do it by Diffrential Calculus. Set to zero the 1st derivatiove of the area.
K = area of triangle AOP = (1/2)(x)(y) = (1/2)(xy) ---(i)
K = (area of triangle APO) +(area ot triangle OPB)
K = (1/2)(y)(2) +(1/2)(x)(1)
K = (1/2)(2y +x) ----(ii)
K = K
(1/2)(xy) = (1/2)(2y +x)
xy = 2y +x
xy -2y = x
y(x-2) = x
y = x/(x-2)
Substitute that in (i),
K = (1/2)(x)(x/(x-2))
K = (1/2)[(x^2)/(x-2)] ----(iii)
Differentiate (iii) with respect to x.
dK/dx = (1/2)[(x-2)*(2x) -(x^2)*(1)/[(x-2)^2]
dK/dx = (1/2)[x^2 -4x]/[(x-2)^2] ----(iv)
Set that to zero,
Multiply both sides by 2(x-2)^2,
0 = x^2 -4x
So,
x = 0 or 4 when dK/dx = 0.
When x=0, there is no triangle AOP. No K.
When x=4,
Plug that into (iii),
K = (1/2)[(x^2)/(x-2)] ----(iii)
K = (1/2)[(4^2)/(4-2)] = (1/2)[16/2] = 4 sq. units.
Is K = 4 the minimum K?
We check the slope of the graph of K before and after x=4.
This slope is also dK/dx.
Slope = dK/dx = (1/2)[x^2 -4x]/[(x-2)^2] ----(iv)
Say, when x=3,
slope = (1/2)[3^2 -4*3]/[(3-2)^2] = (1/2)[-3]/[1] = -3/2 ---negative.
Say, when x=5,
slope = (1/2)[5^2 -4*5]/[(5-2)^2] = (1/2)[5]/[1] = 5/2 ---positive.
That means the slope of K goes from negative to positive as it passes x=4.
That means at x=4, K is lowest point, or K is minimum.
Therefore, the lowest area for right triangle AOP is 4 sq. units. ---answer.
Regards
ng