그래디언트 계산기


지침: 이 그래디언트 계산기를 사용하여 제공한 다변수 함수에 대한 편미분 벡터를 계산하고, 모든 단계를 보여줍니다. 아래 입력란에 다변수 함수를 입력하세요.

기울기를 계산하고자 하는 다변수 함수를 입력하세요 (예: f(x, y) = x^2 + y^2, 등)

대시보드에서 이 계산기를 여세요 →

그래디언트 계산기

이 계산기 사용 방법

이 단계별 그래디언트 계산기는 제공된 다변수 함수의 그래디언트 벡터를 찾는 데 도움을 줍니다. 이 함수는 2개 이상의 변수를 가지는 유효하고 미분 가능한 함수여야 합니다.

사용자가 제공하는 함수는 변수 이름과 함수에 대한 전체 정의를 포함해야 합니다. 예를 들어 f(x, y) = x^2 + y^2, 또는 f(x,y,z) = xy+z*sin(xy) 등.

유효한 다변수 함수가 제공되면, "계산" 버튼을 클릭하기만 하면 모든 단계가 표시됩니다.

그래디언트는 다변수 상황에서 도함수의 자연스러운 확장을 나타내며, 변화율이 숫자보다 벡터로 더 잘 정의됩니다.

그래디언트 계산기

그래디언트란 무엇인가

간단히 말하면, 그래디언트는 다변수 함수 \(f\)의 모든 1계 편도함수를 포함하는 벡터입니다. 따라서 두 변수의 함수 \(f(x, y)\)의 경우, 그 그래디언트는 2차원 벡터 \(\nabla f(x, y) = \displaystyle \left(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}\right)\)가 됩니다.

이변수 및 삼변수 그래디언트

마찬가지로, 세 변수 함수 \( f(x, y, z) \)의 그래디언트는 3차원 벡터 \(\nabla f(x, y, z) = \displaystyle \left(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z}\right)\)가 되며, 이와 같은 방식으로 계속됩니다.

기울기 계산 단계

  • 단계 1: 작업하려는 함수 f를 식별하고, 관련된 변수의 개수를 식별하십시오.
  • 단계 2: 1차 구하기 편미분 각 변수에 대해
  • 단계 3: 그래디언트를 2단계에서 구한 모든 1차 편도함수를 포함하는 벡터로 구성하십시오

계산 후 단순화

선택적으로, 3단계를 완료한 후 가능하다면 단순화할 수 있습니다. 그런 다음, 그래디언트를 사용하여 단변량 함수에 대한 도함수에 해당하는 버전을 얻게 되며, 이 경우에는 다변량 함수에 대한 것입니다.

그래디언트의 응용

그래디언트를 이용한 임계점 찾기

일변량 함수에서 임계점을 찾을 때 도함수가 0인 점을 찾아야 하는 것과 마찬가지로, 다변량 함수에서는 임계점을 찾기 위해 기울기가 0인 점을 찾아야 합니다

또한, 이계 도함수 검정의 등가물은 다변수 함수에 대한 헤시안 규칙의 형태로 나타난다.

그래디언트 계산기

팁과 요령

기억하세요 그 그래디언트 는 두 개 이상의 변수를 가진 다변수 함수에 대해 정의됩니다. 또한, 그래디언트는 벡터이며, 각 성분은 함수입니다. 더 정확히 말하면, 각 성분은 편미분 일차의.

그라디언트 차원과 성분

작업을 확인하는 방법으로, 그래디언트는 그 함수에 정의된 독립 변수의 개수와 동일한 차원을 가진 벡터라는 것을 잊지 마세요.

예시: 기울기 계산기

함수에 연관된 그래디언트를 구하시오 : \(f(x,y,z)=x^2+y^2+z^2\)

풀이: 다음과 같은 다변수 함수를 고려합니다: \(\displaystyle f(x,y,z)=x^2+y^2+z^2\), 따라서 그 그라디언트를 계산해야 합니다.

\(x\)에 대해 미분하기

\( \displaystyle \frac{\partial }{\partial x}\left(x^2+y^2+z^2\right)\)
By linearity, we know \(\frac{\partial }{\partial x}\left( x^2+y^2+z^2 \right) = \frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)+\frac{\partial }{\partial x}\left(z^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)+\frac{\partial }{\partial x}\left(z^2\right)\)
Since the derivative of a constant with respect to \(x\) is 0, we get that:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)\)
We can use the Power Rule for polynomial terms: \(\frac{\partial }{\partial x}\left( x^2 \right) = 2x\)
\( \displaystyle = \,\,\)
\(\displaystyle 2x\)

\(y\)에 대해 미분하기

\( \displaystyle \frac{\partial }{\partial y}\left(x^2+y^2+z^2\right)\)
By linearity, we know \(\frac{\partial }{\partial y}\left( x^2+y^2+z^2 \right) = \frac{\partial }{\partial y}\left(x^2\right)+\frac{\partial }{\partial y}\left(y^2\right)+\frac{\partial }{\partial y}\left(z^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial y}\left(x^2\right)+\frac{\partial }{\partial y}\left(y^2\right)+\frac{\partial }{\partial y}\left(z^2\right)\)
Since the derivative of a constant with respect to \(y\) is 0, we find that:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial y}\left(y^2\right)\)
We use the Power Rule for polynomial terms: \(\frac{\partial }{\partial y}\left( y^2 \right) = 2y\)
\( \displaystyle = \,\,\)
\(\displaystyle 2y\)

\(z\)에 대해 미분하기

\( \displaystyle \frac{\partial }{\partial z}\left(x^2+y^2+z^2\right)\)
By linearity, we know \(\frac{\partial }{\partial z}\left( x^2+y^2+z^2 \right) = \frac{\partial }{\partial z}\left(x^2\right)+\frac{\partial }{\partial z}\left(y^2\right)+\frac{\partial }{\partial z}\left(z^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial z}\left(x^2\right)+\frac{\partial }{\partial z}\left(y^2\right)+\frac{\partial }{\partial z}\left(z^2\right)\)
The derivative of a constant with respect to \(z\) is 0, so then:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial z}\left(z^2\right)\)
We use the Power Rule for polynomial terms: \(\frac{\partial }{\partial z}\left( z^2 \right) = 2z\)
\( \displaystyle = \,\,\)
\(\displaystyle 2z\)

결론: 따라서 우리는 주어진 함수 \(\displaystyle f(x,y,z)=x^2+y^2+z^2 \)의 그래디언트가 다음과 같다고 결론지을 수 있다:

\[ \nabla f = \left(2x,2y,2z\right)\]

그라디언트 계산 예제

다음 함수: \(f(x, y) = xy\)의 그래디언트를 구하시오.

풀이: 이 예제에서는 x와 y라는 두 변수의 함수가 있습니다: \(\displaystyle f(x,y)=xy\).

먼저, x에 대해 미분하면

\( \displaystyle \frac{\partial }{\partial x}\left(xy\right)\)
Since it is a constant times \(x\), we directly get: \(\frac{\partial }{\partial x}\left( xy \right) = y\)
\( \displaystyle = \,\,\)
\(\displaystyle y\)

이제, y에 대해 미분하세요

\( \displaystyle \frac{\partial }{\partial y}\left(xy\right)\)
Since it is a constant times \(y\), we directly get: \(\frac{\partial }{\partial y}\left( xy \right) = x\)
\( \displaystyle = \,\,\)
\(\displaystyle x\)

결론: 우리는 함수 \(\displaystyle f(x,y)=xy \)의 기울기가 직접적으로 구해짐을:

\[ \nabla f = \left(y, x\right)\]

더 많은 그래디언트 예제

해당하는 \( f(x, y) = x^2 - y^2 - xy \)의 기울기를 계산하십시오.

풀이: 마지막으로, 이 예제에서는 다음 함수 \(\displaystyle f(x,y)=x^2-y^2-xy\)를 분석해야 합니다. 이 함수는 다변량 함수이므로 그래디언트를 계산하는 것이 합리적입니다.

단계 2: \(x\)에 대한 도함수를 구하십시오

\( \displaystyle \frac{\partial }{\partial x}\left(x^2-xy-y^2\right)\)
By linearity, we know \(\frac{\partial }{\partial x}\left( x^2-xy-y^2 \right) = \frac{\partial }{\partial x}\left(x^2\right)-\frac{\partial }{\partial x}\left(xy\right)-\frac{\partial }{\partial x}\left(y^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)-\frac{\partial }{\partial x}\left(xy\right)-\frac{\partial }{\partial x}\left(y^2\right)\)
The derivative of a constant with respect to \(x\) is 0, so then:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)-\frac{\partial }{\partial x}\left(xy\right)\)
Since it is a constant times \(x\), we directly get: \(\frac{\partial }{\partial x}\left( xy \right) = y\) and we can use the Power Rule for polynomial terms: \(\frac{\partial }{\partial x}\left( x^2 \right) = 2x\)
\( \displaystyle = \,\,\)
\(\displaystyle 2x-y\)

단계 2: \(y\)에 대한 도함수를 구하십시오

\( \displaystyle \frac{\partial }{\partial y}\left(x^2-xy-y^2\right)\)
By linearity, we know \(\frac{\partial }{\partial y}\left( x^2-xy-y^2 \right) = \frac{\partial }{\partial y}\left(x^2\right)-\frac{\partial }{\partial y}\left(xy\right)-\frac{\partial }{\partial y}\left(y^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial y}\left(x^2\right)-\frac{\partial }{\partial y}\left(xy\right)-\frac{\partial }{\partial y}\left(y^2\right)\)
We use the Power Rule for polynomial terms: \(\frac{\partial }{\partial y}\left( y^2 \right) = 2y\) and since it is a constant times \(y\), we directly get: \(\frac{\partial }{\partial y}\left( xy \right) = x\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial y}\left(x^2\right)-x-2y\)
which then leads to
\( \displaystyle = \,\,\)
\(\displaystyle 0-x-2y\)
By reorganizing/simplifying/expanding the terms that are amenable to
\( \displaystyle = \,\,\)
\(\displaystyle -x-2y\)

결론: 따라서 우리는 주어진 함수 \(\displaystyle f(x,y)=x^2-y^2-xy \)의 그래디언트가 다음과 같다고 결론지을 수 있다:

\[ \nabla f = \left(2x-y,-x-2y\right)\]

더 많은 미분 계산기

사용하는 미분 계산기 확실히 당신의 삶을 더 쉽게 만들어 줄 수 있으며, 이를 통해 당신이 모든 것을 추적할 수 있게 해주기 때문에 미분 규칙 .

다변수 함수의 미분 규칙

대부분의 미분 규칙 단변량 함수에 사용되는 것들은 다변량 함수에 대한 대응물이 있습니다. 이렇게, 그 연쇄 법칙 , 곱의 법칙 그리고 몫의 미분법 또한 다변수 함수에도 적용되며, 올바른 차원을 염두에 두어야 합니다.

log in

Don't have a membership account?
sign up

reset password

Back to
log in

sign up

Back to
log in