Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

188 řádky
8.5KB

  1. \documentclass[uebung]{../../../lecture}
  2. \begin{document}
  3. \title{Einführung in die Numerik: Übungsblatt 2}
  4. \author{Leon Burgard, Christian Merten}
  5. \punkte
  6. \begin{aufgabe}
  7. Die relativen Konditionszahlen sind gegeben durch
  8. \[
  9. \frac{\partial F_i}{\partial x_j}(x) \frac{x_j}{F_i(x)}
  10. .\]
  11. \begin{itemize}
  12. \item $F(x, y) = x \cdot y$:
  13. \[
  14. \frac{\partial F}{\partial x} = y \qquad \frac{\partial F}{\partial y } = x
  15. .\] Damit folgt
  16. \[
  17. k_{11} = y \cdot \frac{x}{x \cdot y} = 1 \qquad k_{12} = x \cdot \frac{y}{x \cdot y} = 1
  18. .\] Die Multiplikation ist also gut konditioniert.
  19. \item $F(x, y) = \frac{x}{y}$:
  20. \begin{align*}
  21. \frac{\partial F}{\partial x} = \frac{1}{y} &\qquad \frac{\partial F}{\partial y} = - \frac{x}{y^2}
  22. \intertext{Damit folgt}
  23. k_{11} = \frac{1}{y} \cdot \frac{x}{\frac{x}{y}} = \frac{x}{y} \frac{y}{x} = 1
  24. &\qquad
  25. k_{12} = -\frac{x}{y^2} \cdot \frac{y}{\frac{x}{y}} = - \frac{x}{y^2} \frac{y^2}{x} = -1
  26. .\end{align*}
  27. Die Division ist also auch gut konditioniert.
  28. \item $F(x) = \sqrt{x} $
  29. \begin{align*}
  30. \frac{\d F}{\d x} &= \frac{1}{2\sqrt{x} }
  31. \intertext{Damit folgt}
  32. k_{11} &= \frac{1}{2\sqrt{x} } \frac{x}{\sqrt{x} } = \frac{1}{2}
  33. .\end{align*}
  34. Wurzelziehen ist also ebenfalls gut konditioniert.
  35. \end{itemize}
  36. \end{aufgabe}
  37. \begin{aufgabe}
  38. \begin{itemize}
  39. \item Sei $p \in \N$.
  40. \begin{align*}
  41. f(h) &= (ph^2 + h^2)^2 - p^2h^{4} \\
  42. &= h^{2} \left(2ph + 1\right)
  43. \intertext{Es ist $2ph + 1 \le 2p + 1$ für $h \le 1$. Also folgt mit $c = 2p + 1$}
  44. f(h) &= \mathcal{O}(h^2)
  45. .\end{align*}
  46. Es ist außerdem
  47. \[
  48. \frac{h^2(2ph+1)}{h^{3}} = \frac{2ph^{3} + h^2}{h^{3}} = 2p + \frac{1}{h}
  49. \xrightarrow{h \searrow 0} \infty
  50. ,\] also ist $f(h) \neq \mathcal{O}(h^{3})$.
  51. \item Es gilt für $0 < h \le \frac{1}{e}\colon |\ln(h)| \ge 1$. Also folgt
  52. \[
  53. |f(h)| = \left|-\frac{h^2}{\ln(h)}\right|
  54. \le h^2 \implies f(h) = \mathcal{O}(h^2)
  55. .\] Es ist außerdem mit de l'Hospital
  56. \begin{align*}
  57. \lim_{h \to 0} \left| \frac{h^2}{\ln(h)h^{3}} \right|
  58. = \lim_{h \to 0} \left| \frac{\frac{1}{h}}{\ln(h)} \right| \qquad
  59. \stackrel{\text{de l'Hospital}}{=}
  60. \qquad\lim_{h \to 0} \left| \frac{\frac{1}{h^2}}{\frac{1}{h}} \right| = \infty
  61. ,\end{align*} also ist $f(h) \neq \mathcal{O}(h^{3})$.
  62. \item Es folgt mit Additionstheoremen
  63. \begin{align*}
  64. f(h) = \frac{\sin(x+h) - 2\sin(x) + \sin(x-h)}{h^2 + \sin(x)}
  65. = \frac{2 \sin(x) (\cos(h) - 1)}{h^2} + \sin(x)
  66. .\end{align*}
  67. Damit folgt $f(h) = \mathcal{O}(h^2)$, denn mit de l'Hospital ist
  68. \begin{align*}
  69. \lim_{h \to 0} \left| \frac{f(h)}{h^2} \right|
  70. &= \lim_{h \to 0} \left| \frac{2 \sin(x) (\cos h - 1) + h^2 \sin(x)}{h^4} \right| \\
  71. &= \lim_{h \to 0} \left| \frac{- 2 \sin(x) \sin(h) + 2h \sin(x)}{4h^{3}} \right| \\
  72. &= \lim_{h \to 0} \left| \frac{-2 \sin(x) \cos(h) + 2 \sin(x)}{12h^{2}} \right| \\
  73. &= \lim_{h \to 0} \left| \frac{2 \sin(x) \sin(h)}{24h} \right| \\
  74. &= \lim_{h \to 0} \left| \frac{2 \sin(x) \cos(h)}{24} \right| \\
  75. &= \left|\frac{\sin(x)}{12} \right| < \infty
  76. \intertext{Es gilt außerdem $f(h) \neq \mathcal{O}(h^{3})$, denn wiederum mit de l'Hospital ist}
  77. \lim_{h \to 0} \left| \frac{f(h)}{h^{3}} \right|
  78. &= \lim_{h \to 0} \left| \frac{2 \sin(x) (\cos h - 1) + h^2 \sin(x)}{h^5} \right| \\
  79. &= \lim_{h \to 0} \left| \frac{- 2 \sin(x) \sin(h) + 2h \sin(x)}{5h^{4}} \right| \\
  80. &= \lim_{h \to 0} \left| \frac{-2 \sin(x) \cos(h) + 2 \sin(x)}{20h^{3}} \right| \\
  81. &= \lim_{h \to 0} \left| \frac{2 \sin(x) \sin(h)}{60h^2} \right| \\
  82. &= \lim_{h \to 0} \left| \frac{2 \sin(x) \cos(h)}{120h} \right| \\
  83. &= \infty
  84. .\end{align*}
  85. \end{itemize}
  86. \begin{figure}[h!]
  87. \begin{tikzpicture}
  88. \begin{axis}
  89. \addplot[domain=0:1, samples=50, smooth, green] {3*x^2 + x)^2 - 3^2*x^4};
  90. \addplot[domain=0:1, samples=50, smooth, red] {x^2 * (2*3 + 1)};
  91. \legend{$(ph^2 + h)^2 - p^2h^{4}$, $(2p + 1) h^2$}
  92. \end{axis}
  93. \end{tikzpicture}
  94. \begin{tikzpicture}
  95. \begin{axis}
  96. \addplot[domain=0:0.5, samples=50, smooth, green] {- (x^2)/(ln(x))};
  97. \addplot[domain=0:0.5, samples=50, smooth, red] {x^2};
  98. \legend{$- \frac{h^2}{\ln h}$, $h^2$}
  99. \end{axis}
  100. \end{tikzpicture}
  101. \caption{Links: $f_1(h)$ für $p = 1$ und $c = 7$, Rechts: $f_2(h)$ mit $c = 1$}
  102. \end{figure}
  103. \end{aufgabe}
  104. \begin{aufgabe}
  105. Quadratische Ergänzung führt auf die Lösungsformel
  106. \begin{align*}
  107. x_{1/2} &= \pm \sqrt{p^2 - 1} + p
  108. \intertext{Also folgt}
  109. \frac{\partial F_{1/2}}{\partial p} &= \pm \frac{p}{\sqrt{p^2 - 1} } + 1
  110. \intertext{Damit ergibt sich}
  111. k_{11} &= \frac{1 + \sqrt{1 - \frac{1}{p^2}} }{1 - \frac{1}{p^2} + \sqrt{1 - \frac{1}{p^2}} } \\
  112. k_{21} &= \frac{- 1 + \sqrt{1 - \frac{1}{p^2}} }{-1 + \frac{1}{p^2} + \sqrt{1 - \frac{1}{p^2}} }
  113. .\end{align*}
  114. Aus der Lösungsformel folgt zudem $F(p) \in \R^{2} \iff |p| \ge 1 $
  115. Das alternativ parametrisierte Problem führt auf die Lösungen
  116. $x_1 = t$ und $x_2 = \frac{1}{t}$, denn
  117. \begin{align*}
  118. t^2 - \frac{t^2 + 1}{t} t + 1 &= t^2 - t^2 - 1 + 1 = 0 \\
  119. \frac{1}{t^2} - \frac{t^2 + 1}{t} \frac{1}{t} + 1 &= \frac{1}{t^2} - 1 - \frac{1}{t^2} + 1 = 0
  120. .\end{align*}
  121. Damit folgt
  122. \begin{align*}
  123. \frac{\partial F_{1}}{\partial t} &= 1 \\
  124. \frac{\partial F_2}{\partial t} &= - \frac{1}{t^2}
  125. \intertext{Damit folgt}
  126. k_{11} &= 1 \frac{t}{t} = 1 \\
  127. k_{21} &= -\frac{1}{t^2} \frac{t}{\frac{1}{t}} = - \frac{t^2}{t^2} = - 1
  128. .\end{align*}
  129. Im ersten Fall wird das Problem schlecht konditioniert, wenn $|p| < 1$ wird,
  130. allerdings hat dann die Gleichung keine
  131. reellen Lösungen mehr. Im zweiten Fall, ist das Problem immer gut konditioniert.
  132. \end{aufgabe}
  133. \begin{aufgabe}
  134. Es sei $I := [0,1]$ und
  135. \[
  136. f\colon I \to I, \quad f(x) := \begin{cases}
  137. 2x & \text{falls } x \in [0, 0.5) \\
  138. 2 - 2x & \text{falls } x \in [0.5, 1]
  139. \end{cases}
  140. .\] Die Folge $(x_i)_{i\in\N}$ sei für ein $x_0 \in I$ definiert als
  141. \[
  142. x_i = f(x_{i-1})
  143. .\]
  144. \begin{enumerate}[a)]
  145. \item siehe \textit{zeltabbildung.cpp}
  146. \item Beh.: Sei $x_0 = (0.m_1 \ldots m_r)_{2} \in [0,1]$ eine Festkommazahl der Binärdarstellung
  147. mit höchstens $r$ Nachkommastellen ungleich $0$. Dann gilt $x_{r+1} = 0$.
  148. \begin{proof}
  149. Beweis per Induktion nach $r$.
  150. Für $r = 0$: trivial $f(0) = 0 \implies x_1 = 0$.
  151. Sei Beh. gegeben für ein $r \in \N_0$. Dann sei
  152. \[
  153. x_0 = (0.m_1\ldots m_{r+1})_2 \in [0,1]
  154. .\] mit $m_{r+1} \neq 0$ (sonst bereits gezeigt).
  155. Falls $x_0 \in [0, 0.5)$. Dann ist $m_1 = 0$ und
  156. \[
  157. x_1 = f(x_0) = 2x_0 = 2 \sum_{i=1}^{r+1} m_i 2^{-i}
  158. = \sum_{i=1}^{r+1} m_i 2^{-i+1}
  159. = (0.\widetilde{m}_{1}\ldots\widetilde{m}_{r+1})_2
  160. .\] Da $m_{r+1} = 1_{2} \implies \widetilde{m}_{r+1} = 0_{2}$. Also
  161. hat $x_1$ höchstens $r$ Stellen ungleich $0$. Wende I.V. auf $x_1$ an. Damit folgt
  162. $x_{r+1} = 0$.
  163. Falls $x_0 \in [0.5, 1]$. Dann ist $m_1 = 1_{2}$ und
  164. \[
  165. x_1 = f(x_0) = 2 - 2x_0 = 2 - 2 \sum_{i=1}^{n} m_i 2^{-i}
  166. = 2 - \sum_{i=1}^{n} m_i 2^{-i + 1} = (0.\widetilde{m}_{1}\ldots\widetilde{m}_{r+1})_2
  167. .\] Da $m_{r+1} = 1_{2} \implies \widetilde{m}_{r+1} = 0_{2}$. Also
  168. hat $x_1$ höchstens $r$ Stellen ungleich $0$. Wende I.V. auf $x_1$ an. Damit folgt
  169. $x_{r+1} = 0$.
  170. \end{proof}
  171. \item siehe \textit{zeltabbildung.cpp}
  172. \end{enumerate}
  173. \end{aufgabe}
  174. \end{document}