Maths Example with Mathjax

Below is an example of maths using mathjax.

Any page needing maths should start with the frontmatter:

usemathjax: true
\[\begin{align*} y = y(x,t) &= A e^{i\theta} \\ &= A (\cos \theta + i \sin \theta) \\ &= A (\cos(kx - \omega t) + i \sin(kx - \omega t)) \\ &= A\cos(kx - \omega t) + i A\sin(kx - \omega t) \\ &= A\cos \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) + i A\sin \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) \\ &= A\cos \frac{2\pi}{\lambda} (x - v t) + i A\sin \frac{2\pi}{\lambda} (x - v t) \end{align*}\]

Inline maths can be written with the \\( and \\) characters, producing inline maths such as \(\delta(t) \xrightarrow{\mathscr{F}} 1\).

The above is accomplished with thanks to Alan Duan and Zichen Vincent Zhang.

تعریف

مشتق: شیب خط مماس بر تابع f در نقطه a
\[\large { \lim_{h \to 0} {f(a+h) - f(a) \over h} }\] \[\large { \lim_{x \to a} {f(x) - f(a) \over x - a} }\]
مثال: رابطه‌ای برای مشتق تابع \(y = x^2 + 4\) بیابید
\[\begin{align*} \lim_{x \to a} {f(x)-f(a) \over x-a} = \lim_{x \to a} {(x^2+4)-(a^2+4) \over x-a} = \lim_{x \to a} {x^2-a^2 \over x-a} = \\ \lim_{x \to a} {(x-a)(x+a) \over x-a} = \lim_{x \to a} (x+a) = 2a \end{align*}\]