Formulaire¶
Toutes les formules du cours, classées par partie. À imprimer et à garder à côté du cahier.
Mode d'emploi
Ce formulaire sert aussi de liste de contrôle de révision. Parcourez-le en vous demandant, pour chaque formule : « est-ce que je sais d'où elle vient et quand l'appliquer ? »
Si la réponse est non, le chapitre correspondant est à retravailler.
Prérequis¶
Puissances et racines¶
Identités remarquables¶
Second degré¶
Signe : du signe de \(a\) partout, sauf entre les racines.
Sommes¶
Algèbre¶
Combinatoire¶
Les quatre tirages de \(k\) parmi \(n\) :
| Ordonné | Non ordonné | |
|---|---|---|
| Avec remise | \(n^k\) | — |
| Sans remise | \(A_n^k\) | \(\binom nk\) |
Ensembles¶
Matrices¶
Inverse \(2\times2\) :
Comatrice : \(\mathbf{A}^{-1} = \dfrac{1}{\det\mathbf A}(\operatorname{com}\mathbf A)^\top\)
Déterminant¶
| Opération | Effet sur \(\det\) |
|---|---|
| \(L_i\leftrightarrow L_j\) | change de signe |
| \(L_i\leftarrow\lambda L_i\) | \(\times\lambda\) |
| \(L_i\leftarrow L_i+\lambda L_j\) | inchangé |
\(\mathbf A\) inversible \(\iff \det\mathbf A\neq0\).
Éléments propres¶
Diagonalisation : \(\mathbf A = \mathbf{PDP}^{-1}\), donc \(\mathbf A^n = \mathbf{PD}^n\mathbf{P}^{-1}\).
Critère : diagonalisable \(\iff \sum\dim E_\lambda = n\). Suffisant : \(n\) valeurs propres distinctes, ou \(\mathbf A\) symétrique réelle.
Arithmétique¶
Bézout : \(\exists u,v,\ au+bv = \operatorname{pgcd}(a,b)\). Et \(\operatorname{pgcd}(a,b)=1 \iff \exists u,v,\ au+bv=1\).
Gauss : \(a\mid bc\) et \(a\wedge b=1\) \(\implies\) \(a\mid c\).
Inverse modulaire : \(a\) inversible mod \(n\) \(\iff a\wedge n=1\).
Fermat : \(a^{p-1}\equiv1\pmod p\) si \(p\nmid a\). Euler : \(a^{\varphi(n)}\equiv1\pmod n\) si \(a\wedge n=1\).
Restes chinois : modules deux à deux premiers entre eux \(\implies\) solution unique modulo \(N=\prod n_i\), donnée par \(x\equiv\sum a_iN_iM_i\) avec \(N_i=\frac{N}{n_i}\) et \(M_i=N_i^{-1}\bmod n_i\).
Analyse¶
Limites usuelles¶
Croissances comparées : \(\ln x \ll x^\alpha \ll e^x\) en \(+\infty\), et \(x^\alpha\ln x\to0\) en \(0^+\).
Dérivées¶
| \(f\) | \(f'\) | \(f\) | \(f'\) |
|---|---|---|---|
| \(x^n\) | \(nx^{n-1}\) | \(e^x\) | \(e^x\) |
| \(\sqrt x\) | \(\frac{1}{2\sqrt x}\) | \(\ln x\) | \(\frac1x\) |
| \(\frac1x\) | \(-\frac{1}{x^2}\) | \(\sin x\) | \(\cos x\) |
| \(a^x\) | \(\ln a\cdot a^x\) | \(\cos x\) | \(-\sin x\) |
| \(\arctan x\) | \(\frac{1}{1+x^2}\) | \(\tan x\) | \(1+\tan^2x\) |
Composées : \((u^n)'=nu'u^{n-1}\), \((\sqrt u)'=\frac{u'}{2\sqrt u}\), \((e^u)'=u'e^u\), \((\ln u)'=\frac{u'}{u}\).
TAF : \(f(b)-f(a)=f'(c)(b-a)\). IAF : \(|f'|\leqslant M \implies |f(b)-f(a)|\leqslant M|b-a|\).
Primitives¶
| \(f\) | \(\int f\) | \(f\) | \(\int f\) |
|---|---|---|---|
| \(x^n\), \(n\neq-1\) | \(\frac{x^{n+1}}{n+1}\) | \(e^x\) | \(e^x\) |
| \(\frac1x\) | \(\ln\lvert x\rvert\) | \(\cos x\) | \(\sin x\) |
| \(\frac{1}{\sqrt x}\) | \(2\sqrt x\) | \(\sin x\) | \(-\cos x\) (signe !) |
| \(\frac{1}{1+x^2}\) | \(\arctan x\) | \(\frac{1}{\cos^2 x}\) | \(\tan x\) |
Formes composées : \(\int u'u^n = \frac{u^{n+1}}{n+1}\), \(\int\frac{u'}{u}=\ln|u|\), \(\int u'e^u = e^u\), \(\int\frac{u'}{\sqrt u}=2\sqrt u\).
Intégration¶
Par parties : \(\displaystyle\int_a^b u'v = \big[uv\big]_a^b - \int_a^b uv'\)
Priorité de dérivation : Log, Inv. trigo, Algébrique, Trigo, Exp.
Changement de variable : \(\displaystyle\int_\alpha^\beta f(\varphi(t))\varphi'(t)\,\mathrm{d}t = \int_{\varphi(\alpha)}^{\varphi(\beta)}f(x)\,\mathrm{d}x\)
Intégrales de Riemann : \(\displaystyle\int_1^{+\infty}\frac{\mathrm{d}x}{x^\alpha}\) converge \(\iff \alpha>1\) ; \(\displaystyle\int_0^1\frac{\mathrm{d}x}{x^\alpha}\) converge \(\iff \alpha<1\).
Trigonométrie¶
Linéarisation : \(\cos^2 a = \frac{1+\cos2a}{2}\), \(\sin^2a = \frac{1-\cos2a}{2}\).
Équations : \(\cos x=\cos a \iff x=\pm a+2k\pi\) ; \(\sin x = \sin a \iff x = a+2k\pi\) ou \(x=\pi-a+2k\pi\).
Complexes¶
Moivre : \((\cos\theta+i\sin\theta)^n = \cos n\theta+i\sin n\theta\)
Euler : \(\cos\theta = \dfrac{e^{i\theta}+e^{-i\theta}}{2}\), \(\sin\theta=\dfrac{e^{i\theta}-e^{-i\theta}}{2i}\)
Racines \(n\)-ièmes de \(\rho e^{i\varphi}\) : \(z_k = \rho^{1/n}e^{i(\varphi+2k\pi)/n}\), \(k=0,\dots,n-1\).
Probabilités¶
Axiomes et conséquences¶
Conditionnement¶
Probabilités totales : \(\displaystyle P(B) = \sum_i P(B\mid A_i)P(A_i)\)
Bayes :
Indépendance : \(P(A\cap B)=P(A)P(B)\). Et \(P(\text{au moins un}) = 1-\prod(1-p_i)\).
Variables aléatoires¶
Tchebychev : \(P(|X-\mu|\geqslant\varepsilon)\leqslant\dfrac{\sigma^2}{\varepsilon^2}\)
Lois discrètes¶
| Loi | \(P(X=k)\) | \(\mathbb{E}\) | \(\operatorname{V}\) |
|---|---|---|---|
| Uniforme \(\{1..n\}\) | \(\frac1n\) | \(\frac{n+1}{2}\) | \(\frac{n^2-1}{12}\) |
| Bernoulli \(\mathcal{B}(p)\) | \(p\), \(1-p\) | \(p\) | \(pq\) |
| Binomiale \(\mathcal{B}(n,p)\) | \(\binom nk p^kq^{n-k}\) | \(np\) | \(npq\) |
| Géométrique \(\mathcal{G}(p)\) | \(q^{k-1}p\) | \(\frac1p\) | \(\frac{q}{p^2}\) |
| Hypergéom. | \(\frac{\binom Kk\binom{N-K}{n-k}}{\binom Nn}\) | \(n\frac KN\) | \(n\frac KN\frac{N-K}N\frac{N-n}{N-1}\) |
| Poisson \(\mathcal{P}(\lambda)\) | \(e^{-\lambda}\frac{\lambda^k}{k!}\) | \(\lambda\) | \(\lambda\) |
(avec \(q=1-p\))
Lois continues¶
| Loi | Densité | \(\mathbb{E}\) | \(\operatorname{V}\) |
|---|---|---|---|
| \(\mathcal{U}([a;b])\) | \(\frac{1}{b-a}\) | \(\frac{a+b}{2}\) | \(\frac{(b-a)^2}{12}\) |
| \(\mathcal{E}(\lambda)\) | \(\lambda e^{-\lambda x}\) | \(\frac1\lambda\) | \(\frac{1}{\lambda^2}\) |
| \(\mathcal{N}(\mu,\sigma^2)\) | \(\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}\) | \(\mu\) | \(\sigma^2\) |
Exponentielle : \(F(x)=1-e^{-\lambda x}\), médiane \(\frac{\ln2}{\lambda}\), sans mémoire.
Normale : \(Z=\frac{X-\mu}{\sigma}\sim\mathcal{N}(0,1)\) et \(\Phi(-z)=1-\Phi(z)\).
Règle 68-95-99,7 :
| \(z\) | 1 | 1,645 | 1,96 | 2 | 2,576 | 3 |
|---|---|---|---|---|---|---|
| \(\Phi(z)\) | 0,8413 | 0,9500 | 0,9750 | 0,9772 | 0,9950 | 0,9987 |
| \(P(\lvert Z\rvert\leqslant z)\) | 68,3 % | 90 % | 95 % | 95,4 % | 99 % | 99,7 % |
Couples et vecteurs¶
Indépendantes \(\implies\) \(\operatorname{Cov}=0\). Réciproque fausse, sauf dans le cas gaussien.
Théorèmes limites¶
LGN : \(\overline X_n \to \mu\). TCL : \(\dfrac{\overline X_n-\mu}{\sigma/\sqrt n}\to\mathcal{N}(0,1)\).
Approximation binomiale : \(\mathcal{B}(n,p)\approx\mathcal{N}(np,npq)\) si \(np\geqslant5\) et \(nq\geqslant5\), avec correction de continuité de \(0{,}5\).
Intervalle de confiance à 95 % : \(\overline X \pm 1{,}96\dfrac{\sigma}{\sqrt n}\)
Pour une proportion : \(\hat p \pm \dfrac{0{,}98}{\sqrt n}\), soit \(\approx\pm3\%\) pour \(n=1000\).
Modélisation¶
Réécritures numériquement stables¶
| Dangereux | Stable |
|---|---|
| \(\sqrt{x+1}-\sqrt x\) | \(\frac{1}{\sqrt{x+1}+\sqrt x}\) |
| \(1-\cos x\), \(x\) petit | \(2\sin^2\frac x2\) |
| \(\ln(1+x)\), \(x\) petit | log1p(x) |
| \(e^x-1\), \(x\) petit | expm1(x) |
| \(\frac{a+b}{2}\) | \(a+\frac{b-a}{2}\) |
| Petite racine de \(ax^2+bx+c\) | \(\frac{c}{a\,x_{\text{grande}}}\) |
| \(e^{-x}\), \(x\) grand, par la série | \(\frac{1}{e^{x}}\) |
Vitesses de convergence¶
| Méthode | Erreur |
|---|---|
| Rectangles | \(O(h)\) |
| Trapèzes | \(O(h^2)\) |
| Simpson | \(O(h^4)\) |
| Monte-Carlo | \(O(n^{-1/2})\), quelle que soit la dimension |
| Dichotomie | \(\times\frac12\) par itération |
| Newton | décimales doublées par itération |
Dimensionnement¶
File M/M/1 : \(W = \dfrac{\rho}{\mu(1-\rho)}\) avec \(\rho=\frac\lambda\mu<1\).
File M/G/1 (Pollaczek-Khintchine) : \(W = \dfrac{\rho}{\mu(1-\rho)}\cdot\dfrac{1+c_s^2}{2}\)