If the article is nonfiction and unbiased, the author most likely wrote the article to inform.
If the article is nonfiction and biased, the author most likely wrote the article to persuade.
If the article is fiction, the author most likely wrote the article to entertain.