【Latex 写作】数学公式

这篇具有很好参考价值的文章主要介绍了【Latex 写作】数学公式。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一. 基础数学式

1. 分式

  • 单层分式:分子 \over 分母。如:
$$
a+1 \over b+1
$$

编译为
a + 1 b + 1 a+1 \over b+1 b+1a+1

  • 多层分式:\frac {分子} {分母}。如:
$$
\frac {\frac ab +1} {\frac {c+2}{d+4} +8}
$$

编译为
a b + 1 c + 2 d + 4 + 8 \frac {\frac ab +1} {\frac {c+2}{d+4} +8} d+4c+2+8ba+1

2. 根式

  • 根式:\sqrt [根指数] {被开方数},缺省根指数时默认为 2。如:
$$
\sqrt [n] {x+y}
$$

编译为
x + y n \sqrt [n] {x+y} nx+y

3. 对数

  • 对数式:\log_{对数底数}{表达式}。如:
$$
\log_{10}{(x+y)}
$$

编译为
log ⁡ 10 ( x + y ) \log_{10}{(x+y)} log10(x+y)

4. 最值

  • 最大值:\max_{下标表达式}{最值表达式}
  • 最小值:\min_{下标表达式}{最值表达式}
$$
\max_{1\leq i\leq n}{|x_i|}
$$

编译为
max ⁡ 1 ≤ i ≤ n ∣ x i ∣ \max_{1\leq i\leq n}{|x_i|} 1inmaxxi

5. 方程

  • 左对齐方程:使用 \begin{cases}\end{cases} 包裹每个等式。如:
$$
\begin{cases}
a+b+c=2 \\
a-b=4 \\
\end{cases}
$$

编译为
{ a + b + c = 2 a − b = 4 a + c = 5 \begin{cases} a+b+c=2 \\ a-b=4 \\ a+c=5 \end{cases} a+b+c=2ab=4a+c=5

  • 指定位置对齐方程:使用 \begin{aligned} 进行对齐,& 表示对齐位置,需要人为加上大号括号。如:
$$
\left\{
\begin{aligned}
a+b&=2 \\
a-b&=4 \\
\end{aligned}
\right.
$$

编译为
{ a + b + c = 2 a − b = 4 a + c = 5 \left\{ \begin{aligned} a+b+c&=2 \\ a-b&=4 \\ a+c&=5 \end{aligned} \right. a+b+caba+c=2=4=5

6. 分段函数

$$
y =
\begin{cases}
\sin(x)       & x<0 \\
x^2 + 2x +4   & 0 \leq x < 1 \\
x^3           & x \geq 1 \\
\end{cases}
$$

编译为
y = { sin ⁡ ( x ) x < 0 x 2 + 2 x + 4 0 ≤ x < 1 x 3 x ≥ 1 y = \begin{cases} \sin(x) & x<0 \\ x^2 + 2x +4 & 0 \leq x < 1 \\ x^3 & x \geq 1 \\ \end{cases} y= sin(x)x2+2x+4x3x<00x<1x1

7. 累加 / 累乘

  • 累加:\sum_{下标表达式}^{上标表达式}{累加表达式}
  • 累乘:\prod_{下标表达式}^{上标表达式}{累加表达式}
$$
\sum_{i=1}^n \frac{1}{i^2}
$$

编译为
∑ i = 1 n 1 i 2 \sum_{i=1}^n \frac{1}{i^2} i=1ni21

8. 交集 / 并集

  • 交集:\bigcap_{下标表达式}^{上标表达式}{累加表达式}
  • 并集:\bigcup_{下标表达式}^{上标表达式}{累加表达式}
$$
\bigcap_{i=1}^n {A_i}
$$

编译为
⋂ i = 1 n A i \bigcap_{i=1}^n {A_i} i=1nAi

二. 高等数学

1. 极限

  • 极限:\lim_{变量 \to 变量极限} 表达式。如:
$$
\lim_{x \to +\infty} \frac{1}{x(x+1)}
$$

编译为
lim ⁡ x → + ∞ 1 x ( x + 1 ) \lim_{x \to +\infty} \frac{1}{x(x+1)} x+limx(x+1)1

2. 导数

  • 导数:{\rm d}xf^\prime
  • 偏导:$\frac{\partial y}{\partial x}$
  • 梯度:\nabla f(x)
$$
f^\prime(x)=\frac{{\rm d}y}{{\rm d}x}
$$

编译为
f ′ ( x ) = d y d x f^\prime(x)=\frac{{\rm d}y}{{\rm d}x} f(x)=dxdy

3. 积分

  • 不定积分:\int {被积表达式}
  • 定积分:\int_{积分下限}^{积分上限} {被积表达式}
  • 环路积分:\oint_{积分下限}^{积分上限} {被积表达式}
  • 二重积分:$\iint$
  • 三重积分:$\iiint$
$$
\int_0^1 {x^2} {\rm d}x
$$

编译为
∫ 0 1 x 2 d x \int_0^1 {x^2} {\rm d}x 01x2dx

三. 线性代数

1. 向量

  • 行向量:\left(\begin{array}{ccc}x_1 &\cdots &x_n\end{array}\right)。如:
\vec{x}=
\left(
\begin{array}{ccc}
x_1 &
\cdots &
x_n
\end{array}
\right)

编译为
x ⃗ = ( x 1 ⋯ x n ) \vec{x}= \left( \begin{array}{ccc} x_1 & \cdots & x_n \end{array} \right) x =(x1xn)

  • 列向量:\left(\begin{array}{ccc}x_1 &\cdots &x_n\end{array}\right)。如:
\vec{x}=
\left(
\begin{array}{ccc}
x_1 &
\cdots &
x_n
\end{array}
\right)

编译为
y ⃗ = ( y 1 ⋮ y m ) \vec{y}= \left( \begin{array}{c} y_1 \\ \vdots \\ y_m \end{array} \right) y = y1ym

如果向量的字母不止一个,使用 \vec 会导致箭头过小,无法盖住整个向量名,这是可以采用右箭头 $\overrightarrow{AB}$ A B → \overrightarrow{AB} AB 。其实向量更常见的写法是黑体加粗,即 $\boldsymbol{x}$ x \boldsymbol{x} x

2. 行列式

$$
D=
\left|
\begin{array}{cccc}
{a_{11}} & {a_{12}} & {\cdots} & {a_{1 n}} \\ 
{a_{21}} & {a_{22}} & {\cdots} & {a_{2 n}} \\ 
{\vdots} & {\vdots} & {\ddots} & {\vdots} \\ 
{a_{n 1}} & {a_{n 2}} & {\cdots} & {a_{n n}}
\end{array}
\right|
$$

编译为
D = ∣ a 11 a 12 ⋯ a 1 n a 21 a 22 ⋯ a 2 n ⋮ ⋮ ⋱ ⋮ a n 1 a n 2 ⋯ a n n ∣ D= \left| \begin{array}{cccc} {a_{11}} & {a_{12}} & {\cdots} & {a_{1 n}} \\ {a_{21}} & {a_{22}} & {\cdots} & {a_{2 n}} \\ {\vdots} & {\vdots} & {\ddots} & {\vdots} \\ {a_{n 1}} & {a_{n 2}} & {\cdots} & {a_{n n}} \end{array} \right| D= a11a21an1a12a22an2a1na2nann

3. 矩阵

  • 稀疏矩阵:
$$
A_{m×n}=
\left[
\begin{array}{cccc}
{a_{11}} & {a_{12}} & {\cdots} & {a_{1 n}} \\ 
{a_{21}} & {a_{22}} & {\cdots} & {a_{2 n}} \\ 
{\vdots} & {\vdots} & {\ddots} & {\vdots} \\ 
{a_{m 1}} & {a_{m 2}} & {\cdots} & {a_{m n}}
\end{array}
\right]
$$

编译为
A m × n = [ a 11 a 12 ⋯ a 1 n a 21 a 22 ⋯ a 2 n ⋮ ⋮ ⋱ ⋮ a m 1 a m 2 ⋯ a m n ] A_{m×n}= \left[ \begin{array}{cccc} {a_{11}} & {a_{12}} & {\cdots} & {a_{1 n}} \\ {a_{21}} & {a_{22}} & {\cdots} & {a_{2 n}} \\ {\vdots} & {\vdots} & {\ddots} & {\vdots} \\ {a_{m 1}} & {a_{m 2}} & {\cdots} & {a_{m n}} \end{array} \right] Am×n= a11a21am1a12a22am2a1na2namn

  • 增广矩阵:
$$
\left[
\begin{array} {c c | c}		%竖线表示2、3列间插入竖线
1 & 2 & 3 \\
4 & 5 & 6
\end{array}
\right]
$$

编译为
[ 1 2 3 4 5 6 ] \left[ \begin{array} {c c | c} %竖线表示2、3列间插入竖线 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \right] [142536]

$$
\left[
\begin{array}  {c}
1 & 2 & 3 \\
\hline 	%插入横线
4 & 5 & 6
\end{array}
\right]
$$

编译为
[ 1 2 3 4 5 6 ] \left[ \begin{array} {c} 1 & 2 & 3 \\ \hline %插入横线 4 & 5 & 6 \end{array} \right] [142536]

  • 矩阵的关系:
$$A \cong B$$

编译为
A ≅ B A \cong B AB

$$A \sim B$$

编译为
A ∼ B A \sim B AB

$$A \simeq B$$

编译为
A ≃ B A \simeq B AB文章来源地址https://www.toymoban.com/news/detail-480184.html

到了这里,关于【Latex 写作】数学公式的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • [Latex写作] vscode搭建latex写作环境

    个人博客 :Sekyoro的博客小屋 个人网站 :Proanimer的个人网站 如果是为了方便简洁,实际使用Overleaf完全够了,之前也写过使用Obsidian写文章的教程. 这次主要介绍使用在本地vscode加上插件写论文. vscode 官网即可 texlive 通过镜像站即可,比如Index of /CTAN/systems/texlive/Images/ | 清华大学开源

    2024年02月03日
    浏览(33)
  • 【人工智能的数学基础】泰勒公式(Taylor Formula)

    Taylor Formula. 本文目录: 泰勒公式 Taylor Formula 余项 Remainder 泰勒公式的应用:Hard-Sigmoid与Hard-Tanh 泰勒公式(Taylor Formula) 是将一个复杂函数用一个 多

    2024年02月08日
    浏览(41)
  • word中使用latex多行公式,矩阵公式

    的引起的那条竖线可以通过backspace或者delete删除

    2024年01月21日
    浏览(29)
  • word将mathtype公式批量转为latex公式

    最近,由于工作学习需要,要将word里面的mathype公式转为latex公式。 查了查资料,有alt+的操作,这样太慢了。通过下面链接的操作,结合起来可以解决问题。 某乎:https://www.zhihu.com/question/532353646 csdn:https://blog.csdn.net/m0_52232795/article/details/130617795 某乎比较详细,但是配合c

    2024年02月13日
    浏览(35)
  • latex行间插入公式

    1、 插入公式 : 行内公式 :  $公式$ ,例子: $frac{L^4}{2}+frac{L^3}{6}-frac{4L}{3}$ ; 行间公式(自带公式编号) , begin{equation}公式end{equation} ,例子: begin{equation} frac{L^4}{2}+frac{L^3}{6}-frac{4L}{3} end{equation} ; 无编号行间公式 :也可以使用  begin{displaymath} ... end{displaymat

    2024年02月07日
    浏览(37)
  • latex2【图片、公式、矩阵】

    图片 语法: 看起来很别扭是吧,需要进行“修饰”: 当然,这样也很丑,一般写论文可以用以下的格式: 多张图片排版: 公式: 行内公式: 行间公式 上下标: 公式中的希腊字母 数学函数 根式 分式 自动编号与非自动编号 矩阵: 导包: 分块矩阵: 三角矩阵 这一个也不

    2024年02月17日
    浏览(33)
  • 【LaTex】矩阵、向量、单边公式排列

    1.1 matrix语法 写矩阵和向量都可以有多种语法,其中 matrix 语法比较简单,可以直接使用,基本的语法如下: e l e m 1 e l e m 2 e l e m 3 e l e m 4 begin{matrix} elem1 elem2 \\\\ elem3 elem4 end{matrix} e l e m 1 e l e m 3 ​ e l e m 2 e l e m 4 ​ 可以看到,我们生成了按照矩阵排列的四个元素,其中 表

    2024年02月10日
    浏览(33)
  • WPS内插入latex公式

    Step1:下载CTEX:https://ctex.org/ctex/download/ CTeX_3.0.215.2.exe: 32/64位通用版本 CTeX_3.0.215.2_x86.exe: 32位专用版本 CTeX_3.0.215.2_x64.exe: 64位专用版本 完整版(包含 MiKTeX 完整安装和中文常用宏包) CTeX_3.0.215.2_Full.exe: 32/64位通用版本,须下载同名的 nsisbin 文件并放在同一目录下 CTeX_3.0.215.2_

    2024年02月10日
    浏览(32)
  • Latex 公式 合并行与列

    latex 编辑公式时需要合并行与列 使用 multirow 和 multicolumn The multirow, bigstrut and bigdelim packages Vertical Alignment in multirow using cells with 1 lines

    2024年02月22日
    浏览(31)
  • Latex单行/多行公式居中/左对齐

    代码如下(示例): 输出: 代码如下(示例): 输出: 代码如下(示例): 输出: 代码如下(示例): 输出:

    2024年02月13日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包