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
- Take the partial derivative of the function with respect to each variable: $partial f/partial x_i$.
- Assemble these partial derivatives into the gradient vector: $ abla f = (partial f/partial x_1, partial f/partial x_2, ...)$.
- 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.