# deriv2: Product Rule for Derivatives (Single-Choice)

Exercise template for computing the derivative (single-choice) of a production function with factors of type xa and exp(b * x) at a given point c, with randomly-drawn a, b, and c.

Name:
`deriv2`
Description:
Computing the first derivative of a product function with two factors and randomly-drawn parameters, using the product rule. In addition to the correct solution, four false alternatives are generated through `num_to_schoice()` by providing two common errors along with a range and minimal delta for two further random solutions.
Solution feedback:
Yes
Randomization:
Random numbers
Mathematical notation:
Yes
Verbatim R input/output:
No
Images:
No
Other supplements:
No
Raw: (1 random version)

(Note that the HTML output contains mathematical equations in MathML. It is displayed by browsers with MathML support like Firefox or Safari - but not Chrome.)

Demo code:

``````library("exams")

set.seed(1090)
exams2html("deriv2.Rnw")
set.seed(1090)
exams2pdf("deriv2.Rnw")

set.seed(1090)
exams2html("deriv2.Rmd")
set.seed(1090)
exams2pdf("deriv2.Rmd")``````