Blow-up behavior of solutions for some ordinary and partial differential equations