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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10350
- 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....
