Closed-form trigonometric solution of inhomogeneous beam-columns: Vibration Problem