Quantum Chemistry/Multivariable differentiation: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>BotondF
No edit summary
 
(No difference)

Latest revision as of 03:56, 28 November 2024

Functions dependent on multiple variables require a different approach to differentiation than single variable functions. The partial derivative of a multivariable function is the derivative with respect to one of its variables, with all other variables treated as constants.

The notation convention is like single variable differentiation as the function is written on top of the variable it is differentiated with respect to. A cursive d is used instead of d, and the variables held constant are indicated outside the parentheses in a subscript. For example, the partial derivative of the function f with respect to x, holding y constant, is:

(fx)y

Partial derivatives show how the function changes as one variable is changing if all others do not change. To determine the change in the function if all variables are changing, partial derivatives where one variable changing is determined for each variable of the function separately.

In two dimensions:

df(x,y)=(f(x,y)x)z +(f(x,y)y)x

In three dimensions:

df(x,y,z)=(f(x,y,z)x)y,z +(f(x,y,z)y)x,z  + (f(x,y,z)z)x,y

The second partial derivative of a function can be determined from partial differentiation with respect to one variable, and then partial differentiation again with respect to the other variable, the one held constant in the last partial derivative. Second partial derivatives with different sequence of differentiation may not always be equal. In the following two-dimensional example, they are equal:

(y(f(x,y)x)y)x

(x(f(x,y)y)x)y

Alongside the full notation, it is also common notation to write the order of differentiation as a superscript on the function, then below it the variables of partial differentiation. This does not account for order in which the function is differentiated.

2 f(x,y)xy

Useful rules in calculus can be applied to partial derivatives, such as the chain rule:

(f(x,y)x)y (xy)f(x,y)(yf(x,y))x=1

Partial derivatives are used in the derivation of the time-independent Schrödinger equation, angular momentum, the model for the hydrogen atom, and appears in operators such as the Hamiltonian. It is also used extensively in thermodynamics.

Example

ψ(x,y)=Asin(nxπLx) sin(nyπLy)

The derivative of this wavefunction with respect to x:

(ψ(x,y)x)y=Asin(nxπLx) sin(nyπLy)

Differentiating with respect to x while holding y constant means y is treated as a constant in differentiation, so only terms with y are differentiated:

=x[Asin(nxπLx)]sin(nyπLy)

A is a constant independent of x so it can be moved out of the differential:

=x[sin(nxπLx)]Asin(nyπLy)

To differentiate the x term, the chain rule is used:

=x[nxπLx]cos(nxπLx)Asin(nyπLy)

Once again, constants can be removed from differentiation:

=nxπLxx[x]cos(nxπLx)Asin(nyπLy)

=nxπLx cos(nxπLx ) A sin(nyπLy)


The derivative of the wavefunction with respect to y:

(ψ(x,y)y)x=Asin(nxπLx) sin(nyπLy)

Differentiating with respect to y while holding x constant means x is treated as a constant in differentiation, so only terms with y are differentiated:

=Asin(nxπLx)y[sin(nyπLy)]

To differentiate the y term, the chain rule is used:

=Asin(nxπLx)y[sin(nyπLy)]

=Asin(nxπLx) cos(nxπLx ) y[nyπLy]

Once again, constants can be removed from differentiation:

=Asin(nxπLx) cos(nxπLx ) nyπL y[y]

=Asin(nxπLx) cos(nxπLx ) nyπL

Template:BookCat