# Math Help - Little optimization problem

1. ## Little optimization problem

Hello friends¡¡

I need to find the greatest area rectangle which can be drawn "inside" of a right triangle.

Measures: Cathetus a = 4cm and cathetus b = 3cm.

I need to solve the problem by using derivatives.

2. Hello, osodud!

Find the greatest area rectangle which can be drawn
inside a right triangle with legs 3 and 4.
A diagram will always help.
Code:
-   - *
:   : |  *
:  3-y|     *
:   : |        *
3   - *-----------*
:   : |     x     |  *
:   y |           |y    *
:   : |           |        *
-   - *-----------*-----------*
: - - x - - :  - 4-x -  :
: - - - - - 4 - - - - - :

The area of the rectangle is: . $A \;=\;xy$ .[1]

From the similar right triangles, we have: . $\frac{3-y}{x} \:=\:\frac{y}{4-x}$
. . which simplifies to: . $y \;=\;3-\tfrac{3}{4}x$ .[2]

Substitute [2] into [1]: . $A \;=\;x\left(3-\tfrac{3}{4}x\right)$

And you must maximize: . $A \;=\;3x - \tfrac{3}{4}x^2$

. . Got it?