Confused about how to insert fractions into matrices

Click For Summary

Discussion Overview

The discussion revolves around the insertion of fractions into matrices using LaTeX, specifically addressing a participant's confusion regarding a matrix representation of derivatives in a mathematical context. The scope includes technical explanations and LaTeX formatting issues.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant presents a matrix involving partial derivatives but expresses uncertainty about an issue with the first line of the matrix.
  • Another participant does not identify a problem and questions the purpose of the notation "c'" in the context of the matrix.
  • A third participant clarifies that the matrix represents the derivative of a function mapping from ##\mathbb{R}^2## to ##\mathbb{R}^2##.
  • Another participant suggests removing blank lines in LaTeX code, stating they are not allowed in math mode and recommends using comments for spacing.
  • A later reply acknowledges the formatting tip provided.

Areas of Agreement / Disagreement

The discussion contains differing views on whether there is an issue with the matrix formatting, and while some participants provide suggestions, no consensus is reached regarding the initial concern.

Contextual Notes

Participants express uncertainty about specific LaTeX formatting rules and the implications of certain notations, which may depend on individual interpretations of mathematical conventions.

Eclair_de_XII
Messages
1,082
Reaction score
91
TL;DR
I keep trying to type in the code in the body of this message out, but the console returns this error message:

"! Missing \endgroup inserted.
<inserted text>
\endgroup
l.115 \frac
{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\"
[CODE highlight="10"]$$c'\begin{pmatrix}u \\ v \end{pmatrix}=\begin{pmatrix}\frac{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\\frac{\partial f^2}{\partial u} & \frac{\partial f^2}{\partial v}\end{pmatrix}

$$[/CODE]

There is a problem with the first line of the matrix, but I am not too sure what it is.
 
Physics news on Phys.org
I don't see what the problem is. Here is almost identical LaTeX code, with the only differences being I used inline delimiters rather than the standalone $ delimiters, and I didn't include what you have at the start of your first line -- i.e., c'\begin{…}. What's the purpose of c'? I thought at first it might be a comment, but that doesn't seem to be the case.

##\begin{pmatrix}u \\ v \end{pmatrix}=\begin{pmatrix} \frac{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\ \frac{\partial f^2}{\partial u} & \frac{\partial f^2}{\partial v} \end{pmatrix}##
 
It's the derivative of a function mapping ##\mathbb{R}^2## to ##\mathbb{R}^2##.
 
Remove the blank lines, they are not allowed in math mode. If you really want to create space in your code like this, use lines with a single comment (%).
 
Okay, thanks for the tip.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K