Quantum Chemistry/Finding maxima

From testwiki
Revision as of 18:12, 24 November 2024 by imported>KED2117 (Kerstan Deevy Wikiproject Submission)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Process of finding a maximum of a function

The maximum of a function is found by first computing the derivative of the function f(x), as it describes the rate of change of the original function f(x). At a maximum, the slope of the function changes from positive where the function is increasing to negative where the function is decreasing. Therefore, the slope is equal to zero at a maximum: f(x)=0. The points at which f(x)=0 are denoted as critical points. It is important to note that not all critical points are maximums since there are other instances where the slope is equal to zero, such as a minimum or inflection point of the function. To determine whether a critical point is a maximum, the second derivative of the function f(x), must be computed. It describes the concavity of the function and how its slope is changing. If f(x)<0, the function is concave down and the critical point is a maximum.

Example Problem

Problem

Find the maximum of the function

r2exp(r2)

Solution

Determining the critical points

Compute the derivative f(r) of the function.

Since r2exp(r2) takes the form f(r)g(r), it can be differentiated using the product rule.

Product Rule

ddr[f(r)g(r)]=f(r)g(r)+g(r)f(r)

ddr[r2exp(r2)]=ddr(r2)exp(r2)+(r2)ddrexp(r2)

f(r)=2rexp(r2)2r3exp(r2)

f(r)=2rexp(r2)(1r2)

Since a maximum occurs when the slope is zero,

2rexp(r2)(1r2)=0

The points at which the function equal zero are the critical points. Since exp(r2) will never equal zero,

2r=0 when r=0

1r2=0 when r=±1

Therefore, the critical points are 0,1,1

Evaluating the critical points

Compute the second derivative f(x) of the function.

Since f(r)=2rexp(r2)(1r2) again takes the form f(r)g(r),

ddr[2rexp(r2)(1r2)]=ddr(2rexp(r2))(1r2)+(2rexp(r2))ddr(1r2)

f(r)=(2exp(r2)4r2exp(r2))(1r2)+(2rexp(r2))(2r)

Evaluating f(r) at the critical points determines the concavity of the function.

When f(r)<0, the critical point is a maximum.

At r=0, f(0)=2.

At r=1, f(1)=4exp(1)

At r=1, f(1)=4exp(1)

Since 4exp(1)<0, the points r=1,1 are maximums.

Template:BookCat