mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Aufgabe 5 bearbeitet
This commit is contained in:
parent
0e9889a2ba
commit
95db21f3db
3 changed files with 104 additions and 2 deletions
|
@ -1 +1,69 @@
|
|||
\section*{Aufgabe 4}
|
||||
\textbf{Aufgabe}:
|
||||
|
||||
\[I(f) = \int_a^b f(x) \mathrm{d}x \]
|
||||
|
||||
\begin{enumerate}
|
||||
\item Integrand am linken und am rechten Rand interpolieren
|
||||
\item Interpolationspolynom mit Quadraturformel integrieren
|
||||
\end{enumerate}
|
||||
|
||||
\textbf{Lösung}:
|
||||
|
||||
Stützstellen:
|
||||
|
||||
\[(a, f(a)) \text{ und } (b, f(b))\]
|
||||
|
||||
$\Rightarrow$ Polynom 1. Grades interpoliert diese \\
|
||||
$\Rightarrow$ Gerade $y = m \cdot x +t$ interpoliert
|
||||
|
||||
\begin{align}
|
||||
f(a) &= a \cdot m + t\\
|
||||
f(b) &= b \cdot m + t\\
|
||||
\Leftrightarrow
|
||||
t &= f(a) - ma\\
|
||||
t &= f(b) - mb\\
|
||||
\Rightarrow
|
||||
f(a) - ma &= f(b) - mb\\
|
||||
\Leftrightarrow f(a) - f(b) &= ma - mb\\
|
||||
\stackrel{a \neq b}{\Leftrightarrow} m &= \frac{f(a) - f(b)}{a - b}\\
|
||||
\Rightarrow t &= f(a) - \frac{f(a) - f(b)}{a - b} \cdot a\\
|
||||
\Leftrightarrow t &= \frac{f(a) \cdot a - f(a) \cdot b - f(a) \cdot a - f(b) \cdot a}{a-b}\\
|
||||
\Leftrightarrow t &= \frac{- f(a) \cdot b - f(b) \cdot a}{a-b}\\
|
||||
\Leftrightarrow t &= \frac{f(a) \cdot b + f(b) \cdot a}{b-a}
|
||||
\end{align}
|
||||
|
||||
Das Interpolationspolynom $p(x)$ lautet also
|
||||
|
||||
\[ p(x) = \frac{f(a) - f(b)}{a - b} \cdot x + \frac{f(a) \cdot b + f(b) \cdot a}{b-a}\]
|
||||
|
||||
Für Polynome ersten Grades benötigt man eine Quadraturformel vom Grad 2 (also NICHT die Rechteckregel).
|
||||
|
||||
\paragraph{Lösung 1: Mittelpunktsregel}
|
||||
Die Mittelpunktsregel lautet
|
||||
\[\int_a^b f(x) dx \approx (b-a) f(a + \frac{1}{2}(b-a))\]
|
||||
|
||||
Damit ergibt sich
|
||||
|
||||
\[I(f) \approx (b-a) \underbrace{(\frac{f(a) - f(b)}{a - b} \cdot (a + \frac{1}{2}(b-a)) + \frac{f(a) \cdot b + f(b) \cdot a}{b-a})}_{p(a + \frac{1}{2}(b-a))}\]
|
||||
|
||||
\paragraph{Lösung 2: Trapezregel}
|
||||
Die Trapezregel lautet
|
||||
\[\int_a^b f(x) dx \approx (b-a) \left (\frac{1}{2}f(a) + \frac{1}{2} f(b) \right )\]
|
||||
|
||||
TODO: Mache das, wer will.
|
||||
|
||||
\subsection*{Teilaufgabe b)}
|
||||
Sei nun $f(x) = x^2$ und $a = 0$ sowie $b = 4$. Man soll die ermittelte
|
||||
Formel zwei mal auf äquidistanten Intervallen anwenden.
|
||||
|
||||
\textbf{Lösung:}
|
||||
|
||||
\begin{align}
|
||||
\int_a^b f(x)\mathrm{d}x &=\int_a^{\frac{b-a}{2}} f(x) \mathrm{d}x + \int_{\frac{b-a}{2}}^b f(x) \mathrm{d}x\\
|
||||
\int_0^4 x^2 \mathrm{d}x &=\int_0^2 x^2 \mathrm{d}x + \int_2^4 x^2 \mathrm{d}x\\
|
||||
\int_0^2 x^2 \mathrm{d}x &\approx (2-0) (\frac{f(0) - f(2)}{0 - 2} \cdot (0 + \frac{1}{2}(2-0)) + \frac{f(0) \cdot 2 + f(2) \cdot 0}{2-0})\\
|
||||
&= 2 \cdot \frac{-4}{-2} = 2\\
|
||||
\int_2^4 x^2 \mathrm{d}x &\approx (4-2) (\frac{f(2) - f(4)}{2 - 4} \cdot (2 + \frac{1}{2}(4-2)) + \frac{f(2) \cdot 4 + f(4) \cdot 2}{4-2})\\
|
||||
&= \text{TODO}
|
||||
\end{align}
|
||||
|
|
|
@ -1,7 +1,41 @@
|
|||
\section*{Aufgabe 5}
|
||||
\subsection*{Teilaufgabe a}
|
||||
Die Ordnung $n$ einer Quadraturformel gibt an, dass diese Polynome
|
||||
bis zum Grad $\leq n - 1$ exakt löst.
|
||||
Eine Quadraturformel $(b_i, c_i)_{i=1, \dots, s}$ hat die Ordnung
|
||||
$p$, falls sie exakte Lösungen für alle Polynome vom Grad $\leq p -1$
|
||||
liefert.
|
||||
|
||||
\subsection*{Teilaufgabe b}
|
||||
\[\sum_{i=1}^s b_i c_i^{q-1} = \frac{1}{q} \text{ für } q = 1, \dots, p\]
|
||||
|
||||
\subsection*{Teilaufgabe c}
|
||||
\paragraph{Aufgabe} Bestimmen Sie zu den Knoten $c_1 = 0$ und $c_2 = \frac{2}{3}$ Gewichte, um eine Quadraturformel
|
||||
maximaler Ordnung zu erhalten. Wie hoch ist die Ordnung?
|
||||
|
||||
\paragraph{Lösung}
|
||||
Die möglichen Quadraturformeln lauten:
|
||||
\begin{align}
|
||||
Q(f) &= (b-a)\sum_{i=1}^2 b_i f (a+ c_i (b-a))\\
|
||||
&= (b-a) \cdot \left ( b_1 f(a) + b_2 f \left (a + \frac{2}{3}(b-a) \right ) \right )
|
||||
\end{align}
|
||||
|
||||
$\stackrel{\text{Satz 28}}{\Rightarrow}$ Wenn wir Ordnung $s = 2$ fordern, sind die Gewichte eindeutig bestimmt.
|
||||
Die Trapetzregel hat Ordnung 2 und $b_1 = b_2 = \frac{1}{2}$.
|
||||
|
||||
Nun gilt:
|
||||
|
||||
\[Q(f) = (b-a) \cdot \left (\frac{1}{2} f(a) + \frac{1}{2} f (a + \frac{2}{3} (b-a)) \right ) \]
|
||||
|
||||
Aber für $f(x) = x$ ist $\int_0^3 x \mathrm d x = \left [x^2 \right ]_0^3 = 9 \neq 6 = 3 \cdot 2 = Q(f)$.
|
||||
|
||||
$\Rightarrow$ Es gibt keine Quadraturformel mit diesen Knoten und Ordnung 2.
|
||||
|
||||
Für Ordnung 1 müssen wir nur Konstanten korrekt interpolieren, also
|
||||
|
||||
\begin{align}
|
||||
\int_a^b c \mathrm d x &= \left [ cx \right ]_a^b\\
|
||||
&= (b-a) \cdot c\\
|
||||
&= (b-a) \cdot f(x) \text{ mit } x \text{ beliebig}
|
||||
\end{align}
|
||||
|
||||
Daher wählt man $b_1 = b_2 = \frac{1}{2}$. Dies ist eine Quadraturformel erster Ordnung.
|
||||
Da es keine Quadraturformel mit diesen Knoten von Ordnung 2 gibt, ist das die höchst mögliche Ordnung.
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue