Cara menghitung gradien

Hitung gradien dari fungsi skalar (vektor turunan parsial, ∇f). Proses: ambil turunan parsial terhadap setiap variabel, susun sebagai vektor, lalu evaluasi pada sebuah titik. Contoh: f(x,y)=x^2 y + 3y → ∇f=(2xy, x^2+3); pada (1,2) → (4,4).

Cara menghitung gradien

Apa: Gradien dari fungsi skalar adalah vektor turunan parsialnya dan menunjukkan arah kenaikan tercepat. Pemakaian: masukkan fungsi multivariabel, hitung turunan parsial, bentuk vektor gradien, dan evaluasi pada titik tertentu. Skenario: optimisasi, turunan arah, fisika dan analisis medan.

Steps

  1. Take the partial derivative of the function with respect to each variable: $partial f/partial x_i$.
  2. Assemble these partial derivatives into the gradient vector: $ abla f = (partial f/partial x_1, partial f/partial x_2, ...)$.
  3. Evaluate the gradient at the desired point by substituting coordinates.

Example

f(x,y) = x^2 y + 3y
∂f/∂x = 2xy
∂f/∂y = x^2 + 3
∇f = (2xy, x^2 + 3)
At (1,2): ∇f = (4,4)

Use this approach for scalar fields in physics, optimization, and directional derivative calculations.

Frequently asked questions

What is a gradient in multivariable calculus?

The gradient ∇f is the vector of partial derivatives and points toward the steepest increase of f.

How do I compute it by hand?

Differentiate with respect to each variable while holding others constant, then assemble the components into a vector and evaluate at a point.

Where is the gradient used?

Optimization, machine learning (gradient descent), physics fields, and directional derivatives.