Four notations coexist. Leibniz fractions are the most explicit, primes the most compact, dots are physics shorthand for time derivatives, and D is the operator form. In LaTeX a prime is literally an apostrophe; \prime exists but is rarely needed.
All ways to write it
\frac{dy}{dx}LeibnizNo package needed\frac{d^2 y}{dx^2}second derivativeNo package neededf'(x)Lagrange prime (just an apostrophe)No package neededf''(x)second derivativeNo package needed\dot{x}Newton dot, time derivativeNo package needed\ddot{x}second time derivativeNo package neededD_x fEuler operatorNo package needed
Example
m\ddot{x} + c\dot{x} + kx = 0A damped oscillator in Newton notation.
Questions
Why does f^\prime look wrong?
The superscript position is already built into the apostrophe form. Write f' and LaTeX converts it to a correctly placed prime.
Using derivatives in Confluence
Confluence Cloud has no built-in LaTeX. With LaTeX Math for Confluence you add a math macro to any page, type \frac{dy}{dx} and it renders inline or as a block, with a live preview while you edit. Every command on this page renders there without extra packages.