[Tex/LaTex] Widetilde and prime (derivative) position

amsmathmath-modevertical alignment

I need to write something like {\widetilde f}' in my text, but the result looks rather ugly since the prime (derivative) sign is too low. It looks like \widetilde{f'}.

Is there any way to do this properly?

Best Answer

I'd avoid \widetilde, particularly above an “f”. A decoration (math accent) above a symbol is usually interpreted as a modifier of the symbol itself, so

$\tilde{f}'$

will be interpreted as “the derivative of f tilde”, rather than “tilde of the derivative of f”.

Should you feel that an ambiguity could arise, it's probably better to add parentheses

$(\tilde{f})'$

rather than raising the prime that could be mistaken for some “tilde prime”.

Below I show some examples.

enter image description here

As you see, raising the prime is not the answer.