Let x be the length of the first part.
Length if other part =25−x
Given that one part is converted into a circle.
Let r be the radius of circle.
2πr=x
⇒r=x2π
Also given that another part is converted into a square.
Let 'a' be the side of circle.
4a=25−x
a=25−x4
Total area (A)= Area of circle + Area of square
∴A=πr2+a2
⇒A=π(x2π)2+(25−x4)2
⇒A=x24π+(25−x)216.....(1)
Differentiating above equation w.r.t. x, we get
dAdx=x2π+x−258.....(2)
Putting dAdx=0, we have
x2π+x−258=0
4x+πx−25π8π=0
⇒x=25π4+π
Now, differentiating equation (2), we get
d2Adt2=12π+18>0
Hence at x=25π4+π, total area will be minimum.
Therefore,
Length of pieces-
x=25π4+π
25−x=25−25π4+π=100−25π+25π4+π=1004+π
Hence the length of the pieces are 25π4+πcm and 1004+πcm respectively.