Uploaded by ronengold100

Chapter 5 Exercises - PDF

advertisement
Chapter 5 Solutions
Question 1
๐‘“(๐‘ฅ) as ๐‘“(๐‘ฅ) = 4log(๐‘ฅ)sin(๐‘ฅ3 ) .
Then, ๐‘“ ′ (๐‘ฅ) = 4๐‘ฅ sin(๐‘ฅ3 ) + 12๐‘ฅ2 log(๐‘ฅ)cos(๐‘ฅ3 ) .
Firstly, let's rewrite
Question 2
If we rewrite our function as
exp(−๐‘ฅ) .
๐‘“(๐‘ฅ) = (1 + exp(−๐‘ฅ))−1 , then we have ๐‘“ ′ (๐‘ฅ) = (1+exp(−๐‘ฅ)
)2
Question 3
We have
๐‘“ ′ (๐‘ฅ) = ๐œ‡−๐‘ฅ๐œŽ2 ๐‘“(๐‘ฅ).
Question 4
We compute the ๏ฌrst ๏ฌve derivatives of our function at 0. We have
, and
.
๐‘“(0) = ๐‘“ ′ (0) = 1,
๐‘“ (2) (0) = ๐‘“ (3) (0) = −1 ๐‘“ (4) (0) = ๐‘“ (5) (0) = 1
The Taylor polynomial ๐‘‡5 (๐‘ฅ) = 1 + ๐‘ฅ − 1 ๐‘ฅ2 − 1 ๐‘ฅ3 + 1 ๐‘ฅ4 + 1 ๐‘ฅ5 . The lower-order Taylor polynomials
2
6
24
120
can be found by truncating this expression appropriately.
Question 5
Part a
We can see below that
Part b
We have
Part c
∂๐‘“1
∂๐‘ฅ
∂๐‘“1
∂๐‘ฅ
has dimension
1 × 2 ; ∂∂๐‘ฅ๐‘“2 has dimension 1 × ๐‘› ; and ∂∂๐‘ฅ๐‘“3 has dimension ๐‘›2 × ๐‘›.
= [ cos(๐‘ฅ1 )cos(๐‘ฅ2 ) −sin(๐‘ฅ1 )sin(๐‘ฅ2 ) ]; ∂∂๐‘ฅ๐‘“2 = ๐‘ฆ๐–ณ . (Remember, ๐‘ฆ is a column vector!)
๎€ˆ๎€‡ ๐‘ฅ21 ๐‘ฅ1 ๐‘ฅ2 โ‹ฏ ๐‘ฅ1 ๐‘ฅ๐‘› ๎€‹๎€Š
๎€‡ ๐‘ฅ2 ๐‘ฅ1 ๐‘ฅ22 โ‹ฏ ๐‘ฅ2 ๐‘ฅ๐‘› ๎€Š๎€Š. Thus its derivative will be a higher-order tensor.
Note that ๐‘ฅ๐‘ฅ๐–ณ is the matrix ๎€‡
๎€‡๎€‡ โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ ๎€Š๎€Š
๎€† ๐‘ฅ๐‘› ๐‘ฅ1 ๐‘ฅ๐‘› ๐‘ฅ2 2โ‹ฏ ๐‘ฅ2๐‘› ๎€‰
However, if we consider the matrix to be an ๐‘› -dimensional object in its own right, we can compute the
Jacobian. Its ๏ฌrst row consists of [ 2๐‘ฅ1 ๐‘ฅ2 โ‹ฏ ๐‘ฅ๐‘› | ๐‘ฅ2 0 โ‹ฏ 0 | โ‹ฏ |๐‘ฅ๐‘› 0 โ‹ฏ 0 ], where I
have inserted a vertical bar every ๐‘› columns, to aid readability.
Question 6
= cos(log(๐‘ก๐–ณ ๐‘ก)) ⋅ ๐‘ก1๐–ณ๐‘ก ⋅ [ 2๐‘ก1 2๐‘ก2 โ‹ฏ 2๐‘ก๐ท ] = cos(log(๐‘ก๐–ณ ๐‘ก)) ⋅ 2๐‘ก๐–ณ๐‘ก๐–ณ๐‘ก .
๐น ๐ธ
For ๐‘”, if we explicitly compute ๐ด๐‘‹๐ต and ๏ฌnd its trace, we have that ๐‘”(๐‘‹) = ∑๐ท
๐‘˜=1 ∑๐‘—=1 ∑๐‘–=1 ๐‘Ž๐‘˜๐‘– ๐‘ฅ๐‘–๐‘— ๐‘๐‘—๐‘˜ .
∂๐‘”
๐ท
Thus we have,
∂๐‘ฅ๐‘–๐‘— = ∑๐‘˜=1 ๐‘๐‘—๐‘˜ ๐‘Ž๐‘˜๐‘– , and this is the (๐‘–,๐‘—)-th entry of the required derivative. Hence
๐‘‘๐‘”
๐–ณ ๐–ณ
๐‘‘๐‘‹ = ๐ต ๐ด .
We have
๐‘‘๐‘“
๐‘‘๐‘ก
Question 7
Part a
= ๐‘‘๐‘“๐‘‘๐‘ง ๐‘‘๐‘ง๐‘‘๐‘ฅ , where ๐‘‘๐‘“๐‘‘๐‘ง has dimension 1 × 1 , and ๐‘‘๐‘ง๐‘‘๐‘ฅ has dimension 1 × ๐ท . We
๐‘‘๐‘“ = 1 .
know ๐‘‘๐‘ง = 2๐‘ฅ๐–ณ from ๐‘“ in Question 6. Also,
๐‘‘๐‘ฅ
๐‘‘๐‘ง 1+๐‘ง
๐‘‘๐‘“ = 2๐‘ฅ๐–ณ .
Therefore,
๐‘‘๐‘ฅ 1+๐‘ฅ๐–ณ ๐‘ฅ
The chain rule tells us that
Part b
๐‘‘๐‘“
๐‘‘๐‘ฅ
๎€ˆ๎€‡ cos๐‘ง1 0
๐‘‘๐‘“ is an ๐ธ × ๐ธ matrix, namely ๎€‡ 0 cos๐‘ง2
Here we have
๐‘‘๐‘ง
๎€‡๎€‡ โ‹ฎ
โ‹ฎ
๎€† 0
0
Also, ๐‘‘๐‘ง is an ๐ธ × ๐ท-dimensional matrix, namely ๐ด itself.
๐‘‘๐‘ฅ
โ‹ฏ 0 ๎€‹๎€Š
โ‹ฏ 0 ๎€Š.
โ‹ฑ โ‹ฎ ๎€Š๎€Š
โ‹ฏ cos๐‘ง๐ธ ๎€‰
The overall derivative is obtained by multiplying these two matrices together, which will again give us an
-dimensional matrix.
๐ธ×๐ท
Question 8
Part a
1 × 1 , and is simply − 12 exp(− 12 ๐‘ง).
๐‘‘๐‘ง has dimension 1 × ๐ท , and is given by ๐‘ฆ๐–ณ (๐‘† −1 + (๐‘† −1 )๐–ณ ) .
Now,
๐‘‘๐‘ฆ
๐‘‘๐‘ฆ has dimension ๐ท × ๐ท, and is just the identity matrix.
Finally,
๐‘‘๐‘ฅ
We have
๐‘‘๐‘“
๐‘‘๐‘ง
has dimension
Again, we multiply these all together to get our ๏ฌnal derivative.
Part b
If we explicitly write out
๐‘‘๐‘“
๐‘‘๐‘ฅ
Hence,
= 2๐‘ฅ๐–ณ .
Part c
๎€ˆ๎€‡ cosh12 ๐‘ง1
๎€‡๎€‡ 0
๐‘‘๐‘“
Here, ๐‘‘๐‘ง = ๎€‡
๎€‡๎€‡ โ‹ฎ
๎€† 0
Finally,
๐‘ฅ๐‘ฅ๐–ณ + ๐œŽ 2 ๐ผ , and compute its trace, we ๏ฌnd that ๐‘“(๐‘ฅ) = ๐‘ฅ21 + โ‹ฏ + ๐‘ฅ2๐‘› + ๐‘›๐œŽ 2 .
0
1
cosh2 ๐‘ง2
โ‹ฎ
0
โ‹ฏ
โ‹ฏ
โ‹ฑ
โ‹ฏ
0
0
โ‹ฎ
1
cosh2 ๐‘ง๐‘€
๎€‹๎€Š
๎€Š๎€Š
๎€Š๎€Š , while ๐‘‘๐‘ง๐‘‘๐‘ฅ = ๐ด, as in Question 7b.
๎€Š๎€‰
๐‘‘๐‘“ is given by the product of these two matrices.
๐‘‘๐‘ฅ
Question 9
๐‘ง with ๐‘ก(๐œ–,๐œˆ) throughout, we have that
๐‘”(๐œˆ) = log(๐‘(๐‘ฅ,๐‘ก(๐œ–,๐œˆ))) − log(๐‘ž(๐‘ก(๐œ–,๐œˆ),๐œˆ)) .
๐‘‘๐‘” ๐‘′ (๐‘ฅ,๐‘ก(๐œ–,๐œˆ))⋅๐‘ก′(๐œ–,๐œˆ) − ๐‘ž′ (๐‘ก(๐œ–,๐œˆ),๐œˆ)⋅๐‘ก′(๐œ–,๐œˆ) .
Therefore, ๐‘‘๐œˆ =
๐‘(๐‘ฅ,๐‘ก(๐œ–,๐œˆ))
๐‘ž(๐‘ก(๐œ–,๐œˆ),๐œˆ)
Piecing this together, replacing
Download