A method that can be applied to the radiation problem of a convex or a concave radiator in an infinite baffle is described. This method utilizes the least‐square‐error method, and allows the radiator to take almost any kind of axisymmetric shape even though the accuracy of the result depends on the shape. The frequency responses of the on‐axis sound pressure are calculated for three cases of the radiator shape, a convex dome, a concave dome, and a combination of a truncated concave cone and a convex dome at the center. The accuracy is confirmed by comparing the results obtained by the present method with those obtained by previous methods [Hideo Suzuki and Jiri Tichy, J. Acoust. Soc. Am. 69, 41–49 (1981)]. Three error indexes are suggested for an estimation of the accuracy of the results.