SlideShare una empresa de Scribd logo
1 de 10
METODI NUMERICI PER LA
DERIVAZIONE DI FUNZIONI
Prerequisiti
• Conoscere la definizione di derivata e il suo
significato geometrico
• Saper calcolare derivate anche di funzioni
composte
Vai al test
Zanichelli Test
È data una funzione derivabile nel punto x o.
La derivata è definita come limite del
rapporto incrementale per h→0
Consideriamo il rapporto incrementale
come approssimazione della derivata
f ' ( xo ) ≅

f ( xo + h ) − f ( xo )
h
Il limite del rapporto incrementale
e le possibili “approssimazioni”
Considerare il rapporto incrementale come
approssimazione della derivata comporta
un errore che dipende da xo e da h
f ( xo + h ) − f ( xo )
f ( xo + h ) − f ( xo )
f ' ( xo ) ≅
⇒ f ' ( xo ) =
+ ε ( xo + h )
h
h

Posso ridurre l’errore ad un valore
accettabile scegliendo opportunamente h.
Non posso eliminare l’errore, perché opero
comunque con un numero finito di decimali
Usando il teorema di Taylor si può
dimostrare che se f’’(xo)≠0, posto:
f ( xo + h ) − f ( xo )
D1 =
h

h

f  xo +  − f ( xo )
10 
D2 = 
h
10

Calcolata con
passo h

Calcolata riducendo
10 volte
il passo h

l’errore massimo (su D2) è
ε max =

D1 − D 2
9
Considerare invece il rapporto incrementale
destro/sinistro comporta un errore minore
f ( xo + h ) − f ( xo − h )
f ' ( xo ) ≅
2h
⇓
f ' ( xo ) =

f ( xo + h ) − f ( xo − h )
+ ε * ( xo + h )
2h
Usando il teorema di Taylor si può
dimostrare che se f’’’(xo)≠0, posto:
f ( xo + h ) − f ( xo − h )
D1 =
2h

h
h


f  xo +  − f  xo − 
10 
10 

D2 = 
h
2
10

Calcolata con
passo h

Calcolata riducendo
10 volte
il passo h

l’errore massimo (su D2) è
ε * max =

D1 − D 2
99
ESERCIZIO CON MATLAB
• Data la funzione y=esenx, disegnarla in
[0,2π].
• Disegnare la funzione derivata in [0,2π].
• Calcolare la derivata in x= 1,20.
• Calcolare l’errore commesso con passo di
derivazione 1/1000.
Derivata.ppt

Más contenido relacionado

Destacado

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
Kurio // The Social Media Age(ncy)
 

Destacado (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
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
 

Derivata.ppt

  • 1. METODI NUMERICI PER LA DERIVAZIONE DI FUNZIONI
  • 2. Prerequisiti • Conoscere la definizione di derivata e il suo significato geometrico • Saper calcolare derivate anche di funzioni composte Vai al test Zanichelli Test
  • 3. È data una funzione derivabile nel punto x o. La derivata è definita come limite del rapporto incrementale per h→0 Consideriamo il rapporto incrementale come approssimazione della derivata f ' ( xo ) ≅ f ( xo + h ) − f ( xo ) h
  • 4. Il limite del rapporto incrementale e le possibili “approssimazioni”
  • 5. Considerare il rapporto incrementale come approssimazione della derivata comporta un errore che dipende da xo e da h f ( xo + h ) − f ( xo ) f ( xo + h ) − f ( xo ) f ' ( xo ) ≅ ⇒ f ' ( xo ) = + ε ( xo + h ) h h Posso ridurre l’errore ad un valore accettabile scegliendo opportunamente h. Non posso eliminare l’errore, perché opero comunque con un numero finito di decimali
  • 6. Usando il teorema di Taylor si può dimostrare che se f’’(xo)≠0, posto: f ( xo + h ) − f ( xo ) D1 = h h  f  xo +  − f ( xo ) 10  D2 =  h 10 Calcolata con passo h Calcolata riducendo 10 volte il passo h l’errore massimo (su D2) è ε max = D1 − D 2 9
  • 7. Considerare invece il rapporto incrementale destro/sinistro comporta un errore minore f ( xo + h ) − f ( xo − h ) f ' ( xo ) ≅ 2h ⇓ f ' ( xo ) = f ( xo + h ) − f ( xo − h ) + ε * ( xo + h ) 2h
  • 8. Usando il teorema di Taylor si può dimostrare che se f’’’(xo)≠0, posto: f ( xo + h ) − f ( xo − h ) D1 = 2h h h   f  xo +  − f  xo −  10  10   D2 =  h 2 10 Calcolata con passo h Calcolata riducendo 10 volte il passo h l’errore massimo (su D2) è ε * max = D1 − D 2 99
  • 9. ESERCIZIO CON MATLAB • Data la funzione y=esenx, disegnarla in [0,2π]. • Disegnare la funzione derivata in [0,2π]. • Calcolare la derivata in x= 1,20. • Calcolare l’errore commesso con passo di derivazione 1/1000.