Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a question about a transformation of a matrix. Lets say we have the following matrix

$ M = \left[ {\begin{array}{cc} 4 & 3 \\ 4 & 3 \\ \end{array} } \right] $

Then I want to transform all numbers in the matrix with the following function:

$f(x) = (x - 4)^2 + 2x -4$

What would be the correct notation for this?

share|cite|improve this question
up vote 4 down vote accepted

Maybe I don't understand your question, but: what's wrong with this?

$$ \begin{pmatrix} f(4) & f(3) \\\ f(4) & f(3) \end{pmatrix} $$

More generally, if you have a matrix $(a^i_j)$, you could write the resulting matrix as $(f(a^i_j))$.

share|cite|improve this answer
Okay thanks, basically that's what I had I my head only I wasn't to sure if it was the proper notation xD – Timo Willemsen Nov 17 '10 at 10:35

Could use the "Hadamard Product"... I don't know whether there is a consistently accepted notation for such a product, however a few examples here and on Wikipedia seem to use an open circle.

In that sense, your expression would take the form

$(M-4O)\circ(M-4O)+2M-4O$ where $O= \left( \begin{array} {cc} 1 &1 \\ 1&1 \end{array} \right) $

In MATLAB, use .* for element-wise multiplication.

There are probably other possibilities.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.