SlideShare a Scribd company logo
1 of 20
Algorithmen der Computeralgebra
und Schulmathematik
Prof. Dr. Wolfram Koepf
Fachbereich Mathematik/Informatik
Universität Gh Kassel
koepf@mathematik.uni-kassel.de
http://www.mathematik.uni-kassel.de/~koepf
T3 - Tagung
Ludwig-Windthorst-Haus
Lingen (Ems)
19. Oktober 2001
Fachgruppe Computeralgebra
• Fachgruppe der DMV, GI, GAMM
• Regelmäßige Herausgabe des Rundbriefs
• Referent für Didaktik
• Regelmäßige Tagungen zum Thema
„Computeralgebra in Lehre, Ausbildung und
Weiterbildung“
• Informationen auf meiner Homepage
http://www.mathematik.uni-kassel.de/~koepf
• Homepage http://www.gwdg.de/~cais
Mein persönlicher Computeralgebra-
Werdegang
• 1988: Erster Kontakt mit Computeralgebra
(Reduce, Maple, Mathematica, DERIVE)
• 1990: Stipendium der Alexander von Hum-
boldt-Stiftung. Forschungsprojekt zur
Verwendung von Computeralgebrasystemen im
Mathematikunterricht
• 1992: Analysis-Vorlesungen an der Freien
Universität Berlin mit DERIVE
• 1993: Lehrbuch Mathematik mit DERIVE
• 1993-1997: Mitarbeiter am Konrad-Zuse-
Zentrum für Informationstechnik in Berlin
• 1994: Buch Höhere Analysis mit DERIVE
• 1996: Buch DERIVE für den Mathematik-
unterricht
• 1996-heute: Gewähltes Mitglied der
Leitung der Fachgruppe Computeralgebra
der DMV/GI/GAMM, Referent für Lehre
und Didaktik
• 1997-2000: Professor für Angewandte
Mathematik an der Hochschule für Technik,
Wirtschaft und Kultur Leipzig
• 1998: Buch Hypergeometric Summation
• seit 2000: Professor für Computational
Mathematics an der Universität Gh Kassel
• 2000: Buch Die reellen Zahlen als
Fundament und Baustein der Analysis
Kleiner Satz von Fermat
• Für eine Primzahl p   und a  gilt
ap = a (mod p)
• Fermattest: Ist diese Beziehung für eine
Zahl a  nicht erfüllt, so ist p keine
Primzahl!
Euklidischer Algorithmus
• Den größten gemeinsamen Teiler von a und
b berechnet man so:
• ggT(a,b) = ggT(|a|,|b|), falls a<0 oder b<0
• ggT(a,b) = ggT(b,a), falls a<b
• ggT(a,0) = a
• ggT(a,b) = ggT(b, a mod b)
Effiziente Berechnung von
Potenzen
• Die modulare Potenz an (mod p) berechnet
man am besten durch Zurückführen auf
Exponenten der Größe n/2 (Divide-and-
Conquer-Algorithmus):
• a0 mod p = 1
• an mod p = (an/2 mod p)2 mod p für gerade n
• an mod p = (an-1 mod p) . a mod p
Algebraische Zahlen
• Algebraische Zahlen sind als Nullstellen
ganzzahliger Polynome erklärt, z. B.
• 2: x2 - 2
• i: x2 + 1
• 2 + 3: x4 - 10 x2 + 1
• 2 + 3 + 5 :
x8 - 40 x6 + 352 x4 - 960 x2 + 576
Faktorisierung von Polynomen
• Polynome mit rationalen Koeffizienten können
algorithmisch faktorisiert werden!
• Dies funktioniert sogar, wenn mehrere Variablen
im Spiel sind.
• Algorithmische Faktorisierungen über  dagegen
sind nur unter Verwendung algebraischer Zahlen
möglich, z. B. x2-2 = (x-2)(x+2).
• Moderne schnelle Algorithmen gibt es nicht in
DERIVE, aber in Maple, Mathematica, ...
Wo ist der zweite Pol?
• Während graphische Taschenrechner und
Computeralgebrasysteme im Allgemeinen
auf Anhieb Funktionsgraphen darstellen,
gibt es auch Fälle, wo hierzu
Kurvenuntersuchungen nötig sind.
• Wo ist der zweite Pol der Funktion
)
99
100
)(
100
101
(
)
1
(
1000



x
x
x
Lineare Gleichungssysteme
• Lineare Gleichungssysteme sind schlecht
konditioniert, wenn die zugehörigen
Geraden bzw. Ebenen etc. fast parallel sind.
• Dann lassen sich offenbar die Schnittpunkte
bzw. Schnittgeraden etc. nur ungenau
bestimmen.
Kondition einer Matrix
• Eine Matrix ist schlecht konditioniert, wenn
sie oder ihre Inverse Eingabefehler stark
vergrößern.
• Für eine Matrixnorm, z. B.
ist die Konditionszahl
cond
ein Maß für die Kondition der Matrix A.
jk
jk a
a
A max
: 

  1
: 

 A
A
A
Hilbertmatrix
• Die n  n Hilbertmatrix
ist schlecht konditioniert. Daher ist die Numerik
instabil. Rationale Arithmetik lässt ein Studium
der Matrizen aber zu.



















1
2
1
1
1
1
1
1
1
1
3
1
2
1
1
2
1
..
:
:
:
..
..
1
n
n
n
k
j
n
n
Differentiation
• Ableiten ist algorithmisch, wenn wir die üblichen
Ableitungsregeln verwenden:
• Konstantenregel c´ = 0
• Potenzregel (xn)´ = n xn-1
• Linearität (f + g)´ = f ´ + g´
• Produktregel (f · g)´ = f ´·g + g´·f
• Quotientenregel (f / g)´ = (f ´·g - g´·f)/g2
• Kettenregel f(g)´ = f ´(g) · g´
• Ableitungen spezieller Funktionen
Integration
• Auch für die Integration gibt es Algorithmen,
welche entscheiden, ob ein Integral eine
elementare Funktion ist.
• Die übliche Methode zur rationalen Integration
benötigt eine reelle Faktorisierung des Nenners
und ist daher kein guter Algorithmus.
• Der Risch-Algorithmus und seine Verwandten
sind erheblich komplizierter, verwenden aber nur
quadratfreie Faktorisierungen.
Vereinfachung
• Rationale Funktionen lassen sich durch
Bestimmung des ggT vereinfachen.
• Trigonometrische Polynome lassen sich
durch Anwendung der Additionstheoreme
vereinfachen.
• Man kann zeigen, dass es für allgemeine
Terme keinen generellen
Vereinfachungsalgorithmus geben kann.
Das Hofstadterproblem
• Hofstadters geometrische Vermutung ist
richtig, wenn die Determinante der Matrix
gleich 0 ist, sofern  +  +  =
 ist.






















)
)
1
sin((
)
)
2
sin((
)
sin(
)
2
sin(
)
)
1
sin((
)
sin(
)
)
1
sin((
)
)
2
sin((
)
sin(
)
2
sin(
)
)
1
sin((
)
sin(
)
)
1
sin((
)
)
2
sin((
)
sin(
)
2
sin(
)
)
1
sin((
)
sin(


















r
r
r
r
r
r
r
r
r
r
r
r
Reihenentwicklungen
• In der speziellen Relativitätstheorie ergibt
sich die Energie aus der Formel
• Wie erhält man hieraus die klassische
Formel ?









1
)
(
2
2
1
1
2
c
v
mc
v
E
2
2
1
mv
E 

More Related Content

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Integral Rechnung

  • 1. Algorithmen der Computeralgebra und Schulmathematik Prof. Dr. Wolfram Koepf Fachbereich Mathematik/Informatik Universität Gh Kassel koepf@mathematik.uni-kassel.de http://www.mathematik.uni-kassel.de/~koepf
  • 3. Fachgruppe Computeralgebra • Fachgruppe der DMV, GI, GAMM • Regelmäßige Herausgabe des Rundbriefs • Referent für Didaktik • Regelmäßige Tagungen zum Thema „Computeralgebra in Lehre, Ausbildung und Weiterbildung“ • Informationen auf meiner Homepage http://www.mathematik.uni-kassel.de/~koepf • Homepage http://www.gwdg.de/~cais
  • 4. Mein persönlicher Computeralgebra- Werdegang • 1988: Erster Kontakt mit Computeralgebra (Reduce, Maple, Mathematica, DERIVE) • 1990: Stipendium der Alexander von Hum- boldt-Stiftung. Forschungsprojekt zur Verwendung von Computeralgebrasystemen im Mathematikunterricht • 1992: Analysis-Vorlesungen an der Freien Universität Berlin mit DERIVE • 1993: Lehrbuch Mathematik mit DERIVE
  • 5. • 1993-1997: Mitarbeiter am Konrad-Zuse- Zentrum für Informationstechnik in Berlin • 1994: Buch Höhere Analysis mit DERIVE • 1996: Buch DERIVE für den Mathematik- unterricht • 1996-heute: Gewähltes Mitglied der Leitung der Fachgruppe Computeralgebra der DMV/GI/GAMM, Referent für Lehre und Didaktik
  • 6. • 1997-2000: Professor für Angewandte Mathematik an der Hochschule für Technik, Wirtschaft und Kultur Leipzig • 1998: Buch Hypergeometric Summation • seit 2000: Professor für Computational Mathematics an der Universität Gh Kassel • 2000: Buch Die reellen Zahlen als Fundament und Baustein der Analysis
  • 7. Kleiner Satz von Fermat • Für eine Primzahl p   und a  gilt ap = a (mod p) • Fermattest: Ist diese Beziehung für eine Zahl a  nicht erfüllt, so ist p keine Primzahl!
  • 8. Euklidischer Algorithmus • Den größten gemeinsamen Teiler von a und b berechnet man so: • ggT(a,b) = ggT(|a|,|b|), falls a<0 oder b<0 • ggT(a,b) = ggT(b,a), falls a<b • ggT(a,0) = a • ggT(a,b) = ggT(b, a mod b)
  • 9. Effiziente Berechnung von Potenzen • Die modulare Potenz an (mod p) berechnet man am besten durch Zurückführen auf Exponenten der Größe n/2 (Divide-and- Conquer-Algorithmus): • a0 mod p = 1 • an mod p = (an/2 mod p)2 mod p für gerade n • an mod p = (an-1 mod p) . a mod p
  • 10. Algebraische Zahlen • Algebraische Zahlen sind als Nullstellen ganzzahliger Polynome erklärt, z. B. • 2: x2 - 2 • i: x2 + 1 • 2 + 3: x4 - 10 x2 + 1 • 2 + 3 + 5 : x8 - 40 x6 + 352 x4 - 960 x2 + 576
  • 11. Faktorisierung von Polynomen • Polynome mit rationalen Koeffizienten können algorithmisch faktorisiert werden! • Dies funktioniert sogar, wenn mehrere Variablen im Spiel sind. • Algorithmische Faktorisierungen über  dagegen sind nur unter Verwendung algebraischer Zahlen möglich, z. B. x2-2 = (x-2)(x+2). • Moderne schnelle Algorithmen gibt es nicht in DERIVE, aber in Maple, Mathematica, ...
  • 12. Wo ist der zweite Pol? • Während graphische Taschenrechner und Computeralgebrasysteme im Allgemeinen auf Anhieb Funktionsgraphen darstellen, gibt es auch Fälle, wo hierzu Kurvenuntersuchungen nötig sind. • Wo ist der zweite Pol der Funktion ) 99 100 )( 100 101 ( ) 1 ( 1000    x x x
  • 13. Lineare Gleichungssysteme • Lineare Gleichungssysteme sind schlecht konditioniert, wenn die zugehörigen Geraden bzw. Ebenen etc. fast parallel sind. • Dann lassen sich offenbar die Schnittpunkte bzw. Schnittgeraden etc. nur ungenau bestimmen.
  • 14. Kondition einer Matrix • Eine Matrix ist schlecht konditioniert, wenn sie oder ihre Inverse Eingabefehler stark vergrößern. • Für eine Matrixnorm, z. B. ist die Konditionszahl cond ein Maß für die Kondition der Matrix A. jk jk a a A max :     1 :    A A A
  • 15. Hilbertmatrix • Die n  n Hilbertmatrix ist schlecht konditioniert. Daher ist die Numerik instabil. Rationale Arithmetik lässt ein Studium der Matrizen aber zu.                    1 2 1 1 1 1 1 1 1 1 3 1 2 1 1 2 1 .. : : : .. .. 1 n n n k j n n
  • 16. Differentiation • Ableiten ist algorithmisch, wenn wir die üblichen Ableitungsregeln verwenden: • Konstantenregel c´ = 0 • Potenzregel (xn)´ = n xn-1 • Linearität (f + g)´ = f ´ + g´ • Produktregel (f · g)´ = f ´·g + g´·f • Quotientenregel (f / g)´ = (f ´·g - g´·f)/g2 • Kettenregel f(g)´ = f ´(g) · g´ • Ableitungen spezieller Funktionen
  • 17. Integration • Auch für die Integration gibt es Algorithmen, welche entscheiden, ob ein Integral eine elementare Funktion ist. • Die übliche Methode zur rationalen Integration benötigt eine reelle Faktorisierung des Nenners und ist daher kein guter Algorithmus. • Der Risch-Algorithmus und seine Verwandten sind erheblich komplizierter, verwenden aber nur quadratfreie Faktorisierungen.
  • 18. Vereinfachung • Rationale Funktionen lassen sich durch Bestimmung des ggT vereinfachen. • Trigonometrische Polynome lassen sich durch Anwendung der Additionstheoreme vereinfachen. • Man kann zeigen, dass es für allgemeine Terme keinen generellen Vereinfachungsalgorithmus geben kann.
  • 19. Das Hofstadterproblem • Hofstadters geometrische Vermutung ist richtig, wenn die Determinante der Matrix gleich 0 ist, sofern  +  +  =  ist.                       ) ) 1 sin(( ) ) 2 sin(( ) sin( ) 2 sin( ) ) 1 sin(( ) sin( ) ) 1 sin(( ) ) 2 sin(( ) sin( ) 2 sin( ) ) 1 sin(( ) sin( ) ) 1 sin(( ) ) 2 sin(( ) sin( ) 2 sin( ) ) 1 sin(( ) sin(                   r r r r r r r r r r r r
  • 20. Reihenentwicklungen • In der speziellen Relativitätstheorie ergibt sich die Energie aus der Formel • Wie erhält man hieraus die klassische Formel ?          1 ) ( 2 2 1 1 2 c v mc v E 2 2 1 mv E 