Undergraduate learning difficulties and mathematical reasoning