On the Subject of Partial Derivatives
You won’t be getting partial credit...
This module displays a trinomial function in terms of three variables: x, y, and z. In each term of the trinomial, the variables are taken to integer powers between 0 and 5 (inclusive), and they may be multiplied by each other. Coefficients will appear on each term, and the terms will be added to each other. The module also contains three colored LEDs that will turn on at the beginning of each of the three stages.
The goal of this module is to evaluate a first, second, and third partial derivative of the function displayed based on the current color of the LED, and evaluate the partial derivative at points determined by the edgework of the bomb. Each of these partial derivatives is its own stage, and the current stage is indicated by the number of colored LEDs that are lit on the bottom of the module.
How to take a partial derivative
The derivative of a function measures a function’s output’s sensitivity with respect to a change in its input. The derivative of a single-variable function evaluated at a point measures the function’s instantaneous rate of change (slope) at that particular point.
While learning calculating derivatives takes up a sizeable portion of an introductory calculus class, only a single type of function will appear in this module: polynomials. For a monomial f = Cxn, the derivative Dx is equal to Cnxn-1. The derivative of the sum of monomials is equal to the sum of the derivatives of the monomials. For example, if f = 6x4-x2+9x-1, then Dx = 24x3-2x+9. The value of the derivative of a function at a point can be found by plugging in the coordinates of the point into the derivative. For example, with the above function, Dx(1) = 24(13)-2(1)+9 = 31.
The partial derivative of a multivariable function is the derivative of the function taken with respect to exactly one variable, treating all other variables as constants. For a partial derivative of f taken with respect to x, this is denoted Dxf. A second partial derivative can be taken with respect to the same or a different variable; for example, two second partial derivatives of f are Dxxf and Dxyf. For example, for the function g = 2x3y2-7xy4, gx = 6x2y2-7y4 and gxy = 12x2y-28y3. Evaluated at a point, gx(1,2) = 6(1)2(2)2-7(2)4 = -88 and gxy(1,2) = 12(1)2(2)-28(2)3 = -200.