目录

Obsidan之数学公式的输入

Obsidan之数学公式的输入

前言:

最近在学习专升本的高数,还想继续使用Obsidian作为笔记软件,但是苦于不知道数学公式怎么输入,于是有了这一篇文章😅😎

LaTex的语法

注意 :这里的数学公式都要在 $在这$ ,或者 $$在这$$

先说下怎么换行

$$
\begin{aligned}a=b+c\\b=c-a\\c=a+b \end{aligned}
$$

a

b + c b

c − a c

a + b \begin{aligned}a=b+c\b=c-a\c=a+b \end{aligned}

a

=

b

c

b

=

c

a

c

=

a

b

$$
\begin{matrix}已知y=\sqrt{x+3}&&(x>=0)\\求y的最大值是多少 \end{matrix}
$$

已 知 y

x + 3 ( x

= 0 ) 求 y 的 最 大 值 是 多 少 \begin{matrix}已知y=\sqrt{x+3}&&(x>=0)\求y的最大值是多少 \end{matrix}

y

=

x

3

y

(

x

=

0

)

$$
\begin{bmatrix}已知y=\sqrt{x+3}&&(x>=0)\\求y的最大值是多少 \end{bmatrix}
$$

[ 已 知 y

x + 3 ( x

= 0 ) 求 y 的 最 大 值 是 多 少 ] \begin{bmatrix}已知y=\sqrt{x+3}&&(x>=0)\求y的最大值是多少 \end{bmatrix}

[

y

=

x

3

y

(

x

=

0

)

]

$$
\begin{Bmatrix}已知y=\sqrt{x+3}&&(x>=0)\\求y的最大值是多少 \end{Bmatrix}
$$

{ 已 知 y

x + 3 ( x

= 0 ) 求 y 的 最 大 值 是 多 少 } \begin{Bmatrix}已知y=\sqrt{x+3}&&(x>=0)\求y的最大值是多少 \end{Bmatrix}

{

y

=

x

3

y

(

x

=

0

)

}

$$
 \begin{vmatrix}
 0&1&2\\
 3&4&5\\
 6&7&8\\
 \end{vmatrix}
 $$

∣ 0 1 2 3 4 5 6 7 8 ∣ \begin{vmatrix} 0&1&2\ 3&4&5\ 6&7&8\ \end{vmatrix}

0

3

6

1

4

7

2

5

8

$$
 \begin{Vmatrix}
 0&1&2\\
 3&4&5\\
 6&7&8\\
 \end{Vmatrix}
 $$

∥ 0 1 2 3 4 5 6 7 8 ∥ \begin{Vmatrix} 0&1&2\ 3&4&5\ 6&7&8\ \end{Vmatrix}

0

3

6

1

4

7

2

5

8

  • 希腊字母

α \alpha

α 、

β \beta

β 、

χ \chi

χ 、

Δ \Delta

Δ 、

Γ \Gamma

Γ 、

Θ \Theta

Θ 之类的

https://i-blog.csdnimg.cn/blog_migrate/946d1787b27af9498bf8f4c317ac68dd.jpeg

  • 一些数学结构

https://i-blog.csdnimg.cn/blog_migrate/c60993b2f9978c8c82db95df67594611.jpeg

  • 效果如下:
$\frac{123}{999}$、$\sqrt[n]{abc}$、$\frac{\sqrt{234}}{\sqrt[n]{abc}}$、$\underrightarrow{abc}$、$\overrightarrow{abc}$

123 999 \frac{123}{999}

9

9

9

1

2

3

a b c n \sqrt[n]{abc}

n

a

b

c

234 a b c n \frac{\sqrt{234}}{\sqrt[n]{abc}}

n

a

b

c

2

3

4

a b c → \underrightarrow{abc}

a

b

c

a b c → \overrightarrow{abc}

a

b

c

  • 插入定界符

https://i-blog.csdnimg.cn/blog_migrate/52255113ab4e1a6c184cff5462a73d77.png

  • 效果如下
$|$、$\|$、$\Uparrow$、$\{\}$

∣ |

∣ 、

∥ |

∥ 、

⇑ \Uparrow

⇑ 、

{ } {}

{

}

  • 插入一些可变大小的符号

https://i-blog.csdnimg.cn/blog_migrate/bd88e48bd461a5954c1f9ef36f98f3f9.png

效果如下:

$\sum$、$\int$、$\oint$、$\iint$、$\bigcap\bigcup\bigoplus\bigotimes$

∑ \sum

∑ 、

∫ \int

∫ 、

∮ \oint

∮ 、

∬ \iint

∬ 、

⋂ ⋃ ⨁ ⨂ \bigcap\bigcup\bigoplus\bigotimes

  • 插入一些函数名称

https://i-blog.csdnimg.cn/blog_migrate/a9f0a81b730567aa856e99e65b19f4d6.jpeg

效果如下:

$\sin$、$\cos$、$\tan$、$\log$、 $\tan(at-n\pi)$

sin ⁡ \sin

sin 、

cos ⁡ \cos

cos 、

tan ⁡ \tan

tan 、

log ⁡ \log

lo g 、

tan ⁡ ( a t − n π ) \tan(at-n\pi)

tan

(

a

t

n

π

)

  • 关系运算符和二进制运算符

https://i-blog.csdnimg.cn/blog_migrate/b48516575f0462664227f39009461534.jpeg

效果如下:

$\times$、$\ast$、$\div$、$\pm$、$\leq$、$\geq$、$\neq$、$\thickapprox$、$\sqsupset$、$\subset$、$\supseteq$、$\sqsupset$、$\sqsupseteq$、$\in$

× \times

× 、

∗ \ast

∗ 、

÷ \div

÷ 、

± \pm

± 、

≤ \leq

≤ 、

≥ \geq

≥ 、

≠ \neq

= 、

≈ \thickapprox

≈ 、

⊐ \sqsupset

⊐ 、

⊂ \subset

⊂ 、

⊇ \supseteq

⊇ 、

⊐ \sqsupset

⊐ 、

⊒ \sqsupseteq

⊒ 、

∈ \in

  • 插入箭头符号

https://i-blog.csdnimg.cn/blog_migrate/5e2fa51799d18bde086c09ff5a1786b7.jpeg

效果如下:

$\leftarrow$、$\Leftarrow$、$\nLeftarrow$、$\rightleftarrows$

← \leftarrow

← 、

⇐ \Leftarrow

⇐ 、

⇍ \nLeftarrow

⇍ 、

⇄ \rightleftarrows

  • 其他符号

https://i-blog.csdnimg.cn/blog_migrate/ae0e665796ea56a1c3c1634cd4de3b7c.jpeg

  • 效果如下
$\infty$、$\angle$、$\int$、$\triangle$、$\square$

∞ \infty

∞ 、

∠ \angle

∠ 、

∫ \int

∫ 、

△ \triangle

△ 、

□ \square

  • 插入上下标

^ 表示上标,用 _ 表示下标记

效果如下:

sin ⁡ 2 ( θ ) + cos ⁡ 2 ( θ )

1 \sin^2(\theta) + \cos^2(\theta) = 1

sin

2

(

θ

)

cos

2

(

θ

)

=

1

∑ n

1 ∞ k \sum_{n=1}^\infty k

n

=

1

k

∫ a b f ( x )   d x \int_a^bf(x),dx

a

b

f

(

x

)

d

x

lim ⁡ x → ∞ exp ⁡ ( − x )

0 \lim\limits_{x\to\infty}\exp(-x) = 0

x

lim

exp

(

x

)

=

0

  • 注意: \, 在积分里的作用是为了增加些许间距, \! 会减少一些间距。

  • 输出分段函数

    \begin{cases}\end{cases} 来构造分段函数,中间则用 \\ 来分段

f ( x )

{ 2 x ,    x

0 3 x ,    x ≤ 0 f(x) = \begin{cases} 2x,,,x>0\ 3x,,,x\le0\ \end{cases}

f

(

x

)

=

{

2

x

,

x

0

3

x

,

x

0

  • 一些常见的数学公式
 $$
 f'(x) = x^2 + x
 $$

f ′ ( x )

x 2 + x f’(x) = x^2 + x

f

(

x

)

=

x

2

x

$$
 \lim_{x\to0}\frac{9x^5+7x^3}{x^2+6x^8}
$$

lim ⁡ x → 0 9 x 5 + 7 x 3 x 2 + 6 x 8 \lim_{x\to0}\frac{9x^5+7x^3}{x^2+6x^8}

x

0

lim

x

2

6

x

8

9

x

5

7

x

3

$$
 \int_a^b f(x)\,dx
 $$

∫ a b f ( x )   d x \int_a^b f(x),dx

a

b

f

(

x

)

d

x

$$
 \int_0^{+\infty}f(x)\,dx
$$

∫ 0 + ∞ f ( x )   d x \int_0^{+\infty}f(x),dx

0

f

(

x

)

d

x

$$
 \int_{x^2+y^2\leq R^2} \,f(x,y)\,dx\,dy = \int_{\theta=0}^{2\pi}\int_{r=0}^R \,f(r\cos\theta,r\sin\theta)\,r\,dr\,d\theta
 $$

∫ x 2 + y 2 ≤ R 2   f ( x , y )   d x   d y

∫ θ

0 2 π ∫ r

0 R   f ( r cos ⁡ θ , r sin ⁡ θ )   r   d r   d θ \int_{x^2+y^2\leq R^2} ,f(x,y),dx,dy = \int_{\theta=0}^{2\pi}\int_{r=0}^R ,f(r\cos\theta,r\sin\theta),r,dr,d\theta

x

2

y

2

R

2

f

(

x

,

y

)

d

x

d

y

=

θ

=

0

2

π

r

=

0

R

f

(

r

cos

θ

,

r

sin

θ

)

r

d

r

d

θ

$$
 \int\!\!\!\int_D f(x,y)dxdy
 $$

∫  ⁣ ⁣ ⁣ ∫ D f ( x , y ) d x d y \int!!!\int_D f(x,y)dxdy

D

f

(

x

,

y

)

d

x

d

y

参考: