Source: https://faculty.econ.ucdavis.edu/faculty/bonanno/teaching/200C/Cournot.pdf