Matematyka dyskretna 1/Ćwiczenia 7: Funkcje tworzące: Różnice pomiędzy wersjami
Z Studia Informatyczne
Przejdź do nawigacjiPrzejdź do wyszukiwania
m Zastępowanie tekstu – „\displaystyle ” na „” |
|||
Linia 4: | Linia 4: | ||
Policz funkcję tworzącą następujących ciągów: | Policz funkcję tworzącą następujących ciągów: | ||
; a. <math>a_n=2^n </math> , | ; a. <math>a_n=2^n</math> , | ||
; b. <math>b_n=2n+3 </math> , | ; b. <math>b_n=2n+3</math> , | ||
; c. <math>c_n=\frac{1}{n} </math> dla <math>n\geq 1 </math> , oraz <math>c_0=0 </math> , | ; c. <math>c_n=\frac{1}{n} </math> dla <math>n\geq 1 </math> , oraz <math>c_0=0</math> , | ||
; d. <math>d_n=1+\frac{1}{2}+\frac{1}{3}+\ldots+\frac{1}{n} </math> . | ; d. <math>d_n=1+\frac{1}{2}+\frac{1}{3}+\ldots+\frac{1}{n}</math> . | ||
}} | }} | ||
Linia 17: | Linia 17: | ||
<div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Rozwiązanie </span><div class="mw-collapsible-content" style="display:none"> | <div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Rozwiązanie </span><div class="mw-collapsible-content" style="display:none"> | ||
W punktach a. i c. będziemy używać wzoru na postać zwartą funkcji tworzącej | W punktach a. i c. będziemy używać wzoru na postać zwartą funkcji tworzącej | ||
ciągu stałego równego <math>1 </math> : | ciągu stałego równego <math>1</math> : | ||
Linia 26: | Linia 26: | ||
; ad a. Dla funkcji tworzącej <math>A\!\left( x \right)=a_0+a_1x+a_2x^2+a_3x^3+\ldots </math>, korzystając z ([[#1|1]]), otrzymujemy równość: | ; ad a. Dla funkcji tworzącej <math>A\!\left( x \right)=a_0+a_1x+a_2x^2+a_3x^3+\ldots</math>, korzystając z ([[#1|1]]), otrzymujemy równość: | ||
<center><math>A\!\left( x \right)=1+2x+2^2x^2+2^3x^3+\ldots=\frac{1}{1-2x}. | <center><math>A\!\left( x \right)=1+2x+2^2x^2+2^3x^3+\ldots=\frac{1}{1-2x}. | ||
Linia 39: | Linia 39: | ||
</math>}} | </math>}} | ||
Funkcja <math>\frac{1}{1-x} </math> jest funkcją tworzącą ciągu stałego równego <math>1 </math> , | Funkcja <math>\frac{1}{1-x} </math> jest funkcją tworzącą ciągu stałego równego <math>1</math> , | ||
zaś funkcja <math>\frac{1}{\left( 1-x \right)^2} </math> jest funkcją tworzącą ciągu <math>n+1 </math> . | zaś funkcja <math>\frac{1}{\left( 1-x \right)^2}</math> jest funkcją tworzącą ciągu <math>n+1</math> . | ||
Tak więc, aby otrzymać funkcję tworzącą ciągu <math>2n+3 </math> | Tak więc, aby otrzymać funkcję tworzącą ciągu <math>2n+3</math> | ||
wystarczy dodać jedną do podwojonej drugiej: | wystarczy dodać jedną do podwojonej drugiej: | ||
Linia 57: | Linia 57: | ||
=\int\sum_{n=0}^{\infty}{x^n} | =\int\sum_{n=0}^{\infty}{x^n} | ||
= \int \frac{1}{1-x} | = \int \frac{1}{1-x} | ||
=-\ln{\left( 1-x \right)} | =-\ln{\left( 1-x \right)} | ||
</math></center> | </math></center> | ||
Linia 65: | Linia 65: | ||
=\frac{C\!\left( x \right)}{1-x} | =\frac{C\!\left( x \right)}{1-x} | ||
=-\frac{\ln{\left( 1-x \right)}}{1-x} | =-\frac{\ln{\left( 1-x \right)}}{1-x} | ||
=\frac{\ln{\left( 1-x \right)}}{x-1} | =\frac{\ln{\left( 1-x \right)}}{x-1} | ||
</math></center> | </math></center> | ||
Linia 71: | Linia 71: | ||
{{cwiczenie|2|cw 2| | {{cwiczenie|2|cw 2| | ||
Policz funkcję tworzącą ciągu <math>a_n=\frac{1}{n!} </math> . | Policz funkcję tworzącą ciągu <math>a_n=\frac{1}{n!}</math> . | ||
}} | }} | ||
<div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Wskazówka </span><div class="mw-collapsible-content" style="display:none"> | <div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Wskazówka </span><div class="mw-collapsible-content" style="display:none"> | ||
Dla funkcji tworzącej <math>A\!\left( x \right)=\sum_{n=0}^{\infty}\frac{x^n}{n!} </math> zachodzi | Dla funkcji tworzącej <math>A\!\left( x \right)=\sum_{n=0}^{\infty}\frac{x^n}{n!}</math> zachodzi | ||
<math>A'\!\left( x \right)=A\!\left( x \right) </math> . | <math>A'\!\left( x \right)=A\!\left( x \right)</math> . | ||
Rozważ jakie funkcje mają tę własność? | Rozważ jakie funkcje mają tę własność? | ||
</div></div> | </div></div> | ||
Linia 86: | Linia 86: | ||
<center><math>A\!\left( x \right) | <center><math>A\!\left( x \right) | ||
=\sum_{n=0}^{\infty}\frac{x^n}{n!} | =\sum_{n=0}^{\infty}\frac{x^n}{n!} | ||
</math></center> | </math></center> | ||
Linia 97: | Linia 97: | ||
=\sum_{n=1}^{\infty}\frac{n x^{n-1}}{n!} | =\sum_{n=1}^{\infty}\frac{n x^{n-1}}{n!} | ||
=\sum_{n=1}^{\infty}\frac{x^{n-1}}{\left( n-1 \right)!} | =\sum_{n=1}^{\infty}\frac{x^{n-1}}{\left( n-1 \right)!} | ||
=\sum_{n=0}^{\infty}\frac{x^n}{n!}=A\!\left( x \right) | =\sum_{n=0}^{\infty}\frac{x^n}{n!}=A\!\left( x \right) | ||
</math></center> | </math></center> | ||
Po podstawieniu w miejsce <math>A\!\left( x \right) </math> funkcji <math>e^{B\!\left( x \right)} </math> uzyskamy: | Po podstawieniu w miejsce <math>A\!\left( x \right)</math> funkcji <math>e^{B\!\left( x \right)}</math> uzyskamy: | ||
<center><math>e^{B\!\left( x \right)}=\left( e^{B\!\left( x \right)} \right)'=B'\!\left( x \right)e^{B\!\left( x \right)} | <center><math>e^{B\!\left( x \right)}=\left( e^{B\!\left( x \right)} \right)'=B'\!\left( x \right)e^{B\!\left( x \right)} | ||
</math></center> | </math></center> | ||
co implikuje, że <math>B'\!\left( x \right)=1 </math> , a więc <math>B\!\left( x \right)=x+a </math> dla pewnego <math>a\in\mathbb{R} </math> . | co implikuje, że <math>B'\!\left( x \right)=1 </math> , a więc <math>B\!\left( x \right)=x+a </math> dla pewnego <math>a\in\mathbb{R}</math> . | ||
Z faktu, że <math>A\!\left( 0 \right)=1 </math> mamy więc: | Z faktu, że <math>A\!\left( 0 \right)=1</math> mamy więc: | ||
<center><math>A\!\left( x \right)=e^x | <center><math>A\!\left( x \right)=e^x | ||
</math></center> | </math></center> | ||
Linia 122: | Linia 122: | ||
<center><math>\frac{1}{\left( 1-x \right)^{m+1}}=\sum_{n=0}^{\infty}{ m+n \choose n }x^n | <center><math>\frac{1}{\left( 1-x \right)^{m+1}}=\sum_{n=0}^{\infty}{ m+n \choose n }x^n | ||
</math></center> | </math></center> | ||
Linia 136: | Linia 136: | ||
<center><math>G\!\left( x \right) | <center><math>G\!\left( x \right) | ||
=\frac{1}{\left( 1-x \right)^{m+1}} | =\frac{1}{\left( 1-x \right)^{m+1}} | ||
</math></center> | </math></center> | ||
Linia 145: | Linia 145: | ||
<center><math>G\!\left( x \right) | <center><math>G\!\left( x \right) | ||
=\left( 1+\left( -x \right) \right)^{-\left( m+1 \right)} | =\left( 1+\left( -x \right) \right)^{-\left( m+1 \right)} | ||
=\sum_{n=0}^{\infty}{ -\left( m+1 \right) \choose n }\left( -x \right)^n | =\sum_{n=0}^{\infty}{ -\left( m+1 \right) \choose n }\left( -x \right)^n | ||
</math></center> | </math></center> | ||
Po rozpisaniu uogólnionego symbolu dwumianowego | Po rozpisaniu uogólnionego symbolu dwumianowego | ||
<math>{ y \choose n }=\frac{y^{\underline{n}}}{n!} </math> | <math>{ y \choose n }=\frac{y^{\underline{n}}}{n!}</math> | ||
funkcja <math>G\!\left( x \right) </math> przyjmuje więc postać: | funkcja <math>G\!\left( x \right)</math> przyjmuje więc postać: | ||
<center><math>\begin{align} &&\sum_{n=0}^{\infty}\frac{\left( -m-1 \right)\cdot\left( -m-2 \right)\cdot\ldots\cdot\left( -m-n \right)}{n!}\left( -1 \right)^n x^n= | <center><math>\begin{align} &&\sum_{n=0}^{\infty}\frac{\left( -m-1 \right)\cdot\left( -m-2 \right)\cdot\ldots\cdot\left( -m-n \right)}{n!}\left( -1 \right)^n x^n= | ||
&&\quad\quad\quad\quad\quad\quad\quad\quad\quad=\ \sum_{n=0}^{\infty}\frac{\left( m+n \right)\cdot\left( m+n-1 \right)\cdot\ldots\cdot\left( m+1 \right)}{n!}x^n | &&\quad\quad\quad\quad\quad\quad\quad\quad\quad=\ \sum_{n=0}^{\infty}\frac{\left( m+n \right)\cdot\left( m+n-1 \right)\cdot\ldots\cdot\left( m+1 \right)}{n!}x^n | ||
\end{align}</math></center> | \end{align}</math></center> | ||
Linia 162: | Linia 162: | ||
<center><math>G\!\left( x \right)=\sum_{n=0}^{\infty}{ m+n \choose n }x^n | <center><math>G\!\left( x \right)=\sum_{n=0}^{\infty}{ m+n \choose n }x^n | ||
</math></center> | </math></center> | ||
Linia 185: | Linia 185: | ||
<div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Rozwiązanie </span><div class="mw-collapsible-content" style="display:none"> | <div class="mw-collapsible mw-made=collapsible mw-collapsed"><span class="mw-collapsible-toogle mw-collapsible-toogle-default style="font-variant:small-caps">Rozwiązanie </span><div class="mw-collapsible-content" style="display:none"> | ||
Wielomian <math>W\!\left( x \right)=1-3x-2x^2+2x^3 </math> ma miejsce zerowe <math>x=-1 </math> , | Wielomian <math>W\!\left( x \right)=1-3x-2x^2+2x^3</math> ma miejsce zerowe <math>x=-1</math> , | ||
czyli <math>W\!\left( x \right)=\left( 1-4x+2x^2 \right)\left( 1+x \right) </math> . | czyli <math>W\!\left( x \right)=\left( 1-4x+2x^2 \right)\left( 1+x \right)</math> . | ||
Z kolei funkcja kwadratowa <math>1-4x+2x^2 </math> ma miejsca zerowe: | Z kolei funkcja kwadratowa <math>1-4x+2x^2</math> ma miejsca zerowe: | ||
<center><math>x_1=\frac{2+\sqrt{2}}{2},\quad\quad\quad x_2=\frac{2-\sqrt{2}}{2} | <center><math>x_1=\frac{2+\sqrt{2}}{2},\quad\quad\quad x_2=\frac{2-\sqrt{2}}{2} | ||
</math></center> | </math></center> | ||
Linia 198: | Linia 198: | ||
<center><math>W\!\left( x \right) | <center><math>W\!\left( x \right) | ||
=\left( 1-\left( 2+\sqrt{2} \right)x \right)\cdot\left( 1-\left( 2-\sqrt{2} \right)x \right)\cdot\left( 1+x \right) | =\left( 1-\left( 2+\sqrt{2} \right)x \right)\cdot\left( 1-\left( 2-\sqrt{2} \right)x \right)\cdot\left( 1+x \right) | ||
</math></center> | </math></center> | ||
Funkcja <math>W\!\left( x \right) </math> ma więc postać | Funkcja <math>W\!\left( x \right)</math> ma więc postać | ||
Linia 208: | Linia 208: | ||
\frac{A}{1-\left( 2+\sqrt{2} \right)x}+ | \frac{A}{1-\left( 2+\sqrt{2} \right)x}+ | ||
\frac{B}{1-\left( 2-\sqrt{2} \right)x}+ | \frac{B}{1-\left( 2-\sqrt{2} \right)x}+ | ||
\frac{C}{1+x} | \frac{C}{1+x} | ||
</math></center> | </math></center> | ||
dla pewnych <math>A,B,C \in \mathbb{R} </math> . | dla pewnych <math>A,B,C \in \mathbb{R}</math> . | ||
Po wymnożeniu przez <math>1-3x-2x^2+2x^3 </math> otrzymamy: | Po wymnożeniu przez <math>1-3x-2x^2+2x^3</math> otrzymamy: | ||
Linia 235: | Linia 235: | ||
1&=A+B+C\\ | 1&=A+B+C\\ | ||
2&=\left( -1-\sqrt{2} \right)A+\left( -1+\sqrt{2} \right)B-4C\\ | 2&=\left( -1-\sqrt{2} \right)A+\left( -1+\sqrt{2} \right)B-4C\\ | ||
-6&=\left( -2-\sqrt{2} \right)A+\left( -2+\sqrt{2} \right)B+2C | -6&=\left( -2-\sqrt{2} \right)A+\left( -2+\sqrt{2} \right)B+2C | ||
\end{align} | \end{align} | ||
\right | \right | ||
</math></center> | </math></center> | ||
którego rozwiązaniem są <math>A=B=1,\ C=-1 </math> . | którego rozwiązaniem są <math>A=B=1,\ C=-1</math> . | ||
Funkcja <math>G\!\left( x \right) </math> po podstawieniu za <math>A,B,C </math> odpowiednio liczb <math>1,1,-1 </math> , | Funkcja <math>G\!\left( x \right)</math> po podstawieniu za <math>A,B,C</math> odpowiednio liczb <math>1,1,-1</math> , | ||
jest sumą | jest sumą | ||
Linia 249: | Linia 249: | ||
\frac{1}{1-\left( 2+\sqrt{2} \right)x}+ | \frac{1}{1-\left( 2+\sqrt{2} \right)x}+ | ||
\frac{1}{1-\left( 2-\sqrt{2} \right)x}- | \frac{1}{1-\left( 2-\sqrt{2} \right)x}- | ||
\frac{1}{1+x} | \frac{1}{1+x} | ||
</math></center> | </math></center> | ||
Rozwijając ułamki postaci <math>\frac{\alpha}{1-\rho x} </math> | Rozwijając ułamki postaci <math>\frac{\alpha}{1-\rho x}</math> | ||
w szereg funkcyjny <math>\alpha\sum_{n=0}^{\infty}\rho^n x^n </math> otrzymujemy: | w szereg funkcyjny <math>\alpha\sum_{n=0}^{\infty}\rho^n x^n</math> otrzymujemy: | ||
<center><math>G\!\left( x \right) | <center><math>G\!\left( x \right) | ||
=\sum_{n=0}^{\infty}\left( \left( 2+\sqrt{2} \right)^n+\left( 2-\sqrt{2} \right)^n-\left( -1 \right)^n \right)x^n | =\sum_{n=0}^{\infty}\left( \left( 2+\sqrt{2} \right)^n+\left( 2-\sqrt{2} \right)^n-\left( -1 \right)^n \right)x^n | ||
</math></center> | </math></center> | ||
Wersja z 13:00, 28 sie 2023
Funkcje tworzące
Ćwiczenie 1
Policz funkcję tworzącą następujących ciągów:
- a. ,
- b. ,
- c. dla , oraz ,
- d. .
Wskazówka
Rozwiązanie
Ćwiczenie 2
Policz funkcję tworzącą ciągu .
Wskazówka
Rozwiązanie
Ćwiczenie 3
Pokaż, że dla liczby naturalnej zachodzi
Wskazówka
Rozwiązanie
Ćwiczenie 4
Przedstaw funkcję
w postaci szeregu funkcyjnego.
Wskazówka
Rozwiązanie
Ćwiczenie 5
Rozwiąż równanie rekurencyjne:
Wskazówka
Rozwiązanie
Ćwiczenie 6
Rozwiąż równanie rekurencyjne postaci
i sprawdź, czy ciąg jest ograniczony.
Wskazówka
Rozwiązanie
Ćwiczenie 7
Rozwiąż równanie rekurencyjne postaci
Wskazówka
Rozwiązanie