The length of wire is 20m.
According to the question:
ℓ1+ℓ2=20
⇒dℓ1dℓ2=−1
Let the side of the square be x, then
4x=ℓ1
⇒x=4ℓ1...(1)
Let the radius of the circle be y, then
2πy=ℓ2
⇒y=2πℓ2...(2)
Hence,
A1=(4ℓ1)2 and A2=π(2πℓ2)2
Let S=2A1+3A2
⇒S=8(ℓ1)2+4π3(ℓ2)2
⇒dℓ1dS=82ℓ1+4π6ℓ2⋅(dℓ1dℓ2)
For S to be minimum,
dℓ1ds=0
⇒82ℓ1+4π6ℓ2⋅(dℓ1dℓ2)=0
⇒82ℓ1−4π6ℓ2=0(∵dℓ1dℓ2=−1)
⇒4ℓ1=4π6ℓ2
⇒ℓ2πℓ1=6