Answer:
Case 1: if the whole body of the cylinder is constructed using the same material.
Assuming the material used costs k per square unit
C(r,h) = kS(r,h)
C(r,h) = 2πrhk + 2πkr^2
Case 2 : if the base and top is made with a separate material from the one used for the body.
Assuming that the cost of materials used for the base and top is k2 per square unit.
And the body is made with material that cost k1 per square unit
C(r,h) = 2πrh(k1) + 2π(k2)r^2
Write a function for the total cost of the cylinder in terms of its radius (r) and its height (h)
Explanation:
The total cost of a cylinder is a function of the total surface area and the cost of the materials used.
The Surface area function S(r,h) of a cylinder with covered top can be written as
S(r,h) = 2πrh + 2πr^2
The Cost function C(r,h) can be written for two cases.
Case 1: if the whole body of the cylinder is constructed using the same material.
Assuming the material used costs k per square unit
C(r,h) = kS(r,h)
C(r,h) = 2πrhk + 2πkr^2
Case 2 : if the base and top is made with a separate material from the one used for the body.
Assuming that the cost of materials used for the base and top is k2 per square unit.
And the body is made with material that cost k1 per square unit
C(r,h) = 2πrh(k1) + 2π(k2)r^2