deriv2: Product Rule for Derivatives (Single-Choice)

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

Name:
deriv2
Type:
Related:
Preview:

What is the derivative of \(f(x) = x^{7} e^{3.9 x}\), evaluated at \(x = 0.61\)?

Using the product rule for \(f(x) = g(x) \cdot h(x)\), where \(g(x) := x^{7}\) and \(h(x) := e^{3.9 x}\), we obtain \[ \begin{aligned} f'(x) &= [g(x) \cdot h(x)]' = g'(x) \cdot h(x) + g(x) \cdot h'(x) \\ &= 7 x^{7 - 1} \cdot e^{3.9 x} + x^{7} \cdot e^{3.9 x} \cdot 3.9 \\ &= e^{3.9 x} \cdot(7 x^6 + 3.9 x^{7}) \\ &= e^{3.9 x} \cdot x^6 \cdot (7 + 3.9 x). \end{aligned} \] Evaluated at \(x = 0.61\), the answer is \[ e^{3.9 \cdot 0.61} \cdot 0.61^6 \cdot (7 + 3.9 \cdot 0.61) = 5.215814. \] Thus, rounded to two digits we have \(f'(0.61) = 5.22\).

  • False
  • True
  • False
  • False
  • False

What is the derivative of \(f(x) = x^{3} e^{3.3 x}\), evaluated at \(x = 0.65\)?

Using the product rule for \(f(x) = g(x) \cdot h(x)\), where \(g(x) := x^{3}\) and \(h(x) := e^{3.3 x}\), we obtain \[ \begin{aligned} f'(x) &= [g(x) \cdot h(x)]' = g'(x) \cdot h(x) + g(x) \cdot h'(x) \\ &= 3 x^{3 - 1} \cdot e^{3.3 x} + x^{3} \cdot e^{3.3 x} \cdot 3.3 \\ &= e^{3.3 x} \cdot(3 x^2 + 3.3 x^{3}) \\ &= e^{3.3 x} \cdot x^2 \cdot (3 + 3.3 x). \end{aligned} \] Evaluated at \(x = 0.65\), the answer is \[ e^{3.3 \cdot 0.65} \cdot 0.65^2 \cdot (3 + 3.3 \cdot 0.65) = 18.568369. \] Thus, rounded to two digits we have \(f'(0.65) = 18.57\).

  • False
  • False
  • True
  • False
  • False

What is the derivative of \(f(x) = x^{4} e^{3.1 x}\), evaluated at \(x = 0.63\)?

Using the product rule for \(f(x) = g(x) \cdot h(x)\), where \(g(x) := x^{4}\) and \(h(x) := e^{3.1 x}\), we obtain \[ \begin{aligned} f'(x) &= [g(x) \cdot h(x)]' = g'(x) \cdot h(x) + g(x) \cdot h'(x) \\ &= 4 x^{4 - 1} \cdot e^{3.1 x} + x^{4} \cdot e^{3.1 x} \cdot 3.1 \\ &= e^{3.1 x} \cdot(4 x^3 + 3.1 x^{4}) \\ &= e^{3.1 x} \cdot x^3 \cdot (4 + 3.1 x). \end{aligned} \] Evaluated at \(x = 0.63\), the answer is \[ e^{3.1 \cdot 0.63} \cdot 0.63^3 \cdot (4 + 3.1 \cdot 0.63) = 10.493845. \] Thus, rounded to two digits we have \(f'(0.63) = 10.49\).

  • False
  • False
  • True
  • False
  • False
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)
PDF:
deriv2-Rmd-pdf
deriv2-Rnw-pdf
HTML:
deriv2-Rmd-html
deriv2-Rnw-html

(Note that the HTML output contains mathematical equations in MathML, rendered by MathJax using ‘mathjax = TRUE’. Instead it is also possible to use ‘converter = “pandoc-mathjax”’ so that LaTeX equations are rendered by MathJax directly.)

Demo code:

library("exams")

set.seed(403)
exams2html("deriv2.Rmd", mathjax = TRUE)
set.seed(403)
exams2pdf("deriv2.Rmd")

set.seed(403)
exams2html("deriv2.Rnw", mathjax = TRUE)
set.seed(403)
exams2pdf("deriv2.Rnw")