How can I correctly write and display df and f' in a recent post?

  • Context: MHB 
  • Thread starter Thread starter Math Amateur
  • Start date Start date
Click For Summary
SUMMARY

This discussion focuses on the correct formatting of mathematical expressions in LaTeX, specifically for the derivatives df and f'. The user Peter encountered issues with rendering the expressions due to improper syntax, such as using parentheses instead of braces and inserting color codes. The correct forms provided include df(h) = (df_1(h), \ldots, df_m(h)) and f' (p) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\ \vdots \\ f'_n (p) \end{bmatrix}. The discussion highlights the importance of using the correct LaTeX commands for proper display.

PREREQUISITES
  • Understanding of LaTeX syntax for mathematical expressions
  • Familiarity with derivatives and their notation
  • Knowledge of matrix representation in LaTeX
  • Experience with troubleshooting rendering issues in online forums
NEXT STEPS
  • Research LaTeX commands for matrices and vectors
  • Learn about common LaTeX rendering issues and their solutions
  • Explore advanced LaTeX formatting techniques for mathematical documents
  • Practice writing and displaying complex mathematical expressions in LaTeX
USEFUL FOR

Mathematicians, educators, students, and anyone involved in writing or displaying mathematical content using LaTeX.

Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
In a recent post i tried to write/state the following ... ... ...

I am most interested in how/why we know that

$$\text{df} (h) = (
\text{df}_1 (h), / ... / ... / ... /
\text{df}_m (h) )
$$


... and also that ...$$f' (p) = \begin(bmatrix) f'_1 (p) \\ f'_2 (p) \\ . \\ . \\ . \\ f'_n (p) \end(bmatrix) $$



... ... ...
BUT ...... the above did not post and display correctly ...
... ... can someone inform me of the errors in the above ...Peter
 
Physics news on Phys.org
First one didn't work because you inserted colour at several places.

Code:
$$\text{df} (h) =  ( [FONT=Tahoma]\text{df}_1 (h), / ... / ... / ... /  [FONT=Tahoma][FONT=Tahoma]\text{df}_m (h) )$$[LEFT][FONT=Tahoma][LEFT][FONT=Tahoma]

You wanted $df(h) = (df_1(h), \ldots, df_m(h))$ which is given by

df(h) = (df_1(h), \ldots, df_m(h))

I used \ldots for the dotting since that's more natural-looking.

The second one didn't render because you used ( instead of {. This

Code:
\displaystyle f' (p) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\ . \\ . \\ . \\ f'_n (p) \end{bmatrix}

$\displaystyle f' (p) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\ . \\ . \\ . \\ f'_m (p) \end{bmatrix}$

HTML:
$\displaystyle\mathbf{f}' (\mathbf{p}) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\  \vdots \\ f'_n (p) \end{bmatrix}$

$\displaystyle\mathbf{f}' (\mathbf{p}) = \begin{bmatrix} f'_1 (\mathbf{p}) \\ f'_2 (\mathbf{p}) \\ \vdots \\ f'_m (\mathbf{p}) \end{bmatrix}$

Using \vdots for the $\vdots$ and \mathbf{p} to write $\mathbf{p}$
 
MountEvariste said:
First one didn't work because you inserted colour at several places.

Code:
$$\text{df} (h) =  ( [FONT=Tahoma]\text{df}_1 (h), / ... / ... / ... /  [FONT=Tahoma][FONT=Tahoma]\text{df}_m (h) )$$[LEFT][FONT=Tahoma][LEFT][FONT=Tahoma]

You wanted $df(h) = (df_1(h), \ldots, df_m(h))$ which is given by
I used \ldots for the dotting since that's more natural-looking.

The second one didn't render because you used ( instead of {. This

Code:
\displaystyle f' (p) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\ . \\ . \\ . \\ f'_n (p) \end{bmatrix}

$\displaystyle f' (p) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\ . \\ . \\ . \\ f'_m (p) \end{bmatrix}$

HTML:
$\displaystyle\mathbf{f}' (\mathbf{p}) = \begin{bmatrix} f'_1 (p) \\ f'_2 (p) \\  \vdots \\ f'_n (p) \end{bmatrix}$

$\displaystyle\mathbf{f}' (\mathbf{p}) = \begin{bmatrix} f'_1 (\mathbf{p}) \\ f'_2 (\mathbf{p}) \\ \vdots \\ f'_m (\mathbf{p}) \end{bmatrix}$

Using \vdots for the $\vdots$ and \mathbf{p} to write $\mathbf{p}$

Thanks for the help MountEvariste ...

Really appreciate your help ...

No idea how the colour codes got there ...

Peter
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K