[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-348116-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-348116-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","the-matrix-cookbook-version-november-15-2012","The Matrix Cookbook - Version November 15, 2012","","The Matrix Cookbook is a desktop reference that compiles identities, approximations, inequalities, and relations about matrices and related mathematical objects. It provides organized coverage across fundamentals (trace, determinant, special 2x2 case), derivative rules (determinants, inverses, eigenvalues, matrix/vector/scalar forms, norms), inverses and generalized/pseudo inverses, complex matrices, and solution methods through decompositions (LU, LDM, LDL, SVD, triangular). It also gathers statistics, multivariate distributions, Gaussian properties, special matrices, and key functions/operators, with ongoing versioned updates, references, acknowledgements, and an error-correction and suggestion process.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/the-matrix-cookbook-version-november-15-2012/348116/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/the-matrix-cookbook-version-november-15-2012/348116.png","ImageObject",300,407,{"name":42,"@type":43},"\tJames","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-09-22",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",16,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What kind of information does The Matrix Cookbook collect about matrices?","Question",{"text":63,"@type":64},"It gathers identities, approximations, inequalities, and relations involving matrices and topics related to them, organized for quick desktop reference use.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Does the book include formulas for differentiation involving matrices?",{"text":68,"@type":64},"Yes. It contains sections on derivatives of determinants, inverses, eigenvalues, and derivatives for matrices, vectors, scalar forms, traces, and different kinds of norms.",{"name":70,"@type":61,"acceptedAnswer":71},"What matrix techniques or decompositions are covered?",{"text":72,"@type":64},"It includes solutions for linear equations and key decomposition methods such as eigenvalue/eigenvector analysis, singular value decomposition, triangular decomposition, and LU, LDM, and LDL decompositions.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},348116,1790461148,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":111,"preview_urls":147},2336474466412,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","The Matrix Cookbook  \n[ [http://matrixcookbook. com](http://matrixcookbook. com) ]  \nKaare Brandt Petersen  \nMichael Syskind Pedersen Version: November 15, 2012  \nIntroduction  \nWhat is this? These pages are a collection of facts (identities, approximations, inequalities, relations, ...) about matrices and matters relating to them. It is collected in this form for the convenience of anyone who wants a quick desktop reference .  \nDisclaimer: The identities, approximations and relations presented here were obviously not invented but collected, borrowed and copied from a large amount of sources. These sources include similar but shorter notes found on the internet and appendices in books-see the references for a full list.  \nErrors: Very likely there are errors, typos, and mistakes for which we apologize and would be grateful to receive corrections at [cookbook@2302.dk](cookbook@2302.dk).  \nIts ongoing: The project of keeping a large repository of relations involving matrices is naturally ongoing and the version will be apparent from the date in the header.  \nSuggestions: Your suggestion for additional content or elaboration of some topics is most welcome [acookbook@2302.dk](acookbook@2302.dk).  \nKeywords: Matrix algebra, matrix relations, matrix identities, derivative of determinant, derivative of inverse matrix, di􀀋erentiate a matrix.  \nAcknowledgements: We would like to thank the following for contributions and suggestions: Bill Baxter, Brian Templeton, Christian Rish􀀜j, Christian Schr􀁿oppel, Dan Boley, Douglas L. Theobald, Esben Hoegh-Rasmussen, Evripidis Karseras, Georg Martius, Glynne Casteel, Jan Larsen, Jun Bin Gao, J􀁿urgen Struckmeier, Kamil Dedecius, Karim T. Abou-Moustafa, Korbinian Strimmer, Lars Christiansen, Lars Kai Hansen, Leland Wilkinson, Liguo He, Loic Thibaut, Markus Froeb, Michael Hubatka, Miguel Bar~ao, Ole Winther, Pavel Sakov, Stephan Hattinger, Troels Pedersen, Vasile Sima, Vincent Rabaud, Zhaoshui He. We would also like thank The Oticon Foundation for funding our PhD studies.  \nContents  \n1 Basics 6  \n1.1 Trace .................................. 6  \n1.2 Determinant .............................. 6  \n1.3 The Special Case 2x2 ......................... 7  \n2 Derivatives 8  \n2.1 Derivatives of a Determinant .................... 8  \n2.2 Derivatives of an Inverse ....................... 9  \n2.3 Derivatives of Eigenvalues ...................... 10  \n2.4 Derivatives of Matrices, Vectors and Scalar Forms ........ 10  \n2.5 Derivatives of Traces ......................... 12  \n2.6 Derivatives of vector norms ..................... 14  \n2.7 Derivatives of matrix norms ..................... 14  \n2.8 Derivatives of Structured Matrices ................. 14  \n3 Inverses 17  \n3.1 Basic .................................. 17  \n3.2 Exact Relations ............................ 18  \n3.3 Implication on Inverses ........................ 20  \n3.4 Approximations ............................ 20  \n3.5 Generalized Inverse .......................... 21  \n3.6 Pseudo Inverse ............................ 21  \n4 Complex Matrices 24  \n4.1 Complex Derivatives ......................... 24  \n4.2 Higher order and non-linear derivatives ............... 26  \n4.3 Inverse of complex sum ....................... 27  \n5 Solutions and Decompositions 28  \n5.1 Solutions to linear equations ..................... 28  \n5.2 Eigenvalues and Eigenvectors .................... 30  \n5.3 Singular Value Decomposition .................... 31  \n5.4 Triangular Decomposition ...................... 32  \n5.5 LU decomposition .......................... 32  \n5.6 LDM decomposition ......................... 33  \n5.7 LDL decompositions ......................... 33  \n6 Statistics and Probability 34  \n6.1 De􀀌nition of Moments ........................ 34  \n6.2 Expectation of Linear Combinations ................ 35  \n6.3 Weighted Scalar Variable ...................... 36  \n7 Multivariate Distributions 37  \n7.1 Cauchy ................................ 37  \n7.2 Dirichlet ...........","cbCaih9QVsSwmYhe","https://ap.wps.com/l/cbCaih9QVsSwmYhe","pdf",692685,72,"English","# Contents\n## Basics\n## Derivatives\n## Inverses\n## Complex Matrices\n## Solutions and Decompositions\n## Statistics and Probability\n## Multivariate Distributions\n## Gaussians\n## Special Matrices\n## Functions and Operators\n## One-dimensional Results\n## Proofs and Details","[{\"question\":\"What kind of information does The Matrix Cookbook collect about matrices?\",\"answer\":\"It gathers identities, approximations, inequalities, and relations involving matrices and topics related to them, organized for quick desktop reference use.\"},{\"question\":\"Does the book include formulas for differentiation involving matrices?\",\"answer\":\"Yes. It contains sections on derivatives of determinants, inverses, eigenvalues, and derivatives for matrices, vectors, scalar forms, traces, and different kinds of norms.\"},{\"question\":\"What matrix techniques or decompositions are covered?\",\"answer\":\"It includes solutions for linear equations and key decomposition methods such as eigenvalue/eigenvector analysis, singular value decomposition, triangular decomposition, and LU, LDM, and LDL decompositions.\"}]","The Matrix Cookbook - Version November 15, 2012 | PDF",1790071207,181,[148,152,156,160,164,168,172,176],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/b9fbafdec6f4fd09741db73494259eb0.webp",983,1390,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/e5815df244c18b55dcba63d3e0e1e80e.webp",982,1388,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/461c990ebe600ac81359c76f73fe4c4f.webp",981,1387,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/5da3e70cfbc81a5a06f6109319728b01.webp",980,1385,{"page_no":97,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/3c200084688833db138895b4cf045418.webp",979,1384,{"page_no":102,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/a522a39df8ef0e8d0aada04c656661ac.webp",978,1383,{"page_no":106,"url":173,"width":174,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/4ef60b35c6d96990166a682726673147.webp",977,1381,{"page_no":111,"url":177,"width":178,"height":179},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/7f5a600514adc64d90641a76e63e2b7a.webp",976,1380]