Example Data
A simple example demonstrating multiplication. Click Load example to insert these values.
| Matrix A (2 × 2) | ||
|---|---|---|
| 1+2i | 3-4i | |
| -2i | 5 | |
| Matrix B (2 × 2) | ||
|---|---|---|
| 2-i | -1+3i | |
| 4 | i | |
Formula Used
For two matrices A of size m × n and B of size n × p, the product C = A × B is an m × p matrix where
the entry at row i, column j is:
Cij = Σnk=1 Aik · Bkj
With complex entries, multiplication uses
(a + bi)(c + di) = (ac − bd) + (ad + bc)i, and addition is element-wise on real and imaginary parts.
How to Use
- Choose sizes so columns of A equal rows of B.
- Enter complex numbers like
3+2i,-4i,5, ori. - Optionally enable details to see every dot-product term.
- Click Compute A × B to generate the result matrix.
- Use Download Result CSV or Save Result as PDF for exports.
FAQs
Use
a+bi, a-bi, bi, -bi, i, -i, or real numbers like 7.Matrix multiplication requires pairwise products along shared dimensions. Otherwise, dot products are undefined.
Choose 0–10 places using the Decimal places control. Exact arithmetic rounds at display time.
Yes. Use Regenerate grids to change sizes, or keep sizes unchanged to reuse inputs.
Check spacing and format. Remove parentheses and ensure only one
i appears in each entry.Use the CSV download for quick imports into Excel, Sheets, or similar tools.
Dimension Rules & Compatibility (Current Selection)
| A size | 2 × 2 |
|---|---|
| B size | 2 × 2 |
| Compatibility | Compatible: A columns equal B rows |
| Result size | 2 × 2 |
Accepted Input Patterns & Examples
| Pattern | Examples | Notes |
|---|---|---|
a+bi, a-bi | 3+2i, -1-4i | Decimals allowed: 2.75-0.5i |
bi, -bi | 7i, -0.25i | i equals 1i, -i equals -1i |
| Real only | 5, -12.3 | Imaginary part is zero |
| Spacing / parentheses | (3+2i), 3 + 2i | Sanitized automatically |
Arithmetic Identities Used
| Operation | Identity |
|---|---|
| Addition | (a+bi)+(c+di)=(a+c)+(b+d)i |
| Multiplication | (a+bi)(c+di)=(ac-bd)+(ad+bc)i |
| Conjugate | \overline{a+bi}=a-bi |
| Modulus | |a+bi|=\sqrt{a^2+b^2} |
Worked 2 × 2 Example (Computed)
Using the example matrices above, the product C = A × B is:
| 16 - 13i | -3 + 4i |
| 18 - 4i | 6 + 7i |