# Thread:

1. ## hermitian matrix over C

Do anyone has an example of nxn hermitian matrix with complex entries which has repeated eigenvalues?
If can make the n as small as possible. Thank you

Sorry for the mistake I made before in my question.

2. Originally Posted by guin
Do anyone has an example of nxn hermitian matrix over complex which has n distinct eigenvalues?
If can make the n as small as possible. Thank you
If you want a simple one:
$\displaystyle \left [ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 5 \end{array} \right ]$

You can add window dressing to it, but it fits what you asked for. Did you want one less "trivial" to work on yourself?

-Dan

3. Although the question has been already solved by topsquark , I'd like to add that $D=\textrm{diag}(\lambda_1,\ldots,\lambda_n)\in\mat hbb{C}^{n\times n}$ is hermitian iff $\lambda_i\in\mathbb{R}$ for all $i=1,\ldots,n$. So, all diagonal real matrices with $\lambda_i\neq \lambda_j$ for all $i\neq j$ are hermitian and have $n$ distinct eigenvalues.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 7, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9638739824295044, "perplexity_flag": "middle"}