TransWikia.com

How to make a matrix that had diffrentation without functions

Mathematica Asked by Najm Abid on June 4, 2021

I want to make a matrix in Mathematica that looks like this:

enter image description here

Any idea on how I can do this?

One Answer

One possiblity is to define the function d as:

d = {{D[#, x], 0}, {0, D[#, y]}, {D[#, x], D[#, y]}} &

To apply this operator to a particular function:

f[x_, y_] := x^2 + Sin[y]

Then:

d[f[x, y]]

{{2 x, 0}, {0, Cos[y]}, {2 x, Cos[y]}}

Correct answer by bill s on June 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP