4 Multivatiate calculus
1. Multivariate Calculus#
Multivariate calculus deals with functions of multiple variables. If
1.1 Partial Derivatives#
The partial derivative of a multivariable function is the derivative with respect to one variable, keeping the others constant.
For
- Partial derivative with respect to
[
\frac{\partial f}{\partial x} = 2xy + 3y^2
]
- Partial derivative with respect to
[
\frac{\partial f}{\partial y} = x^2 + 6xy
]
Example 1#
Find the partial derivatives of
1.2 Gradient ( )#
The gradient of a scalar function
[
\nabla f = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right)
]
Example 2#
Find the gradient of
1.3 Double and Triple Integrals#
Used to compute volumes and areas in higher dimensions:
- Double integral:
[
\iint_R f(x, y) \, dx \, dy
]
Example: Compute
- Triple integral:
[
\iiint_V f(x, y, z) \, dx \, dy \, dz
]
Example 3#
Evaluate
Practice Problems#
- Find the partial derivatives of
. - Compute the gradient of
. - Evaluate
over .
2. Vector Calculus#
Vector calculus deals with vector fields and operations like divergence, curl, and line integrals.
2.1 Vector Fields#
A vector field assigns a vector to each point in space. For example,
2.2 Divergence#
Divergence of a vector field
[
\text{div} \, \mathbf{F} = \nabla \cdot \mathbf{F} = \frac{\partial F_1}{\partial x} + \frac{\partial F_2}{\partial y} + \frac{\partial F_3}{\partial z}
]
Example 4#
Find the divergence of
2.3 Curl#
Curl of a vector field
[
\text{curl} \, \mathbf{F} = \nabla \times \mathbf{F}
]
Example: Compute the curl of
Practice Problems#
- Find the divergence of
. - Compute the curl of
.
3. Jacobian and Hessian#
3.1 Jacobian#
The Jacobian matrix contains the partial derivatives of a vector-valued function
[
J =
]
- Jacobian determinant is used in coordinate transformations.
Example 5#
Compute the Jacobian of
3.2 Hessian#
The Hessian is a square matrix of second-order partial derivatives:
[
H =
]
Example 6#
Find the Hessian of
Practice Problems#
- Compute the Jacobian for
. - Find the Hessian of
.
4. Multivariate Taylor Series#
The Taylor expansion of a function
[
f(x, y) \approx f(a, b) + \frac{\partial f}{\partial x} (x-a) + \frac{\partial f}{\partial y} (y-b) + \frac{1}{2} \left( \frac{\partial^2 f}{\partial x^2} (x-a)^2 + 2\frac{\partial^2 f}{\partial x \partial y} (x-a)(y-b) + \frac{\partial^2 f}{\partial y^2} (y-b)^2 \right)
]
Example 7#
Find the Taylor expansion up to the second order of
Practice Problems#
- Expand
around up to the second order. - Verify the Taylor series approximation for
around .
Let me know which section you'd like to dive deeper into, and we can solve step-by-step!