General ⇒ vertical lines - evaluating derivatives....
vertical lines - evaluating derivatives....
This may be a little hard to explain, but I am basically trying to write down a couple of derivatives that are evaluated at certain points, and to denote this I want to use vertical lines and underscores. Here is my code:
\bar{\sigma}\left(\frac{d^2 \bar{h}}{d \bar{x}^2}\left|_{\bar{x}=0} - \frac{d^2 \bar{h}}{d \bar{x}^2}\right|_{\bar{x}=1}\right)
As you can see I have tried to use \left| and \right| followed by _{}. The rhs prints fine, but the x = 0 on the lhs prints half way up the derivative instead of at the bottom where I want it....
Can anyone help?
Thanks,
L
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
vertical lines - evaluating derivatives....
use \left and \right in correct pairs. You can use \right| together with \left. etc. With your example:
Code: Select all
\bar{\sigma}\left(\left.\frac{d^2 \bar{h}}{d \bar{x}^2}\right|_{\bar{x}=0} -\left.\frac{d^2 \bar{h}}{d \bar{x}^2}\right|_{\bar{x}=1}\right)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical lines - evaluating derivatives....
Code: Select all
\[\bar{\sigma}\left(\frac{d^2 \bar{h}}{d \bar{x}^2}\,\bigg|_{\bar{x}=0} - \frac{d^2 \bar{h}}{d \bar{x}^2}\,\bigg|_{\bar{x}=1}\right)\]
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical lines - evaluating derivatives....
