The companies reported narrower losses than analysts had projected and said signs of a demand recovery were beginning to show.