Application of fractional partial differential equations to beam problems