The 'miserable smile' is a stoical grin-and-bear-it expression – a slight, asymmetric smile with an expression of deep sadness pasted over the top. It's a socially acceptable way of showing that you're sad or in pain.