Hauptsatz der Differential- und Integralrechnung: Unterschied zwischen den Versionen

Aus FLBK-Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 40: Zeile 40:
</head>
</head>
<body>
<body>
     <div id="binomBoard" style="width: 90vw; max-width: 400px; height: 60vw; max-height: 300px; margin-top:20px;"></div>
     <div id="box2" style="width: 90vw; max-width: 400px; height: 60vw; max-height: 300px; margin-top:20px;"></div>
     <script type="text/javascript">
     <script type="text/javascript">
        var brd = JXG.JSXGraph.initBoard('binomBoard', {
        JXG.Options.text.useMathJax = true;     
        axis: true,
        // JSXGraph-Board erstellen
        boundingbox: [-6.5, 0.2, 50, -0.05],
        var board = JXG.JSXGraph.initBoard('box2', {
        showCopyright: false,
            boundingbox: [-5, 5, 10, -5], // Angepasste Boundingbox für die Skalierung
        showNavigation: false,
            axis: true,
        defaultAxes: {
            showCopyright: false,
            x: {
            showNavigation: true,
                withLabel: true,
            grid: true, // Gitternetz aktivieren
                name: 'k',
            defaultAxes: {
                label: {
                x: {
                    position: 'rt',
                    withLabel: true,
                    offset: [5, 15],
                    name: '\\[t\\]',
                     fontSize: 12
                    label: {
                }
                        position: 'rt',
            },
                        offset: [-5, 20],
            y: {
                        fontSize: 14,
                withLabel: true,
                        anchorX: 'right'
                name: 'P(X = k)',
                    },
                label: {
                     ticks: {
                    position: 'rt',
                        ticksDistance: 1,
                    offset: [-45, -5],
                        minorTicks: 0
                     fontSize: 12
                    }
                },
                y: {
                    withLabel: true,
                    name: '\\[f(t)\\]',
                    label: {
                        position: 'rt',
                        offset: [5, 20],
                        fontSize: 14,
                        anchorY: 'right'
                     },
                    ticks: {
                        ticksDistance: 1,
                        minorTicks: 0
                    }
                 }
                 }
             }
             }
         }
         });
    });
 
    // --- Slider ---
    // n-Slider
    var nSlider = brd.create('slider', [[5, 0.185], [40, 0.185], [50, 150, 200]], {
        name: 'n',
        snapWidth: 1,
        fillColor: 'white',
        strokeColor: '#3498db',
        highlightStrokeColor: '#3498db',
        baseline: {strokeColor: '#3498db', strokeWidth: 2},
        highline: {strokeColor: '#2980b9', strokeWidth: 3}
    });
 
    // p-Slider
    var pSlider = brd.create('slider', [[5, 0.175], [40, 0.175], [0, 0.1, 0.2]], {
        name: 'p',
        snapWidth: 0.01,
        fillColor: 'white',
        strokeColor: '#e74c3c',
        highlightStrokeColor: '#e74c3c',
        baseline: {strokeColor: '#e74c3c', strokeWidth: 2},
        highline: {strokeColor: '#c0392b', strokeWidth: 3}
    });
 
    // k-Slider (neu)
    var kSlider = brd.create('slider', [[5, 0.165], [40, 0.165], [0, 10, 50]], {
        name: 'k',
        snapWidth: 1,
        fillColor: 'white',
        strokeColor: '#2ecc71',
        highlightStrokeColor: '#2ecc71',
        baseline: {strokeColor: '#2ecc71', strokeWidth: 2},
        highline: {strokeColor: '#27ae60', strokeWidth: 3}
    });
 
    // --- Hilfsfunktionen ---
    function binomProb(n, k, p) {
        var x, p1 = 1,
        p2 = 1,
        coeff = 1;
        for (x = n - k + 1; x < n + 1; x++) {
            coeff *= x;
        }
        for (x = 1; x < k + 1; x++) {
            coeff /= x;
        }
        for (x = 0; x < k; x++) {
            p1 *= p;
        }
        for (x = 0; x < n - k; x++) {
            p2 *= (1 - p);
        }
        return coeff * p1 * p2;
    }
 
    // Berechne Erwartungswert und Standardabweichung
    function getMu() {
        var n = Math.round(nSlider.Value());
        var p = pSlider.Value();
        return n * p;
    }
 
    function getSigma() {
        var n = Math.round(nSlider.Value());
        var p = pSlider.Value();
        return Math.sqrt(n * p * (1 - p));
    }
 
    // --- Balken vorbereiten ---
    var maxBars = 200;
    var bars = [];
    for (let k = 0; k <= maxBars; k++) {
        let heightF = function() {
            var n = Math.round(nSlider.Value());
            var p = pSlider.Value();
            if (k > n || k > 75) return 0;
            return binomProb(n, k, p);
        };


         // Alle Balken in orange
         // Funktion erstellen
         let colorF = function() {
         var c1 = board.create('functiongraph', [function(t) {
             return '#ffaa44';
             return (Math.pow(t, 5) / 24 - Math.pow(t, 3) / 2 + t);
         };
         }]);


         var poly = brd.create('polygon', [
        // Integral erstellen
             [k - 0.5, 0],
         var i1 = board.create('integral', [
            [k - 0.5, heightF],
             [-2.0, 2.0], c1
            [k + 0.5, heightF],
            [k + 0.5, 0]
         ], {
         ], {
             withLines: true,
             withLabel: true,
             borders: {strokeWidth: 1, strokeColor: '#cc8800'},
             label: {
            fillOpacity: 0.7,
                fontSize: 14,
             fillColor: colorF,
                offset: [0, 50],
             vertices: {visible: false},
                digits: 4,
             visible: function() {
                intl: {
                 return k <= Math.round(nSlider.Value()) && k <= 75;
                    enabled: false,
                    options: {}
                }
             },
             baseLeft: {   // Start point
                visible: true,
                fixed: false,
                withLabel: true,
                name: 'a'
            },
             baseRight: {    // End point
                visible: true,
                fixed: false,
                withLabel: true,
                 name: 'b'
             }
             }
         });
         });


         bars.push(poly);
         // Integral-Label anpassen
    }
        i1.label.setText(() => {
            const a = i1.baseLeft.X().toFixed(2); // Untere Grenze
            const b = i1.baseRight.X().toFixed(2); // Obere Grenze
            const value = i1.Value().toFixed(4); // Wert des Integrals
            return `\\[\\int_{${a}}^{${b}} f(t) \\, dt = ${value}\\]`;
        });


    // --- Sigmaregeln Visualisierung ---
        // Beschriftung der Funktion mit f
    // Vertikale Linien für μ, μ±σ, μ±2σ, μ±3σ (nur unterhalb der x-Achse)
         board.create('text', [3.5, 3, '\\[f\\]'], {
    var muLine = brd.create('segment', [
            fontSize: 14,
        function() { return [getMu(), 0]; },
            fixed: true,
        function() { return [getMu(), -0.005]; }
            anchorX: 'left',
    ], {
            anchorY: 'bottom',
         strokeColor: '#0000ff',
            color: 'blue'
        strokeWidth: 2,
         });
        dash: 1
    });
 
    var muPlusSigmaLine = brd.create('segment', [
        function() { return [getMu() + getSigma(), 0]; },
        function() { return [getMu() + getSigma(), -0.015]; }
    ], {
        strokeColor: '#007700',
        strokeWidth: 2,
        dash: 1
    });
 
    var muMinusSigmaLine = brd.create('segment', [
        function() { return [getMu() - getSigma(), 0]; },
        function() { return [getMu() - getSigma(), -0.015]; }
    ], {
        strokeColor: '#007700',
        strokeWidth: 2,
        dash: 1
    });
 
    var muPlus2SigmaLine = brd.create('segment', [
        function() { return [getMu() + 2 * getSigma(), 0]; },
        function() { return [getMu() + 2 * getSigma(), -0.025]; }
    ], {
        strokeColor: '#aa5500',
        strokeWidth: 2,
        dash: 1
    });
 
    var muMinus2SigmaLine = brd.create('segment', [
        function() { return [getMu() - 2 * getSigma(), 0]; },
        function() { return [getMu() - 2 * getSigma(), -0.025]; }
    ], {
        strokeColor: '#aa5500',
        strokeWidth: 2,
        dash: 1
    });
 
    var muPlus3SigmaLine = brd.create('segment', [
        function() { return [getMu() + 3 * getSigma(), 0]; },
        function() { return [getMu() + 3 * getSigma(), -0.035]; }
    ], {
        strokeColor: '#aa0000',
        strokeWidth: 2,
        dash: 1
    });
 
    var muMinus3SigmaLine = brd.create('segment', [
        function() { return [getMu() - 3 * getSigma(), 0]; },
        function() { return [getMu() - 3 * getSigma(), -0.035]; }
    ], {
        strokeColor: '#aa0000',
        strokeWidth: 2,
        dash: 1
    });
 
    // Beschriftungen für die Sigmaregeln (nach unten versetzt)
    brd.create('text', [function() { return getMu(); }, -0.0075, 'μ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#0000ff'
    });
   
    brd.create('text', [function() { return getMu() + getSigma(); }, -0.0175, 'μ+σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#007700'
    });
   
    brd.create('text', [function() { return getMu() - getSigma(); }, -0.0175, 'μ-σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#007700'
    });
   
    brd.create('text', [function() { return getMu() + 2 * getSigma(); }, -0.0275, 'μ+2σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#aa5500'
    });
   
    brd.create('text', [function() { return getMu() - 2 * getSigma(); }, -0.0275, 'μ-2σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#aa5500'
    });
   
    brd.create('text', [function() { return getMu() + 3 * getSigma(); }, -0.0375, 'μ+3σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#aa0000'
    });
   
    brd.create('text', [function() { return getMu() - 3 * getSigma(); }, -0.0375, 'μ-3σ'], {
        anchorX: 'middle',
        fontSize: 12,
        strokeColor: '#aa0000'
    });
 
    // Anzeige von P(X=k), μ und σ (oben rechts)
    brd.create('text', [30, 0.15, function() {
        var n = Math.round(nSlider.Value());
        var p = pSlider.Value();
        var k = Math.round(kSlider.Value());
        return 'P(X = ' + k + ') = ' + binomProb(n, k, p).toFixed(6);
    }], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true
    });
   
    brd.create('text', [30, 0.14, function() { return 'μ = n·p=' + getMu().toFixed(2); }], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true
    });
   
    brd.create('text', [30, 0.13, function() { return 'σ = √(n·p·(1-p))=' + getSigma().toFixed(2); }], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true
    });
 
brd.create('text', [30, 0.12, function() { return 'P(|X-' + getMu().toFixed(2) + '|\u2264' + getSigma().toFixed(2) + ') \u2248 0,683';}], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true,
        strokeColor: '#007700'
    });
 
brd.create('text', [30, 0.11, function() { return 'P(|X-' + getMu().toFixed(2) + '|\u2264 2·' + getSigma().toFixed(2) + ') \u2248 0,955';}], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true,
        strokeColor: '#aa5500'
    });
 
brd.create('text', [30, 0.1, function() { return 'P(|X-' + getMu().toFixed(2) + '|\u2264 3·' + getSigma().toFixed(2) + ') \u2248 0,997';}], {
        anchorX: 'left',
        fontSize: 12,
        fixed: true,
         strokeColor: '#aa0000'
    });
     </script>
     </script>
</body>
</body>
</html>
</html>
<html><iframe width="280" height="157.5" src="https://www.youtube.com/embed/Lc_R0vBSKHw?si=V72WfOUjhQRQlrN9" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></html>


<html><iframe width="280" height="157,5" src="https://www.youtube.com/embed/MX_WQS5-vAg?si=N2TxoCi_PHsr1_1B" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></html>
<html><iframe width="280" height="157,5" src="https://www.youtube.com/embed/MX_WQS5-vAg?si=N2TxoCi_PHsr1_1B" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></html>

Aktuelle Version vom 31. August 2025, 11:57 Uhr

Mit Hilfe des Hauptsatzes der Differential- und Integralrechnung werden Flächeninhalte zwischen dem Graphen einer Funktion der x-Achse berechnet.

Flächeninhaltsfunktion und Stammfunktion

Der Flächeninhalt zwischen dem Graphen einer Funktion [math]\displaystyle{ f }[/math] und der x-Achse im Intervall [math]\displaystyle{ [0;x] }[/math] wird durch den Funktionswert einer Flächeninhaltsfunktion [math]\displaystyle{ A }[/math] ermittelt.

Es sei [math]\displaystyle{ F }[/math] die Stammfunktion zu einer ganzrationalen Funktion [math]\displaystyle{ f }[/math] mit der Konstanten [math]\displaystyle{ C=0 }[/math], dann ist [math]\displaystyle{ F }[/math] die Flächeninhaltsfunktion zu [math]\displaystyle{ f }[/math].

Bestimmtes Integral

Das bestimmte Integral einer stetigen Funktion [math]\displaystyle{ f }[/math] auf dem Intervall [math]\displaystyle{ [a; b] }[/math] ist durch

[math]\displaystyle{ \int_a^b f(x) \, dx }[/math]

gegeben.

Für auf den Intervallen [math]\displaystyle{ [a;b] \subseteq [a;c] }[/math] und [math]\displaystyle{ [b;c] \subseteq [a;c] }[/math] stetige Funktionen [math]\displaystyle{ f, ~g }[/math] gelten die folgenden Rechenregeln:

Faktorregel

[math]\displaystyle{ \int_a^b c \cdot f(x) \, dx=c \cdot \int_a^b f(x) \, dx }[/math]

Summenregel

[math]\displaystyle{ \int_a^b (f(x)+g(x)) \, dx = \int_a^b f(x) \, dx + \int_a^bg(x) \, dx }[/math]

Intervalladditivität

[math]\displaystyle{ \int_a^c f(x) \, dx=\int_a^b f(x) \, dx+\int_b^c f(x) \, dx }[/math]

Vertauschen der Integrationsgrenzen

[math]\displaystyle{ \int_a^b f(x) \, dx=-\int_b^a f(x) \, dx }[/math]

Definition

Falls [math]\displaystyle{ F }[/math] eine Stammfunktion von [math]\displaystyle{ f }[/math] ist, so wird das bestimmte Integral von [math]\displaystyle{ f }[/math] auf dem Intervall [math]\displaystyle{ [a;b] }[/math] durch die Gleichung

[math]\displaystyle{ \int_a^b f(x) \, dx = F(b) - F(a) }[/math]

berechnet.

Hierbei bezeichnet [math]\displaystyle{ a }[/math] die untere und [math]\displaystyle{ b }[/math] die obere Grenze des Integrals. Das bestimmte Integral gibt den orientierten Flächeninhalt an, das heißt:

  • Liegt der Graph von [math]\displaystyle{ f }[/math] oberhalb der x-Achse, ist das bestimmte Integral positiv.
  • Liegt der Graph von [math]\displaystyle{ f }[/math] unterhalb der x-Achse, ist das bestimmte Integral negativ.
  • Liegt der Graph von [math]\displaystyle{ f }[/math] sowohl unterhalb als auch oberhalb der x-Achse, ist das bestimmte Integral die Differenz aus dem oberen Flächeninhalt und dem unteren Flächeninhalt.

Integralfunktion

Es sei [math]\displaystyle{ f }[/math] eine auf dem Intervall [math]\displaystyle{ [a;b] }[/math] stetige Funktion, dann ist

[math]\displaystyle{ I_a(x)=\int_a^x f(t) \, dt }[/math]

die dazugehörige Integralfunktion.

Flächen zwischen Funktionsgraphen ermitteln

Es seien [math]\displaystyle{ f, ~g }[/math] auf dem Intervall [math]\displaystyle{ [a;b] }[/math] stetige Funktionen. Die Fläche zwischen den Graphen von [math]\displaystyle{ f, ~g }[/math] wird wie folgt ermittelt:

  1. Schnittstellen [math]\displaystyle{ x_{S_1},\dots,x_{S_n} }[/math] mit [math]\displaystyle{ n \in \mathbb{N} }[/math] der Graphen von [math]\displaystyle{ f, ~g }[/math] ermitteln.
  2. Stammfunktionen [math]\displaystyle{ F,~G }[/math] ermitteln
  3. [math]\displaystyle{ A=|\int_{x_{S_1}}^{x_{S_2}}(f(x)-g(x)) \, dx|+|\int_{x_{S_2}}^{x_{S_3}}(f(x)-g(x)) \, dx|+\dots+|\int_{x_{S_{n-1}}}^{x_{S_n}}(f(x)-g(x)) \, dx| }[/math] berechnen. (siehe Betragsfunktion)

Beispiele

Flächeninhalt ermitteln

Das bestimmte Integral der Funktion [math]\displaystyle{ f(x)=x^2 }[/math] auf dem Intervall [math]\displaystyle{ [1;2] }[/math] berechnet sich durch [math]\displaystyle{ \int_1^2 x^2 \, dx=\frac{7}{3} }[/math].

Wir berechnen das bestimmte Integral von [math]\displaystyle{ f(x) = x^2 }[/math] auf dem Intervall [math]\displaystyle{ [1;2] }[/math]. Eine Stammfunktion von [math]\displaystyle{ f }[/math] ist [math]\displaystyle{ F(x) = \frac{x^3}{3} }[/math]. Das bestimmte Integral auf dem Intervall [1;2] wird durch

[math]\displaystyle{ \int_1^2 x^2 \, dx = F(2) - F(1) }[/math]
[math]\displaystyle{ = \frac{2^3}{3} - \frac{1^3}{3} = \frac{8}{3} - \frac{1}{3} = \frac{7}{3} }[/math]

berechnet. Der Graph von [math]\displaystyle{ f }[/math] verläuft auf dem Intervall [math]\displaystyle{ [1;2] }[/math] oberhalb der x-Achse. Der Flächeninhalt beträgt somit [math]\displaystyle{ \frac{7}{3} }[/math] Einheiten und ist im rechten Bild grün eingezeichnet.

Wir berechnen den Flächeninhalt zwischen dem Graphen von \(f(t)=\frac{t^5}{24}-\frac{t^3}{2}+t\) und der x-Achse auf dem Intervall [math]\displaystyle{ [-2;2] }[/math] (siehe Graph von [math]\displaystyle{ f }[/math]).

1. Nullstellen von [math]\displaystyle{ f }[/math] berechnen

[math]\displaystyle{ \frac{t^5}{24}-\frac{t^3}{2}+t=0 }[/math]
[math]\displaystyle{ t \approx -3,08 \lor t \approx -1,59 \lor t \approx 0 \lor t \approx 1,59 \lor t \approx 3,08 }[/math]
[math]\displaystyle{ -1,59; 0; 1,59 \in [-2;2] }[/math]

2. Flächeninhalt ermitteln

[math]\displaystyle{ A=|\int_{-2}^{-1,59} f(t) \, dt|+|\int_{-1,59}^{0} f(t) \, dt|+|\int_{0}^{1,59} f(t) \, dt|+|\int_{1,59}^{2} f(t) \, dt| }[/math]
[math]\displaystyle{ \approx |0,13|+|-0,58|+|0,58|+|-0,13| = 0,13+0,58+0,58+0,13= 1,42 }[/math]

Der gesuchte Flächeninhalt beträgt [math]\displaystyle{ A=1,42 }[/math]. Der orientierte Flächeninhalt auf dem Intervall [math]\displaystyle{ [-2;2] }[/math] beträgt [math]\displaystyle{ \int_{-2}^{2} f(t) \, dt=0 }[/math].

Orientierten Flächeninhalt ermitteln

Das bestimmte Integral der Funktion [math]\displaystyle{ f(x)=x }[/math] auf dem Intervall [math]\displaystyle{ [-1;1] }[/math] berechnet sich durch [math]\displaystyle{ \int_{-1}^1 x \, dx= }[/math][math]\displaystyle{ \frac{1}{2} }[/math][math]\displaystyle{ - }[/math][math]\displaystyle{ \frac{1}{2} }[/math][math]\displaystyle{ =0 }[/math].

Wir betrachten [math]\displaystyle{ f(x) = x }[/math] auf dem Intervall [math]\displaystyle{ [-1;1] }[/math]. Eine Stammfunktion von [math]\displaystyle{ f }[/math] ist [math]\displaystyle{ F(x) = \frac{x^2}{2} }[/math]. Das bestimmte Integral ist:

[math]\displaystyle{ \int_{-1}^1 x \, dx = F(1) - F(-1) }[/math]
[math]\displaystyle{ = \frac{1^2}{2} - \frac{(-1)^2}{2} = \frac{1}{2} - \frac{1}{2} = 0 }[/math].

Der orientierte Flächeninhalt beträgt [math]\displaystyle{ 0 }[/math], da sich die positiven und negativen Flächeninhalte genau ausgleichen.

Integralfunktion ermitteln

Gegeben sei [math]\displaystyle{ f(x) = 3x }[/math] und [math]\displaystyle{ a = 0 }[/math]. Die Integralfunktion ist:

[math]\displaystyle{ I_0(x) = \int_0^x 3t \, dt }[/math].

Eine Stammfunktion von [math]\displaystyle{ 3t }[/math] ist [math]\displaystyle{ \frac{3t^2}{2} }[/math], also gilt

[math]\displaystyle{ I_0(x) = \frac{3x^2}{2} - \frac{3 \cdot 0^2}{2} = \frac{3x^2}{2} }[/math].

Flächeninhalt zwischen den Graphen von zwei Funktionen ermitteln

Fläche zwischen den Graphen von zwei Funktionen ermitteln

Wir betrachten die Funktionen [math]\displaystyle{ f(x)=x^2+1 }[/math] und [math]\displaystyle{ g(x)=-x^2+3 }[/math] und ermitteln die Fläche zwischen den Graphen der Funktionen.

1. Schnittstellen von [math]\displaystyle{ g,~f }[/math] ermitteln

[math]\displaystyle{ f(x)=g(x) }[/math]
[math]\displaystyle{ x^2+1=-x^2+3 }[/math]
[math]\displaystyle{ 2 \cdot x^2=2 }[/math]
[math]\displaystyle{ x^2=1 }[/math]
[math]\displaystyle{ x=\pm \sqrt{1} }[/math]
[math]\displaystyle{ x=\pm 1 }[/math]

2. Stammfunktionen ermitteln

[math]\displaystyle{ F(x)=\frac{1}{3}x^3+x }[/math]
[math]\displaystyle{ G(x)=-\frac{1}{3}x^3+3x }[/math]

3. Flächeninhalt ermitteln

[math]\displaystyle{ \int_{-1}^{1}(f(x)-g(x)) \, dx=F(1)-G(1)-(F(-1)-G(-1)) }[/math]
[math]\displaystyle{ =\frac{1}{3} \cdot 1^3+1-(-\frac{1}{3}\cdot 1^3+3 \cdot 1) }[/math]
[math]\displaystyle{ -(\frac{1}{3} \cdot (-1)^3+(-1)-(-\frac{1}{3}\cdot (-1)^3+3 \cdot (-1))) }[/math]
[math]\displaystyle{ =-\frac{8}{3} }[/math] (orientierter Flächeninhalt)

Der gesuchte Flächeninhalt ist der Betrag der Zahl und beträgt [math]\displaystyle{ \frac{8}{3} }[/math].