I'm trying to derive the formula for lateral area of a cone, $A = \pi r L$ by summing the circumferences of circles of decreasing radius that make up the cone.
(image source: https://brilliant.org/wiki/surface-area-of-a-cone/)
The radius $r_1$ of a circle (a "disk") at height x from the bottom is given by a formula that we obtain from similar triangles:
$$\frac{r_1}{h-x} = \frac{r}{h}$$
$$r_1 = \frac{h-x}{h}r$$
$$r_1 = \left(1-\frac{x}{h}\right)r$$
therefore the circumference of that same circle is given by the function
$$f(x) = 2r \pi \left(1-\frac{x}{h}\right)$$
Solving the integral yields the formula $\pi h r$ which is incorrect. Where did I make a mistake?