question id: lamb-rise-sofa-1
Chap 23 Exercises
Loading webR...
Exercise 1 For each of the following, say whether the function is a composition
- What sort of combination is
?
- What sort of combination is
?
question id: lamb-rise-sofa-2
- What sort of combination is
?
question id: lamb-rise-sofa-3
- What sort of combination is
?
question id: lamb-rise-sofa-4
- What sort of combination is
?
question id: lamb-rise-sofa-5
- What sort of combination is
?
question id: lamb-rise-sofa-6
- What sort of combination is
?
question id: lamb-rise-sofa-7
- What sort of combination is
?
question id: lamb-rise-sofa-8
- What sort of combination is
?
question id: lamb-rise-sofa-9
Exercise 2 In function compositions of the form
- In
which is the interior function?
question id: bdb932-1
- In
which is the exterior function?
question id: bdb932-2
- In
which is the exterior function?
question id: bdb932-3
- In
which is the interior function?
question id: bdb932-4
Exercise 3 Recall the differentiation rules for three of the pattern-book functions as presented in [Faulty cross reference: sec-symbolic-differentiation]:
Function name | Formula | Formula for derivative | power-law exponent |
---|---|---|---|
Identity | 1 | ||
Square | 2 | ||
Reciprocal | -1 |
All three of these pattern-book functions are members of the power-law family:
There is a differentiation rule for the power-law family generally. The next question offers several formulas for this rule, only one of which is correct. You can figure out which one by trying the pattern-book functions in the table above and seeing which formula gives the correct answer for the derivative.
Which of these formulas gives the correct differentiation rule for the power-law family
question id: doe-pay-kitchen
Exercise 4 Although we created an R function named slopeFun()
for the purposes of demonstration, it is better to use the R/mosaic operator D()
which calculates the derivative, sometimes using symbolic methods and sometimes using a finite-difference method.
As an example of the use of D()
, here is some more R code that defines a function f()
and finds d_f()
. Then each function is plotted on the same domain.
For each of the following functions, write a brief comparison of the function to it is differenced version. You can combine phrases such as “same shape”, “different shape. larger in amplitude”, “smaller in amplitude”, “same period”, “shorter period”, “longer period”, or whatever seems appropriate. For instance, for the original example in the sandbox, a reasonable comparison might be, “f() is concave down but Diff(f) is concave up.”
A. For the function
B. For the function
C. For the function
D. For the function
E. For the function
F. For the function
G. For the function
H. The graphic produced by Active R chunk 1 uses two separate frames, one for
Exercise 5 MOSAIC Calculus Sec 23.1 explains that in differentiating a linear combination of two functions, or a product of two functions, or one function composed with another, your first task is to identify the two functions
Carry out these two tasks for each of the combined functions shown in the table. (The first row has been done for you as an example.)
Combination | ||||
---|---|---|---|---|
Exercise 6 Confirm using algebraic manipulation the differentiation rule for a product of three functions:
Hint:
Exercise 7 In Exercise 7 you constructed models
The parameter
The model for the entire regiment is a linear combination of time-shifted single pills, e.g.
From graphs of the functions themselves it is easy to check whether the availability ever falls below the therapeutic threshold (which we stipulated is 0.25). For instance, the eight-hour regiment with a dose of A=1
does fall below the threshold during the first day. So a larger dose is needed than A=1
.
A primary objective in choosing a drug regime is to ensure that the availability stays above the therapeutic level. A secondary objective is to keep the elimination rate small so that the drug can be handled by patients with poorly functioning livers.
The derivative elimination()
for the function created in Active R chunk 2.
For each of the three regimens—6-hour, 8-hour, 8-hour-double-first-dose—construct
Exercise 8 The function
As you know, the derivative of a sigmoid
- How many gaussians will be in
.
question id: psp4-1
Figure 2 shows several functions. One of them is
- Which function is the actual derivative of
? (Hint: The vertical axis is important as is the value of .)
question id: psp4-2
- Of the functions (1), (2), (3), and (4) below, which function is the second derivative of
? (Hints: The vertical axis is important as is the value of .)
question id: pig-see-pantry-3
Exercise 9 Recall from MOSAIC Calculus Sec 6.4 that a function is monotonically increasing on a given domain when the function’s slope is positive everywhere in that domain. A monotonically decreasing function, similarly, has a negative slope everywhere in the domain. When the slope is zero, or positive in some places and negative in others, the function is neither monotonically increasing or decreasing.
Each of the following graphs shows the derivative of some function
- Function A is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-1
- Function B is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-2
- Function C is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-3
- Function D is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-4
Function E is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-5
- Function F is …
monotonically increasing
monotonically decreasing
constant
non-monotonic
Can’t tell from the info provided
question id: pine-lead-car-6
Activities
Exercise 10
The chapter gives the simple rule,
Recall that
Let’s use the first form and differentiate with respect to
But remember that
In other words
This says that the derivative function dln() is such that whatever the input, the output is the reciprocal of the input. We have written the input
The name of the input argument is arbitrary, so you might prefer to see the above written as
Exercise 11
Knowing that
Applying the chain rule to this composition gives
Exercise 12 Consider this function, defined piecewise:
Write the R command to create this function. (Hint: Remember
ifelse
from [Faulty cross reference: sec-piecewise-intro].)Using Active R chunk 3, plot
over the domain , then sketch a copy of the graph on your paper.
Create the function
by differentiating separately each piece of the piecewise function . Write down using mathematical notation similar to the definition of given above.Sketch a graph of
over the domain . You’re welcome to use a Active R chunk 3, but you may be able to figure out the shape of the graph yourself.The shape of the function you sketched in (4) has a name, given in the text in Section @ref(continuity). What is that name?
Now you will do much the same as in items (3), (4), and (5), but instead of the first derivative
Create and write down
in mathematical notation.Sketch
Classify the smoothness of
using the following table:
Smoothness | Criterion |
---|---|
and so on. | |
All orders of derivative of |
Exercise 13 Recall from Exercise 5 the Lorenz curve used to describe income inequality. The Lorenz curve shows the fraction of total income versus population fraction.
Since the population is arranged from poorest to richest along the horizontal axis, Lorenz curves must be both monotonically increasing and concave up. That is, any Lorenz function
that is, the aggregate fraction of income earned by the entire population is 100%. that is, monotonically increasing that is, concave up.
Consider a function
- A. Use the composition rule to show that
is monotonically increasing. (Hint, calculate and show that it must be positive.) - B. Using both the composition and product rules, calculate
and show that must be concave up.
Exercise 14 The formula for the function
A. Use the chain rule to find
B. Confirm from your answer to (1) that there is another formula for
C. Use the product rule to find
D. From your answer to (3), compute the 3rd derivative
E. Let’s generalize the pattern. Each of the previous derivatives has been a polynomial—let’s call it
Exercise 15 The natural logarithm function, log10(x)
. Ten is an integer, and a nice number to use in arithmetic. So in practice, it is sensible to use
The “natural” in the “natural logarithm” means something different.
The base of the natural logarithm is the number called Euler’s constant and written
It is not obvious why
is the inverse of , which is special for being invariant under differentiation: .- The derivative
which has a particularly simple form, namely, .
Let’s look at the log-base-10 and its computer-savvy cousin log-base-2. The very definition of logarithms means that both 10 and 2 can be written
Like