La derivata è la pendenza della retta tangente di una funzione ad un certo punto
x x x y y y x x x x + h x+h x + h y = f ( x ) y = f(x) y = f ( x ) ( x + h , f ( x + h ) ) (x+h,\, f(x+h)) ( x + h , f ( x + h )) f ( x + h ) − f ( x ) f(x+h) - f(x) f ( x + h ) − f ( x ) Chord Tangent at ( x , f ( x ) ) (x,\, f(x)) ( x , f ( x )) ( x , f ( x ) ) (x,\, f(x)) ( x , f ( x )) h h h O O O
d y d x = lim h → 0 f ( x + h ) − f ( x ) h \boxed{\frac{dy}{dx} = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}} d x d y = h → 0 lim h f ( x + h ) − f ( x )
Quello che vogliamo fare è trovare la pendenza della retta di due punti a, b dove a è il punto in cui vogliamo studiare la pendenza, e b è un punto molto vicino (la cui distanza con a tende a 0).
L'equazione per la pendenza è:
Δ y Δ x = f ( b ) − f ( a ) b − a \dfrac{\Delta y}{\Delta x} = \dfrac{f(b) - f(a)}{b - a} Δ x Δ y = b − a f ( b ) − f ( a )
I nostri due punti sono ( x 0 , f ( x 0 ) ) (x_0, f(x_0)) ( x 0 , f ( x 0 )) e ( x 0 + h , f ( x 0 + h ) ) (x_0+h, f(x_0+h)) ( x 0 + h , f ( x 0 + h )) dove h h h è un numero tendente a 0
Questo è esattamente uguale a trovare il limite tendente a 0 di
Δ y Δ x = f ( x 0 + h ) − f ( x 0 ) ( x 0 + h ) − x 0 = f ( x 0 + h ) − f ( x 0 ) h \dfrac{\Delta y}{\Delta x} = \dfrac{f(x_0 + h) - f(x_0)}{(x_0 + h) - x_0} = \dfrac{f(x_0 + h) - f(x_0)}{h} Δ x Δ y = ( x 0 + h ) − x 0 f ( x 0 + h ) − f ( x 0 ) = h f ( x 0 + h ) − f ( x 0 )
Quindi chiamiamo derivata la funzione:
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h f'(x) = \lim_{h \to 0}{\dfrac{f(x + h) - f(x)}{h}} f ′ ( x ) = h → 0 lim h f ( x + h ) − f ( x )
Possiamo trovare il valore della derivata ad un certo punto, oppure semplificare la funzione della derivata per poterla usare per qualsiasi punto della funzione originaria.
Nel primo caso sostituiamo x x x con il valore che vogliamo trovare, e poi risolviamo il limite per trovare il valore
Nel secondo caso, facciamo un esempio:
Troviamo la derivata di f ( x ) = x 2 f(x) = x^2 f ( x ) = x 2 , la funzione per la derivata sarà:
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 ( x + h ) 2 − x 2 h = lim h → 0 x 2 + 2 x h + h 2 − x 2 h = lim h → 0 2 x h + h 2 h = lim h → 0 2 x + h = 2 x \begin{aligned}
f'(x) &=
\lim_{h \to 0}{\dfrac{f(x + h) - f(x)}{h}} \\ &=
\lim_{h \to 0}{\dfrac{(x + h)^2 - x^2}{h}} \\ &=
\lim_{h \to 0}{\dfrac{\cancel{x^2} + 2xh + h^2 - \cancel{x^2}}{h}} \\ &=
\lim_{h \to 0}{\dfrac{2x\cancel{h} + h^{\cancel{2}}}{\cancel{h}}} \\ &=
\lim_{h \to 0}{2x+ h} \\ &=
2x
\end{aligned} f ′ ( x ) = h → 0 lim h f ( x + h ) − f ( x ) = h → 0 lim h ( x + h ) 2 − x 2 = h → 0 lim h x 2 + 2 x h + h 2 − x 2 = h → 0 lim h 2 x h + h 2 = h → 0 lim 2 x + h = 2 x
d d x x n = n x n − 1 \dfrac{d}{dx}x^n = n x^{n-1} d x d x n = n x n − 1
O in maniera più generale tramite f ( x ) f(x) f ( x ) :
d d x f ( x ) n = n f ( x ) n − 1 ⋅ f ′ ( x ) \frac{d}{dx}f(x)^n = n f(x)^{n -1} \cdot f'(x) d x d f ( x ) n = n f ( x ) n − 1 ⋅ f ′ ( x )
Esempio:
d d x x 4 = 4 x 3 \dfrac{d}{dx}x^4 = 4 x^{3} d x d x 4 = 4 x 3
A A A costante
d d x A f ( x ) = A d d x f ( x ) \dfrac{d}{dx} A f(x) = A \dfrac{d}{dx} f(x) d x d A f ( x ) = A d x d f ( x )
Esempio:
d d x 5 x 2 = 5 d d x x 2 = 5 ⋅ 2 x = 10 x \dfrac{d}{dx} 5x^2 = 5\dfrac{d}{dx} x^2 = 5 \cdot 2x = 10x d x d 5 x 2 = 5 d x d x 2 = 5 ⋅ 2 x = 10 x
d d x ( f ( x ) + g ( x ) ) = d d x f ( x ) + d d x g ( x ) \dfrac{d}{dx}\bigg( f(x) + g(x) \bigg) = \dfrac{d}{dx}f(x) + \dfrac{d}{dx}g(x) d x d ( f ( x ) + g ( x ) ) = d x d f ( x ) + d x d g ( x )
Esempio:
d d x 3 x 2 + 5 x + 3 = d d x 3 x 2 + d d x 5 x + d d x 3 = 6 x + 5 + 0 \dfrac{d}{dx}3x^2 + 5x + 3 = \dfrac{d}{dx} 3x^2 + \dfrac{d}{dx} 5x + \dfrac{d}{dx} 3
= 6x + 5 + 0 d x d 3 x 2 + 5 x + 3 = d x d 3 x 2 + d x d 5 x + d x d 3 = 6 x + 5 + 0
Se la nostra funzione è nella forma:
f ( x ) = h ( g ( x ) ) f(x) = h(g(x)) f ( x ) = h ( g ( x ))
Allora la sua derivata sarà:
f ′ ( x ) = g ′ ( x ) ⋅ h ′ ( g ( x ) ) f'(x) = g'(x) \cdot h'(g(x)) f ′ ( x ) = g ′ ( x ) ⋅ h ′ ( g ( x ))
Per esempio:
f ( x ) = ( x 2 + 5 x + 3 ) 5 h ( a ) = a 5 h ′ ( a ) = 5 a 4 g ( b ) = b 2 + 5 b + 3 g ′ ( b ) = 2 b + 5 f ′ ( x ) = g ′ ( x ) ⋅ h ′ ( g ( x ) ) = ( 2 x + 5 ) ⋅ 5 ( x 2 + 5 x + 3 ) 4 \begin{aligned}
f(x) &= (x^2 + 5x + 3)^5 \\
\\
h(a) &= a^5 \\
h'(a) &= 5a^4 \\
\\
g(b) &= b^2 + 5b + 3 \\
g'(b) &= 2b + 5 \\
\\
f'(x) &= g'(x) \cdot h'(g(x)) \\
&= (2x + 5) \cdot 5(x^2 + 5x + 3)^4
\end{aligned} f ( x ) h ( a ) h ′ ( a ) g ( b ) g ′ ( b ) f ′ ( x ) = ( x 2 + 5 x + 3 ) 5 = a 5 = 5 a 4 = b 2 + 5 b + 3 = 2 b + 5 = g ′ ( x ) ⋅ h ′ ( g ( x )) = ( 2 x + 5 ) ⋅ 5 ( x 2 + 5 x + 3 ) 4
Un altro esempio:
f ( x ) = 5 ( − x 8 + x − 8 ) 5 f ′ ( x ) = ( − 8 x 7 − 8 x − 9 ) ⋅ 25 ( − x 8 + x − 8 ) 4 \begin{align}
f(x) &= 5(-x^8+x^{-8})^5 \\ \\
f'(x) &= (-8x^7 -8x^{-9}) \cdot 25(-x^8 + x^{-8})^4
\end{align} f ( x ) f ′ ( x ) = 5 ( − x 8 + x − 8 ) 5 = ( − 8 x 7 − 8 x − 9 ) ⋅ 25 ( − x 8 + x − 8 ) 4
Se la nostra funzione è della forma:
f ( x ) = h ( x ) ⋅ g ( x ) f(x) = h(x) \cdot g(x) f ( x ) = h ( x ) ⋅ g ( x )
Allora la sua derivata sarà
f ′ ( x ) = h ′ ( x ) ⋅ g ( x ) + h ( x ) ⋅ g ′ ( x ) f'(x) = h'(x) \cdot g(x) + h(x) \cdot g'(x) f ′ ( x ) = h ′ ( x ) ⋅ g ( x ) + h ( x ) ⋅ g ′ ( x )
Per esempio:
f ( x ) = ( 5 x 5 − x 7 ) ( 20 x 2 + 3 x − 7 ) f ′ ( x ) = ( 25 x 4 − 7 x 6 ) ( 20 x 2 + 3 x − 7 ) + ( 5 x 5 − x 7 ) ( 40 x − 21 x − 8 ) \begin{align}
f(x) &= (5x^5 - x^7)(20x^2 + 3x^{-7}) \\ \\
f'(x) &= (25x^4 - 7x^6)(20x^2 + 3x^{-7}) + (5x^5 - x^7) (40x - 21x^{-8})
\end{align} f ( x ) f ′ ( x ) = ( 5 x 5 − x 7 ) ( 20 x 2 + 3 x − 7 ) = ( 25 x 4 − 7 x 6 ) ( 20 x 2 + 3 x − 7 ) + ( 5 x 5 − x 7 ) ( 40 x − 21 x − 8 )
d d x ( f ( x ) g ( x ) ) = g ( x ) f ′ ( x ) − f ( x ) g ′ ( x ) ( g ( x ) ) 2 \frac{d}{dx} \left( \frac{f(x)}{g(x)} \right) = \frac{g(x)f'(x) - f(x)g'(x)}{(g(x))^2} d x d ( g ( x ) f ( x ) ) = ( g ( x ) ) 2 g ( x ) f ′ ( x ) − f ( x ) g ′ ( x )
Oppure possiamo convertire la divisione in una moltiplicazione:
d d x ( f ( x ) g ( x ) ) = f ( x ) ⋅ g ( x ) − 1 \frac{d}{dx} \left( \frac{f(x)}{g(x)} \right) = f(x) \cdot g(x)^{-1} d x d ( g ( x ) f ( x ) ) = f ( x ) ⋅ g ( x ) − 1
Esempio:
d d x ( f ( x ) g ( x ) ) = d d x ( ( x 3 − 5 x 5 ) 3 ( 2 x + 5 ) 5 ) = d d x ( ( x 3 − 5 x 5 ) 3 ⋅ ( 2 x + 5 ) − 5 ) = ( ( 3 x 2 − 25 x 4 ) ⋅ 3 ( x 3 − 5 x 5 ) 2 ⋅ ( 2 x + 5 ) − 5 ) ⋅ ( ( x 3 − 5 x 5 ) 3 ⋅ 2 ⋅ − 5 ( 2 x + 5 ) − 5 ) \begin{align}
\frac{d}{dx} \left( \frac{f(x)}{g(x)} \right) &=
\frac{d}{dx} \left( \dfrac{(x^3-5x^5)^3}{(2x+5)^5} \right) \\ &=
\frac{d}{dx} \left( (x^3-5x^5)^3 \cdot (2x+5)^{-5} \right) \\ &=
((3x^2-25x^4) \cdot 3(x^3-5x^5)^2 \cdot (2x+5)^{-5}) \cdot ((x^3-5x^5)^3 \cdot 2 \cdot -5(2x+5)^{-5})
\end{align} d x d ( g ( x ) f ( x ) ) = d x d ( ( 2 x + 5 ) 5 ( x 3 − 5 x 5 ) 3 ) = d x d ( ( x 3 − 5 x 5 ) 3 ⋅ ( 2 x + 5 ) − 5 ) = (( 3 x 2 − 25 x 4 ) ⋅ 3 ( x 3 − 5 x 5 ) 2 ⋅ ( 2 x + 5 ) − 5 ) ⋅ (( x 3 − 5 x 5 ) 3 ⋅ 2 ⋅ − 5 ( 2 x + 5 ) − 5 )
Sia x 0 ∈ ( a , b ) x_0 \in (a,b) x 0 ∈ ( a , b ) un punto di estremo locale di f : [ a , b ] → R f: [a,b] \to \mathbb{R} f : [ a , b ] → R .
Se f f f è derivabile in x 0 x_0 x 0 , allora f ′ ( x ) = 0 f'(x) = 0 f ′ ( x ) = 0 .
L'implicazione al contrario non è valida, è necessaria ma non sufficiente, se la derivata di un punto è 0, allora il punto è un candidato per essere un estremo locale. Se calcoliamo la derivata e la poniamo a 0, troviamo anche l'equazione per i possibili punti di estremo locale. Essi vengono chiamati punti critici o stazionari.
Sia f ∈ C [ a , b ] f \in C[a, b] f ∈ C [ a , b ] una funzione continua tra a a a e b b b , derivabile in ( a , b ) (a,b) ( a , b ) .
Se f ( a ) = f ( b ) f(a) = f(b) f ( a ) = f ( b ) , allora esiste c ∈ ( a , b ) c \in (a,b) c ∈ ( a , b ) tale che f ′ ( c ) = 0 f'(c) = 0 f ′ ( c ) = 0
x x x f ( x ) f(x) f ( x ) a a a c 1 c_1 c 1 c 2 c_2 c 2 c 3 c_3 c 3 b b b f ( a ) = f ( b ) f(a)=f(b) f ( a ) = f ( b )
In pratica, se f ( a ) = f ( b ) f(a) = f(b) f ( a ) = f ( b ) vuol dire che la funzione sarà andata verso l'alto/basso e poi tornata al punto iniziale, oppure che è una retta. In entrambi i casi, c'è almeno un punto in cui c'è stato un cambio di direzione della funzione (oppure essendo una retta costante, la derivata è 0)
Sia f ∈ C [ a , b ] f \in C[a, b] f ∈ C [ a , b ] una funzione continua tra a a a e b b b , derivabile in ( a , b ) (a,b) ( a , b ) .
Allora esiste un punto c ∈ ( a , b ) c \in (a,b) c ∈ ( a , b ) tale che:
f ′ ( c ) ⏟ = pendenza della retta tangente t in ( c , f ( c ) ) = f ( b ) − f ( a ) b − a ⏟ = pendenza della retta secante s attraverso ( a , f ( a ) ) e ( b , f ( b ) ) \underbrace{f'(c)}_{\substack{=\textit{pendenza della retta} \\ \textit{tangente } t \textit{ in } (c,f(c))}}
\quad = \quad
\underbrace{\frac{f(b)-f(a)}{b-a}}_{\substack{=\textit{pendenza della retta} \\ \textit{secante } s \textit{ attraverso} \\ (a,f(a)) \textit{ e } (b,f(b))}} = pendenza della retta tangente t in ( c , f ( c )) f ′ ( c ) = = pendenza della retta secante s attraverso ( a , f ( a )) e ( b , f ( b )) b − a f ( b ) − f ( a )
x x x f ( x ) f(x) f ( x ) a a a c 1 c_1 c 1 c 2 c_2 c 2 b b b s s s t 1 t_1 t 1 t 2 t_2 t 2
Simile all'intuizione precedente.
Se f ∈ C [ a , b ] f \in C[a,b] f ∈ C [ a , b ] è derivabile in ( a , b ) (a,b) ( a , b ) allora per ogni x 1 , x 2 ∈ [ a , b ] x_1, x_2 \in [a,b] x 1 , x 2 ∈ [ a , b ] esiste c c c tra x 1 x_1 x 1 e x 2 x_2 x 2 tale che:
f ( x 2 ) = f ( x 1 ) + f ′ ( c ) ⋅ ( x 2 − x 1 ) \boxed{f(x_2) = f(x_1) + f'(c) \cdot (x_2 - x_1)} f ( x 2 ) = f ( x 1 ) + f ′ ( c ) ⋅ ( x 2 − x 1 )
Esempio: Trova un punto di Lagrange per f : [ 0 , 2 ] → R , f ( x ) = x 3 − x f:[0,2] \to \mathbb R, f(x) = x^3 - x f : [ 0 , 2 ] → R , f ( x ) = x 3 − x
Allora:
f è derivabile in [ a , b ] [a,b] [ a , b ]
f ( a ) = f ( 0 ) = 0 f(a) = f(0) = 0 f ( a ) = f ( 0 ) = 0
f ( b ) = f ( 2 ) = 6 f(b) = f(2) = 6 f ( b ) = f ( 2 ) = 6
f ′ ( x ) = 3 x 2 − 1 f'(x) = 3x^2 - 1 f ′ ( x ) = 3 x 2 − 1
Quindi cerchiamo x = c ∈ ( 0 , 2 ) x = c \in (0,2) x = c ∈ ( 0 , 2 ) tale che:
f ′ ( c ) = f ( b ) − f ( a ) b − a f'(c) = \frac{f(b) - f(a)}{b - a} f ′ ( c ) = b − a f ( b ) − f ( a )
3 c 2 − 1 = 6 − 0 2 − 0 3 c 2 = 4 c 2 = 4 3 C = + 4 3 \begin{aligned}
3c^2 - 1 &= \frac{6 - 0}{2 - 0} \\
3c^2 &= 4 \\
c^2 &= \frac{4}{3} \\
C &= + \sqrt{\frac{4}{3}}
\end{aligned} 3 c 2 − 1 3 c 2 c 2 C = 2 − 0 6 − 0 = 4 = 3 4 = + 3 4
Nota, mettiamo solo la radice positiva dato che quella negativa è fuori dal dominio ( 0 , 2 ) (0,2) ( 0 , 2 )
Sia f ∈ C [ a , b ] f \in C[a, b] f ∈ C [ a , b ] e derivabile in ( a , b ) (a, b) ( a , b ) . Allora:
f f f è crescente ⇔ f ′ ( x ) ≥ 0 \Leftrightarrow f'(x) \geq 0 ⇔ f ′ ( x ) ≥ 0 per ogni x ∈ ( a , b ) x \in (a, b) x ∈ ( a , b ) ;
f f f è decrescente ⇔ f ′ ( x ) ≤ 0 \Leftrightarrow f'(x) \leq 0 ⇔ f ′ ( x ) ≤ 0 per ogni x ∈ ( a , b ) x \in (a, b) x ∈ ( a , b ) ;
f ′ ( x ) > 0 f'(x) > 0 f ′ ( x ) > 0 per ogni x ∈ ( a , b ) x \in (a, b) x ∈ ( a , b ) ⇒ f \Rightarrow f ⇒ f è strettamente crescente ;
f ′ ( x ) < 0 f'(x) < 0 f ′ ( x ) < 0 per ogni x ∈ ( a , b ) x \in (a, b) x ∈ ( a , b ) ⇒ f \Rightarrow f ⇒ f è strettamente decrescente .
Sia f : ( a , b ) ∈ R f: (a,b) \in \mathbb{R} f : ( a , b ) ∈ R derivabile, e sia x 0 ∈ ( a , b ) x_0 \in (a,b) x 0 ∈ ( a , b ) un punto critico in f f f (possiamo trovarli tramite il teorema di fermat, cioè quando la derivata è 0), allora x 0 x_0 x 0 è:
Un punto di massimo locale se f ′ ( x ) f'(x) f ′ ( x ) in x 0 x_0 x 0 cambia di segno da + a -
Un punto di minimo locale se f ′ ( x ) f'(x) f ′ ( x ) in x 0 x_0 x 0 cambia di segno da - a +
max locale f ′ ( x ) > 0 ⇒ f'(x)>0 \Rightarrow f ′ ( x ) > 0 ⇒ f f f crescente+ \pmb{+} + f ′ ( x ) < 0 ⇒ f'(x)<0 \Rightarrow f ′ ( x ) < 0 ⇒ f f f decrescente− \pmb{-} − x 0 x_0 x 0
min locale f ′ ( x ) < 0 ⇒ f'(x)<0 \Rightarrow f ′ ( x ) < 0 ⇒ f f f decrescente− \pmb{-} − f ′ ( x ) > 0 ⇒ f'(x)>0 \Rightarrow f ′ ( x ) > 0 ⇒ f f f crescente+ \pmb{+} + x 0 x_0 x 0
Questa regola ci aiuta a trovare i limiti di certe forme indeterminate, cioè quando accade che durante la sostituzione abbiamo 0 0 \dfrac{0}{0} 0 0 oppure ± ∞ ± ∞ \dfrac{\pm \infty}{\pm \infty} ± ∞ ± ∞ . Da fare attenzione però che le forme indeterminate 0 0 \frac{0}{0} 0 0 sono considerate tali solo se gli 0 sono causati dalla variabile del limite che porta il termine a 0. Per esempio, non è indeterminato lim y → 0 ( 1 − 1 ) y y = 0 \lim_{y \to 0}\frac{(1 - 1)y}{y} = 0 lim y → 0 y ( 1 − 1 ) y = 0 dato che ( 1 − 1 ) y = 0 (1-1)y = 0 ( 1 − 1 ) y = 0 indifferentemente dal valore di y y y
Quindi il teorema ci dice che se:
lim x → c f ( x ) = 0 a n d lim x → c g ( x ) = 0 a n d lim x → c f ′ ( x ) g ′ ( x ) = L t h e n lim x → c f ( x ) g ( x ) = L \begin{aligned}
\lim_{x \to c}{f(x)} &= 0 \quad and \\
\lim_{x \to c}{g(x)} &= 0 \quad and \\
\lim_{x \to c}{\dfrac{f'(x)}{g'(x)}} &= L \quad then \\ \\
\lim_{x \to c}{\dfrac{f(x)}{g(x)}} &= L
\end{aligned} x → c lim f ( x ) x → c lim g ( x ) x → c lim g ′ ( x ) f ′ ( x ) x → c lim g ( x ) f ( x ) = 0 an d = 0 an d = L t h e n = L
oppure:
lim x → c f ( x ) = ± ∞ a n d lim x → c g ( x ) = ± ∞ a n d lim x → c f ′ ( x ) g ′ ( x ) = L t h e n lim x → c f ( x ) g ( x ) = L \begin{aligned}
\lim_{x \to c}{f(x)} &= \pm \infty \quad and \\
\lim_{x \to c}{g(x)} &= \pm \infty \quad and \\
\lim_{x \to c}{\dfrac{f'(x)}{g'(x)}} &= L \quad then \\ \\
\lim_{x \to c}{\dfrac{f(x)}{g(x)}} &= L
\end{aligned} x → c lim f ( x ) x → c lim g ( x ) x → c lim g ′ ( x ) f ′ ( x ) x → c lim g ( x ) f ( x ) = ± ∞ an d = ± ∞ an d = L t h e n = L
Per esempio:
lim x → 0 s i n x x = 0 0 \lim_{x \to 0} \frac{sin x}{x} = \frac{0}{0} x → 0 lim x s in x = 0 0
Allora:
f ′ ( x ) = c o s ( x ) g ′ ( x ) = 1 lim x → 0 f ′ ( x ) g ′ ( x ) = lim x → 0 c o s ( x ) 1 = 1 = lim x → 0 s i n ( x ) x \begin{aligned}
f'(x) &= cos(x) \\
g'(x) &= 1 \\
\\
\lim_{x \to 0}{\dfrac{f'(x)}{g'(x)}} &= \lim_{x \to 0}\frac{cos(x)}{1} \\
&= 1\\
&= \lim_{x \to 0}{\dfrac{sin(x)}{x}}
\end{aligned} f ′ ( x ) g ′ ( x ) x → 0 lim g ′ ( x ) f ′ ( x ) = cos ( x ) = 1 = x → 0 lim 1 cos ( x ) = 1 = x → 0 lim x s in ( x )
E naturalmente possiamo applicare il teorema a catena fino ad arrivare al caso base.
lim x → 0 2 sin x − sin 2 x x − sin x = 0 0 = lim x → 0 2 cos x − 2 cos 2 x 1 − cos x = 2 − 2 1 − 1 = 0 0 = lim x → 0 − 2 sin x + 4 sin 2 x sin x = 0 0 = lim x → 0 − 2 cos x + 8 cos 2 x cos x = − 2 + 8 1 = 6 \begin{aligned}
&\lim_{x \to 0} \frac{2\sin x - \sin 2x}{x - \sin x} = \frac{0}{0} \\[1em]
&= \lim_{x \to 0} \frac{2\cos x - 2\cos 2x}{1 - \cos x} = \frac{2-2}{1-1} = \frac{0}{0} \\[1em]
&= \lim_{x \to 0} \frac{-2\sin x + 4\sin 2x}{\sin x} = \frac{0}{0} \\[1em]
&= \lim_{x \to 0} \frac{-2\cos x + 8\cos 2x}{\cos x} = \frac{-2+8}{1} = 6
\end{aligned} x → 0 lim x − sin x 2 sin x − sin 2 x = 0 0 = x → 0 lim 1 − cos x 2 cos x − 2 cos 2 x = 1 − 1 2 − 2 = 0 0 = x → 0 lim sin x − 2 sin x + 4 sin 2 x = 0 0 = x → 0 lim cos x − 2 cos x + 8 cos 2 x = 1 − 2 + 8 = 6
lim x → ∞ 4 x 2 − 5 x 1 − 3 x 2 = ∞ − ∞ = − 4 3 = lim x → ∞ 8 x − 5 − 6 x = ∞ − ∞ = lim x → ∞ 8 − 6 = − 4 3 \begin{aligned}
&\lim_{x \to \infty} \frac{4x^2 - 5x}{1 - 3x^2} = \frac{\infty}{-\infty} = -\frac{4}{3} \\[1em]
&= \lim_{x \to \infty} \frac{8x - 5}{-6x} = \frac{\infty}{-\infty} \\[1em]
&= \lim_{x \to \infty} \frac{8}{-6} = \boxed{-\frac{4}{3}}
\end{aligned} x → ∞ lim 1 − 3 x 2 4 x 2 − 5 x = − ∞ ∞ = − 3 4 = x → ∞ lim − 6 x 8 x − 5 = − ∞ ∞ = x → ∞ lim − 6 8 = − 3 4
lim x → ∞ 4 x 2 − 5 x 1 − 3 x 2 = lim x → ∞ x 2 ( 4 − 5 x ) x 2 ( 1 x 2 − 3 ) = lim x → ∞ 4 − 5 x ⏞ → 0 1 x 2 ⏟ → 0 − 3 = − 4 3 \begin{aligned}
&\lim_{x \to \infty} \frac{4x^2 - 5x}{1 - 3x^2} \\[1em]
&= \lim_{x \to \infty} \frac{\cancel{x^2}\left(4 - \frac{5}{x}\right)}{\cancel{x^2}\left(\frac{1}{x^2} - 3\right)} \\[1em]
&= \lim_{x \to \infty} \frac{4 - \overbrace{\tfrac{5}{x}}^{\to 0}}{\underbrace{\tfrac{1}{x^2}}_{\to 0} - 3} = \boxed{-\frac{4}{3}}
\end{aligned} x → ∞ lim 1 − 3 x 2 4 x 2 − 5 x = x → ∞ lim x 2 ( x 2 1 − 3 ) x 2 ( 4 − x 5 ) = x → ∞ lim → 0 x 2 1 − 3 4 − x 5 → 0 = − 3 4
Alcune volte non è possibile applicare la regola di Hopital direttamente, ma si può manipolare l'espressione per poterla far applicare:
lim x → 1 ( x x − 1 − 1 ln x ) = 1 0 − 1 0 × = lim x → 1 ( x ln x − ( x − 1 ) ( x − 1 ) ln x ) = 0 0 ✓ = lim x → 1 ln x + 1 x ⋅ x − 1 ln x + 1 x ( x − 1 ) = lim x → 1 ln x ln x + x − 1 x = 0 0 = lim x → 1 1 x 1 x + − x − 2 ( x − 1 ) + 1 x = 1 1 + 1 = 1 2 \begin{aligned}
&\lim_{x \to 1} \left( \frac{x}{x-1} - \frac{1}{\ln x} \right) = \frac{1}{0} - \frac{1}{0} \quad \textcolor{red}{\times} \\[1em]
&= \lim_{x \to 1} \left( \frac{x \ln x - (x-1)}{(x-1)\ln x} \right) = \frac{0}{0} \quad \textcolor{green}{\checkmark} \\[1em]
&= \lim_{x \to 1} \frac{\ln x + \cancel{\frac{1}{x} \cdot x - 1}}{\ln x + \frac{1}{x}(x-1)} \\[1em]
&= \lim_{x \to 1} \frac{\ln x}{\ln x + \frac{x-1}{x}} = \frac{0}{0} \\[1em]
&= \lim_{x \to 1} \frac{\frac{1}{x}}{\frac{1}{x} + \cancel{-x^{-2}(x-1)} + \frac{1}{x}} = \frac{1}{1+1} = \boxed{\frac{1}{2}}
\end{aligned} x → 1 lim ( x − 1 x − ln x 1 ) = 0 1 − 0 1 × = x → 1 lim ( ( x − 1 ) ln x x ln x − ( x − 1 ) ) = 0 0 ✓ = x → 1 lim ln x + x 1 ( x − 1 ) ln x + x 1 ⋅ x − 1 = x → 1 lim ln x + x x − 1 ln x = 0 0 = x → 1 lim x 1 + − x − 2 ( x − 1 ) + x 1 x 1 = 1 + 1 1 = 2 1
Se abbiamo che:
lim x → x 0 f ( x ) g ( x ) = 1 \lim_{x \to x_0} \frac{f(x)}{g(x)} = 1 x → x 0 lim g ( x ) f ( x ) = 1
Allora diciamo che f ( x ) ∼ g ( x ) f(x) \sim g(x) f ( x ) ∼ g ( x ) per x → x 0 x \to x_0 x → x 0 cioè che f f f è asintoticamente equivalente a g g g per x → x 0 x \to x_0 x → x 0
Inoltre abbiamo che se f ( x ) ∼ g ( x ) f(x) \sim g(x) f ( x ) ∼ g ( x ) per x → x 0 x \to x_0 x → x 0 , allora
lim x → x 0 f ( x ) = lim x → x 0 g ( x ) \lim_{x \to x_0}f(x) = \lim_{x \to x_0} g(x) x → x 0 lim f ( x ) = x → x 0 lim g ( x )
Per esempio:
lim x → 0 s i n ( x ) x = 1 \lim_{x \to 0}\frac{sin(x)}{x} = 1 x → 0 lim x s in ( x ) = 1
E quindi, x ∼ s i n ( x ) x \sim sin(x) x ∼ s in ( x ) per x → 0 x \to 0 x → 0 :
lim x → 0 x = lim x → 0 s i n ( x ) = 0 \lim_{x \to 0} x = \lim_{x \to 0} sin(x) = 0 x → 0 lim x = x → 0 lim s in ( x ) = 0
Se
lim x → x 0 f ( x ) g ( x ) = 0 \Large\lim_{x \to x_0}{\frac{f(x)}{g(x)} = 0} x → x 0 lim g ( x ) f ( x ) = 0
Allora diciamo che f f f è un o o o piccolo di g g g per x x x che tende a x 0 x_0 x 0 .
Allora scriviamo: f ( x ) = o ( g ( x ) ) f(x) = o(g(x)) f ( x ) = o ( g ( x )) per x → x 0 x \to x_0 x → x 0 .
f = o ( g ( x ) ) f = o(g(x)) f = o ( g ( x )) per f ( x ) → x 0 f(x) \to x_0 f ( x ) → x 0 significa che:
(Infinitesimi) f ( x ) f(x) f ( x ) tende a 0 più velocemente rispetto a quanto g ( x ) g(x) g ( x ) tende a 0
(infiniti) f ( x ) f(x) f ( x ) tende a ± ∞ \pm \infty ± ∞ più lentamente che g ( x ) → ± ∞ g(x) \to \pm\infty g ( x ) → ± ∞
Esempi:
l n ( x ) = o ( x ) ln(x) = o(x) l n ( x ) = o ( x ) per x → ∞ x \to \infty x → ∞ perchè l n ( x ) x → 0 \frac{ln(x)}{x} \to 0 x l n ( x ) → 0 per x → ∞ x \to \infty x → ∞
x = o ( x 2 ) x = o(x^2) x = o ( x 2 ) per x → ± ∞ x \to \pm \infty x → ± ∞ , mentre x 2 = o ( x ) x^2 = o(x) x 2 = o ( x ) per x → 0 x \to 0 x → 0
Data f : ( a , b ) → R f: (a,b) \to \mathbb{R} f : ( a , b ) → R e x 0 ∈ ( a , b ) x_0 \in (a,b) x 0 ∈ ( a , b ) e n ∈ N n \in \mathbb{N} n ∈ N , vogliamo approssimare f ( x ) f(x) f ( x ) con x vicino a x 0 x_0 x 0 con un polinomio T n ( x ) T_n(x) T n ( x ) di grado ≤ n \le n ≤ n
Per f f f derivabile in x 0 x_0 x 0 , la retta tangente è data dell'equazione:
t ( x ) = f ( x ) + f ′ ( x ) ⋅ ( x − x 0 ) t(x) = f(x) + f'(x) \cdot(x - x_0) t ( x ) = f ( x ) + f ′ ( x ) ⋅ ( x − x 0 )
Questa funzione avrà naturalmente un errore rispetto alla funzione originaria, allora:
f ( x ) = t ( x ) + r ( x ) f(x) = t(x) + r(x) f ( x ) = t ( x ) + r ( x )
Dove r ( x ) r(x) r ( x ) è l'errore dell'approssimazione:
x 0 x_0 x 0 x x x f ( x 0 ) f(x_0) f ( x 0 ) f ( x ) f(x) f ( x ) t ( x ) t(x) t ( x ) f f f t t t = r ( x ) =r(x) = r ( x )
E naturalmente, con x → x 0 x \to x_0 x → x 0 il resto r ( x ) r(x) r ( x ) tende a 0, e nel punto r ( x 0 ) = 0 r(x_0) = 0 r ( x 0 ) = 0 . Questa funzione è la migliore approssimante per n = 1 n = 1 n = 1
Se possiamo fare la derivata di una funzione n n n volte (derivata della derivata etc...), ed è anche continua, cioè che f ∈ C n ( a , b ) f \in C^{n}(a,b) f ∈ C n ( a , b ) , allora dichiamo che la funzione è derivabile n n n volte con continuità.
Allora supponendo che f f f sia n n n volte derivabile con continuità, cerchiamo un polinomio T n T_n T n che fino all'n-esimo termine ha il valore in x 0 x_0 x 0 in comune con tutte le derivate, cioè che:
T n ( x 0 ) = f ( x 0 ) , T n ′ ( x 0 ) = f ′ ( x 0 ) , ⋮ T n ( n ) ( x 0 ) = f ( n ) ( x 0 ) . } ⟺ : f e T n hanno contatto di ordine n in x 0 \left.
\begin{aligned}
T_n(x_0) &= f(x_0), \\
T_n'(x_0) &= f'(x_0), \\
&\ \,\vdots \\
T_n^{(n)}(x_0) &= f^{(n)}(x_0).
\end{aligned}
\right\}
\iff : \quad f \text{ e } T_n \text{ hanno } \textit{contatto di ordine } n \textit{ in } x_0 T n ( x 0 ) T n ′ ( x 0 ) T n ( n ) ( x 0 ) = f ( x 0 ) , = f ′ ( x 0 ) , ⋮ = f ( n ) ( x 0 ) . ⎭ ⎬ ⎫ ⟺ : f e T n hanno contatto di ordine n in x 0
Se f ∈ C n ( a , b ) f \in C^n(a,b) f ∈ C n ( a , b ) e x 0 ∈ ( a , b ) x_0 \in (a,b) x 0 ∈ ( a , b ) , allora esiste un unico polinomio T n T_n T n di grado ≤ n \le n ≤ n che ha contatto di ordine n n n in x 0 x_0 x 0 con f f f . Questo polinomio si chiama Polinomio di Taylor di ordine n n n centrato su x 0 x_0 x 0 , ed è dato da:
T n ( x ) = f ( x 0 ) + f ′ ( x 0 ) ⋅ ( x − x 0 ) + f ′ ′ ( x 0 ) 2 ! ⋅ ( x − x 0 ) 2 + … + f ( n ) ( x 0 ) n ! ⋅ ( x − x 0 ) n = ∑ k = 0 n f ( k ) ( x 0 ) k ! ⋅ ( x − x 0 ) k \begin{aligned}
T_n(x) &= f(x_0) + f'(x_0) \cdot (x - x_0) + \frac{f''(x_0)}{2!} \cdot (x - x_0)^2 + \ldots + \frac{f^{(n)}(x_0)}{n!} \cdot (x - x_0)^n \\
&= \sum_{k=0}^{n} \frac{f^{(k)}(x_0)}{k!} \cdot (x - x_0)^k
\end{aligned} T n ( x ) = f ( x 0 ) + f ′ ( x 0 ) ⋅ ( x − x 0 ) + 2 ! f ′′ ( x 0 ) ⋅ ( x − x 0 ) 2 + … + n ! f ( n ) ( x 0 ) ⋅ ( x − x 0 ) n = k = 0 ∑ n k ! f ( k ) ( x 0 ) ⋅ ( x − x 0 ) k
Se x 0 = 0 x_0 = 0 x 0 = 0 allora T n T_n T n viene chiamato Polinomio di Maclaurin
T n ( x ) = 1 + x + x 2 2 + x 3 3 ! + … + x n n ! = ∑ k = 0 n x k k ! T_n(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \ldots + \frac{x^n}{n!} = \sum_{k=0}^{n} \frac{x^k}{k!} T n ( x ) = 1 + x + 2 x 2 + 3 ! x 3 + … + n ! x n = k = 0 ∑ n k ! x k
− 3 -3 − 3 − 2 -2 − 2 − 1 -1 − 1 1 1 1 2 2 2 3 3 3 5 5 5 10 10 10 15 15 15 20 20 20 e x e^x e x T 4 ( x ) T_4(x) T 4 ( x ) T 3 ( x ) T_3(x) T 3 ( x ) T 2 ( x ) T_2(x) T 2 ( x ) T 1 ( x ) T_1(x) T 1 ( x ) T 0 ( x ) T_0(x) T 0 ( x )
2 2 2 4 4 4 6 6 6 8 8 8 − 4 -4 − 4 − 2 -2 − 2 2 2 2 4 4 4 sin ( x ) \sin(x) sin ( x ) T 1 ( x ) T_{1}(x) T 1 ( x ) T 5 ( x ) T_{5}(x) T 5 ( x ) T 9 ( x ) T_{9}(x) T 9 ( x ) T 13 ( x ) T_{13}(x) T 13 ( x ) T 17 ( x ) T_{17}(x) T 17 ( x ) T 3 ( x ) T_{3}(x) T 3 ( x ) T 7 ( x ) T_{7}(x) T 7 ( x ) T 11 ( x ) T_{11}(x) T 11 ( x ) T 15 ( x ) T_{15}(x) T 15 ( x ) T 19 ( x ) T_{19}(x) T 19 ( x )
Ora ci chiediamo, nella approssimazione del polinomio di taylor, quanto vale l'errore? Cioè:
R n ( x ) = f ( x ) − T n ( x ) = ? \Large{R_n(x) = f(x) - T_n(x) = \ ?} R n ( x ) = f ( x ) − T n ( x ) = ?
Nel caso n = 0 n = 0 n = 0 , con il teorema di lagrange sappiamo che esiste c c c tra x x x e x 0 x_0 x 0 tale che
R 0 ( x ) = f ( x ) − T 0 ( x ) = f ( x ) − f ( x 0 ) = f ′ ( c ) ⋅ ( x − x 0 ) = o ( 1 ) = o ( ( x − x 0 ) 0 ) per x → x 0 . \begin{aligned}
R_0(x) = f(x) - T_0(x) = f(x) - f(x_0) &= f'(c) \cdot (x - x_0) \\
&= o(1) = o\left((x - x_0)^0\right) \ \text{per } x \to x_0.
\end{aligned} R 0 ( x ) = f ( x ) − T 0 ( x ) = f ( x ) − f ( x 0 ) = f ′ ( c ) ⋅ ( x − x 0 ) = o ( 1 ) = o ( ( x − x 0 ) 0 ) per x → x 0 .
Nel caso n = 1 n = 1 n = 1 , abbiamo visto che T 1 ( x ) = t ( x ) T_1(x) = t(x) T 1 ( x ) = t ( x )
R 1 ( x ) = r ( x ) = o ( ( x − x 0 ) 1 ) per x → x 0 . R_1(x) = r(x) = o\left((x - x_0)^1\right) \ \text{per } x \to x_0. R 1 ( x ) = r ( x ) = o ( ( x − x 0 ) 1 ) per x → x 0 .
Nel caso n > 1 n \gt 1 n > 1 , abbiamo la Formula di taylor :
Sia f ∈ C ( n + 1 ) ( a , b ) f \in C^{(n+1)}(a,b) f ∈ C ( n + 1 ) ( a , b ) e sia x 0 ∈ ( a , b ) x_0 \in (a,b) x 0 ∈ ( a , b ) , allora per R n ( x ) = f ( x ) − T n ( x ) R_n(x) = f(x) - T_n(x) R n ( x ) = f ( x ) − T n ( x ) vale che:
R n ( x ) = o ( ( x − x 0 ) n ) per x → x 0 (Resto di Peano) R_n(x) = o\left((x - x_0)^n\right) \quad \text{per } x \to x_0 \qquad \textit{(Resto di Peano)} R n ( x ) = o ( ( x − x 0 ) n ) per x → x 0 (Resto di Peano)
esiste c ∈ ( x , x 0 ) c \in (x, x_0) c ∈ ( x , x 0 ) :
R n ( x ) = f ( n + 1 ) ( c ) ( n + 1 ) ! ⋅ ( x − x 0 ) n + 1 (Resto di Lagrange) R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!} \cdot (x - x_0)^{n+1} \qquad \textit{(Resto di Lagrange)} R n ( x ) = ( n + 1 )! f ( n + 1 ) ( c ) ⋅ ( x − x 0 ) n + 1 (Resto di Lagrange)
Il resto di Peano ci dice che la velocità del resto tende a 0 per x → x 0 x \to x_0 x → x 0 , mentre il resto di lagrange ci dice quanto è grande il resto