> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/fr/mathematiques/04-matrices.md).

# Matrices

## environnements de matrices amsmath

Le `amsmath` le paquet fournit des commandes pour composer des matrices avec différents délimiteurs. Une fois que vous avez chargé `\usepackage{amsmath}` dans votre préambule, vous pouvez utiliser les environnements suivants dans vos environnements mathématiques :

| Type                                       | Balisage LaTeX                                        | S’affiche comme                                     |
| ------------------------------------------ | ----------------------------------------------------- | --------------------------------------------------- |
| Simple                                     | `\begin{matrix} 1 & 2 & 3\\ a & b & c \end{matrix}`   | $$\begin{matrix}1 & 2 & 3\a & b & c\end{matrix}$$   |
| <p>Parenthèses ;<br>parenthèses rondes</p> | `\begin{pmatrix} 1 & 2 & 3\\ a & b & c \end{pmatrix}` | $$\begin{pmatrix}1 & 2 & 3\a & b & c\end{pmatrix}$$ |
| <p>Crochets ;<br>crochets carrés</p>       | `\begin{bmatrix} 1 & 2 & 3\\ a & b & c \end{bmatrix}` | $$\begin{bmatrix}1 & 2 & 3\a & b & c\end{bmatrix}$$ |
| <p>Accolades ;<br>accolades</p>            | `\begin{Bmatrix} 1 & 2 & 3\\ a & b & c \end{Bmatrix}` | $$\begin{Bmatrix}1 & 2 & 3\a & b & c\end{Bmatrix}$$ |
| Barres verticales                          | `\begin{vmatrix} 1 & 2 & 3\\ a & b & c \end{vmatrix}` | $$\begin{vmatrix}1 & 2 & 3\a & b & c\end{vmatrix}$$ |
| Barres verticales doubles                  | `\begin{Vmatrix} 1 & 2 & 3\\ a & b & c \end{Vmatrix}` | $$\begin{Vmatrix}1 & 2 & 3\a & b & c\end{Vmatrix}$$ |

Si vous devez créer des matrices avec différents [délimiteurs](/latex/fr/mathematiques/03-brackets-and-parentheses.md), vous pouvez les ajouter manuellement à une matrice simple `matrice`. Par exemple :

| Balisage LaTeX                                                                 | S’affiche comme                                                            |
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| `\left\lceil \begin{matrix} 1 & 2 & 3\\ a & b & c \end{matrix} \right\rceil`   | $$\left\lceil\begin{matrix}1 & 2 & 3\a & b & c\end{matrix}\right\rceil$$   |
| `\left\langle \begin{matrix} 1 & 2 & 3\\ a & b & c \end{matrix} \right\rvert`  | $$\left\langle\begin{matrix}1 & 2 & 3\a & b & c\end{matrix}\right\rvert$$  |
| `\left\langle \begin{matrix} 1 & 2 & 3\\ a & b & c \end{matrix} \right\rangle` | $$\left\langle\begin{matrix}1 & 2 & 3\a & b & c\end{matrix}\right\rangle$$ |

## Matrices en ligne

Lors de la composition de formules en ligne, les `matrice` environnements ci-dessus peuvent paraître trop grands. Il peut être préférable d’utiliser `smallmatrix` dans ce type de situation, bien que vous deviez fournir vous-même votre propre [délimiteurs](/latex/fr/mathematiques/03-brackets-and-parentheses.md).

```latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent Essai de composition d’une matrice en ligne ici :
 $\begin{pmatrix}
  a & b\\
  c & d
\end{pmatrix}$,
mais elle paraît trop grande, alors essayons
$\big(\begin{smallmatrix}
  a & b\\
  c & d
\end{smallmatrix}\big)$
à la place.
\end{document}
```

[Ouvrez cet `smallmatrix` exemple dans Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=amsmath+matrix+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cnoindent+Trying+to+typeset+an+inline+matrix+here%3A%0A+%24%5Cbegin%7Bpmatrix%7D%0A++a+%26+b%5C%5C+%0A++c+%26+d%0A%5Cend%7Bpmatrix%7D%24%2C++%0Abut+it+looks+too+big%2C+so+let%27s+try+%0A%24%5Cbig%28%5Cbegin%7Bsmallmatrix%7D%0A++a+%26+b%5C%5C%0A++c+%26+d%0A%5Cend%7Bsmallmatrix%7D%5Cbig%29%24+%0Ainstead.%0A%5Cend%7Bdocument%7D)

L’image suivante montre le résultat produit par l’exemple ci-dessus :

![Amsmatrix.png](/files/f2afdee1d10ca566137744d25e6b1ffce76981ac)

Le `mathtools` le paquet fournit `psmallmatrix`, `bsmallmatrix` des environnements etc. pour plus de commodité.

## Lectures complémentaires

* [Expressions mathématiques](/latex/fr/mathematiques/01-mathematical-expressions.md)
* [Crochets et parenthèses](/latex/fr/mathematiques/03-brackets-and-parentheses.md)
* [Aligner les équations avec amsmath](/latex/fr/mathematiques/06-aligning-equations-with-amsmath.md)
* [Style affiché en mode math](/latex/fr/mathematiques/10-display-style-in-math-mode.md)
* [L'introduction pas si courte à LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)
* [documentation du paquet amsmath](http://texdoc.net/pkg/amsmath)
* [documentation du paquet mathtools](http://texdoc.net/pkg/mathtools)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/fr/mathematiques/04-matrices.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
