This note describes an approach for teaching undergraduate students basic properties of cost and production functions with the aid of computer-generated illustrations. Parameters of a third degree polynomial are derived by making use of both the theoretical restrictions and the specific agricultural production process. The function is then used as the basis for the development of a simple computer graphics program which generates illustrations of the corresponding MPP, AC, and MC functions. Such illustrations can be used to make technically accurate visual aids.