Calculation scheme of a cantilever beam with a variable cross-section