Hi there,
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
General ⇒ vertical lines - evaluating derivatives....
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
vertical lines - evaluating derivatives....
Hi newlou,
use \left and \right in correct pairs. You can use \right| together with \left. etc. With your example:
Stefan
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....
There is a more convenient way to adapt such delimiters in their size. Modify your code as follows.
These are TeX primitives, but they also work with the (preferably to use) amsmath package.
Best regards
Thorsten¹
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¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical lines - evaluating derivatives....
Thanks, that's very helpful 
