Hi, guys! I have a SAC soon on Calculus and I'm having trouble understanding a specific type of questions on optimisation problems.
I;m pretty okay at most optimisation problems but questions that go "Find the area of the largest "so and so" that can fit inside "so and so" or "Find the dimensions of a largest triangle that can be inscribed in "so an so" " and such make me go crazy 
I pulled out a couple of questions that I don't know and was wondering if anybody would be so kind to go through them, step by step 
1. Find the area of the largest rectangle that fit inside the a right angled triangle with height 3cm and base 4 cm (Ans: 3cm squared)
2. Find the dimensions of the isosceles triangle of largest area that can be inscribed in a circle of radius r. (answer: base: sqr(3), height 3r/2)
3. A right circular cylinder is inscribed in a cone with height h and base radius . Find the largest possible volume of such a
cylinder.
I would really appreciate it if someone could answer!
1. Right angled triangle with the right angle at the bottom left:
Let l be the length from the bottom left point, and h be the height.
A=lh
At the top of the triangle, l=0, h=3 ie (0,3)
At the bottom-right of the triangle, l=4, h=0 ie (4, 0)
The equation relating l and h is h=-3/4 l +3
Subbing into the area formula:
A=l(-3/4 l +3)=-3/4 l
2+3l
dA/dl=-3/2 l+3=0
3=3/2 l
l=2
At l=1.9 dA/dl=0.15>0 and at l=2.1 dA/dl=-0.15<0 hence the SP at l=2 is a maximum
A=-3/4 l
2+3l=-3/4 (4)+3(2)=3 cm
22.
http://puu.sh/irMgF/2c3be6164b.png hope you can understand my poorly drawn diagram

Area of the isosceles triangle is A=1/2 (2x)y=xy where 2x is the base and y is the height
From the diagram, (y-r)
2+x
2=r
2x=sqrt(r
2-(y-r)
2)=sqrt(r
2-y
2+2yr-r
2)=sqrt(2yr-y
2) (as x>0)
A=xy=sqrt(2yr-y
2)y
dA/dy=(2r-2y)y/(2sqrt(2yr-y
2))+sqrt(2yr-y
2)=0 (product + chain rule)
multiplying both sides by sqrt(2yr-y
2):
(r-y)y+(2yr-y
2)=0
yr-y
2+2yr-y
2=0
3yr-2y
2=0
3r-2y=0 as y>0
y=3r/2
x=sqrt(2yr-y
2)=sqrt(3r
2-9r
2/4)=sqrt(3r
2/4)=sqrt(3)r/2
so base=2x=sqrt(3)r and height=y=3r/2
3. You can pretty much think of it as inscribing a rectangle (cylinder) into a triangle (cone).
y=height of cylinder, x=radius of cylinder
at the top of the cone, x=0 and y=h ie (0, h)
at the bottom of the cone x=r and y=0 ie (r, 0)
Relationship is y=-h/r x + h
V=pi x
2y=pi x
2 (-h/r x+h)=-pi h/r x
3 + pi h x
2dV/dx=-3pi h/r x
2 + 2 pi hx=0
-3/r x+2=0 as x>0
x=2r/3
now sub into V formula
V=-8pi/27 hr
2 + 4pi/9 hr
2=4pi hr
2/27