Überblick
Mit w = x − y − z w = x - y - z w = x − y − z gilt w x = 1 w_x = 1 w x = 1 , w y = w z = − 1 w_y = w_z = -1 w y = w z = − 1 . Dadurch sind die Ableitungen nach y y y und z z z identisch, was viel Arbeit spart. Im Punkt ist w = 1 − 1 − 2 = − 2 w = 1 - 1 - 2 = -2 w = 1 − 1 − 2 = − 2 . Wir kürzen
c : = cos 2 ≈ − 0 , 4161 , s : = sin 2 ≈ 0 , 9093 c := \cos 2 \approx -0{,}4161, \qquad s := \sin 2 \approx 0{,}9093 c := cos 2 ≈ − 0 , 4161 , s := sin 2 ≈ 0 , 9093
ab; wegen cos ( − 2 ) = c \cos(-2) = c cos ( − 2 ) = c , sin ( − 2 ) = − s \sin(-2) = -s sin ( − 2 ) = − s .
Schritt 1: Funktionswert und erste Ableitungen
f ( 1 , 1 , 2 ) = 1 ⋅ cos ( − 2 ) = c . f(1,1,2) = 1\cdot\cos(-2) = c. f ( 1 , 1 , 2 ) = 1 ⋅ cos ( − 2 ) = c .
f x = cos w − x sin w , f x ( x 0 ) = c − ( − s ) = c + s , f y = − x sin w ⋅ ( − 1 ) = x sin w , f y ( x 0 ) = − s , f z = x sin w , f z ( x 0 ) = − s . \begin{aligned}
f_x &= \cos w - x\sin w, & f_x(\mathbf x_0) &= c - (-s) = c + s,\\
f_y &= -x\sin w\cdot(-1) = x\sin w, & f_y(\mathbf x_0) &= -s,\\
f_z &= x\sin w, & f_z(\mathbf x_0) &= -s.
\end{aligned} f x f y f z = cos w − x sin w , = − x sin w ⋅ ( − 1 ) = x sin w , = x sin w , f x ( x 0 ) f y ( x 0 ) f z ( x 0 ) = c − ( − s ) = c + s , = − s , = − s .
Schritt 2: Zweite Ableitungen
f x x = − sin w − sin w − x cos w = − 2 sin w − x cos w , f x x ( x 0 ) = 2 s − c , f x y = ∂ ∂ y ( cos w − x sin w ) = sin w + x cos w , f x y ( x 0 ) = − s + c , f x z = sin w + x cos w , f x z ( x 0 ) = c − s , f y y = ∂ ∂ y ( x sin w ) = − x cos w , f y y ( x 0 ) = − c , f y z = − x cos w , f y z ( x 0 ) = − c , f z z = − x cos w , f z z ( x 0 ) = − c . \begin{aligned}
f_{xx} &= -\sin w - \sin w - x\cos w = -2\sin w - x\cos w, & f_{xx}(\mathbf x_0) &= 2s - c,\\
f_{xy} &= \tfrac{\partial}{\partial y}(\cos w - x\sin w) = \sin w + x\cos w, & f_{xy}(\mathbf x_0) &= -s + c,\\
f_{xz} &= \sin w + x\cos w, & f_{xz}(\mathbf x_0) &= c - s,\\
f_{yy} &= \tfrac{\partial}{\partial y}(x\sin w) = -x\cos w, & f_{yy}(\mathbf x_0) &= -c,\\
f_{yz} &= -x\cos w, & f_{yz}(\mathbf x_0) &= -c,\\
f_{zz} &= -x\cos w, & f_{zz}(\mathbf x_0) &= -c.
\end{aligned} f xx f x y f x z f yy f yz f zz = − sin w − sin w − x cos w = − 2 sin w − x cos w , = ∂ y ∂ ( cos w − x sin w ) = sin w + x cos w , = sin w + x cos w , = ∂ y ∂ ( x sin w ) = − x cos w , = − x cos w , = − x cos w , f xx ( x 0 ) f x y ( x 0 ) f x z ( x 0 ) f yy ( x 0 ) f yz ( x 0 ) f zz ( x 0 ) = 2 s − c , = − s + c , = c − s , = − c , = − c , = − c .
(Bei f x y f_{xy} f x y : ∂ ∂ y cos w = − sin w ⋅ ( − 1 ) = sin w \frac{\partial}{\partial y}\cos w = -\sin w\cdot(-1) = \sin w ∂ y ∂ cos w = − sin w ⋅ ( − 1 ) = sin w und ∂ ∂ y sin w = − cos w \frac{\partial}{\partial y}\sin w = -\cos w ∂ y ∂ sin w = − cos w .)
grad f ( x 0 ) = ( c + s − s − s ) , H f ( x 0 ) = ( 2 s − c c − s c − s c − s − c − c c − s − c − c ) . \operatorname{grad} f(\mathbf x_0) = \begin{pmatrix} c+s\\ -s\\ -s\end{pmatrix}, \qquad H_f(\mathbf x_0) = \begin{pmatrix} 2s - c & c - s & c - s\\ c - s & -c & -c\\ c - s & -c & -c\end{pmatrix}. grad f ( x 0 ) = c + s − s − s , H f ( x 0 ) = 2 s − c c − s c − s c − s − c − c c − s − c − c .
Schritt 3: Taylorpolynom
Mit Δ x = x − 1 \Delta x = x - 1 Δ x = x − 1 , Δ y = y − 1 \Delta y = y - 1 Δ y = y − 1 , Δ z = z − 2 \Delta z = z - 2 Δ z = z − 2 :
T 2 = c + ( c + s ) Δ x − s Δ y − s Δ z + 1 2 [ ( 2 s − c ) Δ x 2 + 2 ( c − s ) Δ x Δ y + 2 ( c − s ) Δ x Δ z − c Δ y 2 − 2 c Δ y Δ z − c Δ z 2 ] . \begin{aligned}
T_2 &= c + (c+s)\Delta x - s\,\Delta y - s\,\Delta z\\
&\quad + \tfrac12\Bigl[(2s-c)\Delta x^2 + 2(c-s)\Delta x\Delta y + 2(c-s)\Delta x\Delta z - c\,\Delta y^2 - 2c\,\Delta y\Delta z - c\,\Delta z^2\Bigr].
\end{aligned} T 2 = c + ( c + s ) Δ x − s Δ y − s Δ z + 2 1 [ ( 2 s − c ) Δ x 2 + 2 ( c − s ) Δ x Δ y + 2 ( c − s ) Δ x Δ z − c Δ y 2 − 2 c Δ y Δ z − c Δ z 2 ] .
Zusammengefasst (die letzten drei Terme ergeben − c ( Δ y + Δ z ) 2 -c(\Delta y + \Delta z)^2 − c ( Δ y + Δ z ) 2 ):
T 2 = c + ( c + s ) Δ x − s ( Δ y + Δ z ) + ( s − c 2 ) Δ x 2 + ( c − s ) Δ x ( Δ y + Δ z ) − c 2 ( Δ y + Δ z ) 2 . T_2 = c + (c+s)\Delta x - s(\Delta y + \Delta z) + \bigl(s - \tfrac{c}{2}\bigr)\Delta x^2 + (c - s)\Delta x(\Delta y + \Delta z) - \tfrac{c}{2}(\Delta y + \Delta z)^2. T 2 = c + ( c + s ) Δ x − s ( Δ y + Δ z ) + ( s − 2 c ) Δ x 2 + ( c − s ) Δ x ( Δ y + Δ z ) − 2 c ( Δ y + Δ z ) 2 .
Ergebnis
Mit c = cos 2 c = \cos 2 c = cos 2 , s = sin 2 s = \sin 2 s = sin 2 und Δ x = x − 1 \Delta x = x-1 Δ x = x − 1 , Δ y = y − 1 \Delta y = y-1 Δ y = y − 1 , Δ z = z − 2 \Delta z = z-2 Δ z = z − 2 :
T 2 = c + ( c + s ) Δ x − s ( Δ y + Δ z ) + ( s − c 2 ) Δ x 2 + ( c − s ) Δ x ( Δ y + Δ z ) − c 2 ( Δ y + Δ z ) 2 . T_2 = c + (c+s)\Delta x - s(\Delta y + \Delta z) + \Bigl(s - \frac{c}{2}\Bigr)\Delta x^2 + (c-s)\,\Delta x\,(\Delta y + \Delta z) - \frac{c}{2}(\Delta y + \Delta z)^2. T 2 = c + ( c + s ) Δ x − s ( Δ y + Δ z ) + ( s − 2 c ) Δ x 2 + ( c − s ) Δ x ( Δ y + Δ z ) − 2 c ( Δ y + Δ z ) 2 .
Numerisch: T 2 ≈ − 0 , 416 + 0 , 493 Δ x − 0 , 909 ( Δ y + Δ z ) + 1 , 117 Δ x 2 − 1 , 325 Δ x ( Δ y + Δ z ) + 0 , 208 ( Δ y + Δ z ) 2 T_2 \approx -0{,}416 + 0{,}493\Delta x - 0{,}909(\Delta y + \Delta z) + 1{,}117\Delta x^2 - 1{,}325\Delta x(\Delta y + \Delta z) + 0{,}208(\Delta y + \Delta z)^2 T 2 ≈ − 0 , 416 + 0 , 493Δ x − 0 , 909 ( Δ y + Δ z ) + 1 , 117Δ x 2 − 1 , 325Δ x ( Δ y + Δ z ) + 0 , 208 ( Δ y + Δ z ) 2 .
Kontrolle durch Substitution
f f f hängt nur von x x x und σ : = y + z \sigma := y + z σ := y + z ab. Mit a : = Δ x a := \Delta x a := Δ x , b : = Δ y + Δ z b := \Delta y + \Delta z b := Δ y + Δ z ist w = − 2 + a − b w = -2 + a - b w = − 2 + a − b und
f = ( 1 + a ) cos ( − 2 + a − b ) ≈ ( 1 + a ) [ c + s ( a − b ) − c 2 ( a − b ) 2 ] f = (1 + a)\cos(-2 + a - b) \approx (1+a)\bigl[c + s\,(a-b) - \tfrac{c}{2}(a-b)^2\bigr] f = ( 1 + a ) cos ( − 2 + a − b ) ≈ ( 1 + a ) [ c + s ( a − b ) − 2 c ( a − b ) 2 ]
(Taylor von cos \cos cos um − 2 -2 − 2 : cos ( − 2 ) = c \cos(-2) = c cos ( − 2 ) = c , − sin ( − 2 ) = s -\sin(-2) = s − sin ( − 2 ) = s , − cos ( − 2 ) = − c -\cos(-2) = -c − cos ( − 2 ) = − c ). Bis Grad 2:
c + ( c + s ) a − s b + ( s − c 2 ) a 2 + ( c − s ) a b − c 2 b 2 c + (c + s)a - s\,b + \bigl(s - \frac{c}{2}\bigr)a^2 + (c - s)\,a b - \frac{c}{2}b^2 c + ( c + s ) a − s b + ( s − 2 c ) a 2 + ( c − s ) ab − 2 c b 2 ✓ (der Term a b ab ab : − s a b + c a b -s\,ab + c\,ab − s ab + c ab aus − c 2 ⋅ ( − 2 a b ) -\frac{c}{2}\cdot(-2ab) − 2 c ⋅ ( − 2 ab ) ).