Appendix: algebra and calculus basics









Chapitre 3 Dérivabilité des fonctions réelles

(2) On définit de même la dérivée `a droite que l'on note fd(x0). on applique le théor`eme pour la fonction log sur l'intervalle [x
MHT chap


6.2 Properties of Logarithms

Once we get the x2 by itself inside the log we may apply the Power Rule with u = x and w = 2 and simplify. log0.1(10x2) = log0.1(10) + log0.1(x2). Product Rule.
S&Z . & .


4-Partial Derivatives and their Applications.pdf

them one is called partial derivative of z(x y) with respect to x denoted by one of the symbols *(i) u = (tan–1a) [log(x2 + y2)] + btan–1(y/x)
Partial Derivatives and their Applications


Appendix: algebra and calculus basics

28 sept. 2005 2. Logarithms convert products to sums: log(ab) = log(a) + log(b). ... The derivative of the logarithm d(log x)/dx
algnotes





CONTINUITY AND DIFFERENTIABILITY

(ii) The function y = f (x) is said to be differentiable in the closed interval [a b] The derivative of logx. w.r.t.
leep


DIFFERENTIAL EQUATIONS

An equation involving derivative (derivatives) of the dependent variable with log x. Example 18 A solution of the differential equation. 2.
leep


formulaire.pdf

Logarithme et Exponentielle : eln x = ln(ex) = x e−x = 1/ex. √ex = ex/2. (ex) y. = exy lim x→−∞ ex = 0 lim x→+∞ ... R`egles de dérivation.
formulaire


1. If log x2 – y2 = a then dy / dx = x2 + y2

1. If log x2 – y2. = a then x2 + y2. Solution : Take y /x = k → y = k x. → dy/dx = k. → dy/dx = y / x The derivative of an even function is always.
mat c





Untitled

%20Samples.pdf


New sharp bounds for the logarithmic function

5 mar. 2019 log(x + 1) i. e. log(1 + x) ⩾ 2x/(2 + x) for x ⩾ 0. ... and by another differentiation


217652 Appendix: algebra and calculus basics

Appendix: algebra and calculus basics

c ?2005 Ben Bolker

September 28, 2005

1 Logarithms

Logarithms are the solutions to equations likey=exory= 10x.Natural logs, ln or log e, are logarithms basee(e= 2.718...);commonlogs, log10, are typically logarithms base 10. When you see just log it"s usually in a context where the difference doesn"t matter (although inRlog10islog10and logeis log).

1. log(1) = 0. Ifx >1 then log(x)>0, and vice versa. log(0) =-∞(more

or less); logarithms are undefined forx <0.

2. Logarithms convert products to sums: log(ab) = log(a) + log(b).

1

3. Logarithms convert powers to multiplication: log(an) =nlog(a).

4. You can"t do anything with log(a+b).

5. Converting bases: log

x(a) = logy(a)/logy(x). In particular, log10(a) = log e(a)/loge(10)≈loge(a)/2.3 and loge(a) = log10(a)/log10(e)≈log10(a)/0.434. This means that converting between log bases just means multiplying or dividing by a constant. You can prove this relationship as follows: y= log10(x) 10 y=x log e(10y) = loge(x) yloge(10) = loge(x) y= loge(x)/loge(10) (compare the first and last lines).

6. The derivative of the logarithm,d(logx)/dx, equals 1/x. This is always

positive forx >0 (which are the only values for which the logarithm means anything anyway).

7. The fact thatd(logx)/dx >0 means the function ismonotonic(always

either increasing or decreasing), which means that ifx > ythen log(x)> log(y) and ifx < ythen log(x)2 Differential calculus

1. Notation: differentation of a functionf(x) with respect toxcan be writ-

ten, depending on the context, as dfdx ;f?;f; orfx. I will stick to the first two notations, but you may encounter the others elsewhere.

2. Definition of the derivative:

dfdx = limΔx→0f(x+ Δx)-f(x)(x+ Δx)-x= limΔx→0f(x+ Δx)-f(x)Δx.(1) In words, the derivative is the slope of the line tangent to a curve at a point, or the "instantaneous" slope of a curve. The second derivative, d

2f/dx2, is the rate of change of the slope, or the curvature.

3. The derivative of a constant (which is a flat line if you think about it as

being a curve) is zero (zero slope).

4. The derivative of a line,y=ax, is the slope of the line,a.

5. Derivatives of polynomials:

d(xn)dx =nxn-1. 2

6. Derivatives of sums:

d(f+g)dx =dfdx +dgdx (andd(? iyi)/dx=? i(dyi/dx)).

7. Derivatives times constants:

d(cf)dx =cdfdx , ifcis a constant (dcdx = 0).

8. Derivative of the exponential:

d(exp(ax))dx =aexp(ax), ifais a constant. (If not, use the chain rule.)

9. Derivative of logarithms:

d(log(x))dx =1x

10. Chain rule:

d(f(g(x)))dx =dfdg

·dgdx

(thinking about this as "multiplying frac- tions" is a good mnemonic but don"t use that in general!)Example: d(exp(x2))dx =d(exp(x2))d(x2)·dx2dx = exp(x2)·2x.(2) Another example: people sometimes express the proportional change inx, (dx/dt)/x, asd(log(x))/dt. Can you see why?

11.Critical points(maxima, minima, and saddle points) of a curvefhave

df/dx= 0. The sign of the second derivative determines the type of a critical point (positive = minimum, negative = maximum, zero = saddle).

3 Partial differentiation

1. Partial differentiation acts just like regular differentiation except that you

hold all but one variable constant, and you use a curly d∂instead of a regular d. So, for example,∂(xy)/∂(x) =y. Geometrically, this is taking the slope of a surface in one particular direction. (Second partial derivatives are curvatures in a particular direction.)

2. You can do partial differentiation multiple times with respect to different

variables: order doesn"t matter, so ∂(f)∂(x)∂(y)=∂(f)∂(y)∂(x).

4 Integral calculus

For the material in this book, I"m not asking you to remember very much cal- culus, but it would be useful to remember that

1. the (definite) integral off(x) fromatob,?b

af(x)dx, represents the area under the curve betweenaandb; the integral is a limit of the sum?b x i=af(xi)Δxas Δx→0.

2. You can take a constant out of an integral (or put one in):

?af(x)dx= a?f(x)dx.

3. Integrals are additive:

?(f(x) +g(x))dx=?f(x)dx+?g(x)dx. 3

5 Factorials and the gamma function

Afactorial, written as (say)k!, meansk×k-1×...1. For example, 2! = 2,

3! = 6, and 6! = 720 (inRa factorial isfactorial()- you can"t use the

shorthand ! notation, especially since!=means"not equal to". Factorials come up in probability calculations all the time, e.g. as the number of permutations withkelements. Thegamma function, usually written as Γ (gamma()inR) is a generalization of factorials. For integers, Γ(x) = (x-1)!. Factorials are only defined for integers, but for positive, non-integerx(e.g. 2.7), Γ(x) is still defined and it is still true that Γ(x+ 1) =x·Γ(x). Factorials and gamma functions get very large, and you often have to com- pute ratios of factorials or gamma functions (as in the binomial coefficient, k!/(N!(N-k)!). Numerically, it is more efficient and accurate to compute the logarithms of the factorials first, add and subtract them, and then exponenti- ate the result: exp(logk!-logN!-log(N-k)!).Rprovides the log-factorial (lfactorial()) and log-gamma (lgamma()) functions for this purpose. About the only reason that the gamma function ever comes up in ecology is that it is thenormalizing constant(see ch. 4) for the gammadistribution, which is usually denoted as Gamma (not Γ): Gamma(x,a,s) =1/(saΓ(a))x (a-

1)e-(x/s).

4

6 Probability

1. Probability distributions always add or integrate to 1 over all possible

values.

2. Probabilities of independent events are multiplied:p(AandB) =p(A)p(B).

3. Thebinomial coefficient,

?N k? =N!k!(N-k)!,(3) is the number of different ways of choosingkobjects out of a set ofN, without regard to order. ! denotes a factorial:n! =n×n-1×...×2×1. (Proof: think about pickingkobjects out ofN, without replacement but keeping track of order. The number of different ways to pick the first object isN. The number of different ways to pick the second object is N-1, the thirdN-2, and so forth, so the total number of choices is N×N-1×...N-k+ 1 =N!/(N-k)!. The number of possible orders for this set (permutations) isk! by the same argument (kchoices for the first element,k-1 for the next ...). Since we don"t care about the order, we divide the number of ordered ways (N!/(N-k)!) by the number of possible orders (k!) to get the binomial coefficient.)

7 The delta method: formula and derivation

The formula for the delta method of approximating variances is:

Var(f(x,y))≈?∂f∂x

2

Var(x) +?∂f∂y

2

Var(y) + 2?∂f∂x

∂f∂y

Cov(x,y) (4)

Lyons [?] gives a very readable alternative description of the delta method; Oehlert [?] gives a short technical description of the formal assumptions neces- sary for the delta method to apply.

This formula is exact in a bunch of simple cases:

•Multiplying by a constant: Var(ax) =a2Var(x) •Sum or difference of independent variables: Var(x±y) = Var(x)+Var(y) •Product or ratio of independent variables: Var(x·y) =y2Var(x)+x2Var(y) = x

2y2?Var(x)x

Appendix: algebra and calculus basics

c ?2005 Ben Bolker

September 28, 2005

1 Logarithms

Logarithms are the solutions to equations likey=exory= 10x.Natural logs, ln or log e, are logarithms basee(e= 2.718...);commonlogs, log10, are typically logarithms base 10. When you see just log it"s usually in a context where the difference doesn"t matter (although inRlog10islog10and logeis log).

1. log(1) = 0. Ifx >1 then log(x)>0, and vice versa. log(0) =-∞(more

or less); logarithms are undefined forx <0.

2. Logarithms convert products to sums: log(ab) = log(a) + log(b).

1

3. Logarithms convert powers to multiplication: log(an) =nlog(a).

4. You can"t do anything with log(a+b).

5. Converting bases: log

x(a) = logy(a)/logy(x). In particular, log10(a) = log e(a)/loge(10)≈loge(a)/2.3 and loge(a) = log10(a)/log10(e)≈log10(a)/0.434. This means that converting between log bases just means multiplying or dividing by a constant. You can prove this relationship as follows: y= log10(x) 10 y=x log e(10y) = loge(x) yloge(10) = loge(x) y= loge(x)/loge(10) (compare the first and last lines).

6. The derivative of the logarithm,d(logx)/dx, equals 1/x. This is always

positive forx >0 (which are the only values for which the logarithm means anything anyway).

7. The fact thatd(logx)/dx >0 means the function ismonotonic(always

either increasing or decreasing), which means that ifx > ythen log(x)> log(y) and ifx < ythen log(x)2 Differential calculus

1. Notation: differentation of a functionf(x) with respect toxcan be writ-

ten, depending on the context, as dfdx ;f?;f; orfx. I will stick to the first two notations, but you may encounter the others elsewhere.

2. Definition of the derivative:

dfdx = limΔx→0f(x+ Δx)-f(x)(x+ Δx)-x= limΔx→0f(x+ Δx)-f(x)Δx.(1) In words, the derivative is the slope of the line tangent to a curve at a point, or the "instantaneous" slope of a curve. The second derivative, d

2f/dx2, is the rate of change of the slope, or the curvature.

3. The derivative of a constant (which is a flat line if you think about it as

being a curve) is zero (zero slope).

4. The derivative of a line,y=ax, is the slope of the line,a.

5. Derivatives of polynomials:

d(xn)dx =nxn-1. 2

6. Derivatives of sums:

d(f+g)dx =dfdx +dgdx (andd(? iyi)/dx=? i(dyi/dx)).

7. Derivatives times constants:

d(cf)dx =cdfdx , ifcis a constant (dcdx = 0).

8. Derivative of the exponential:

d(exp(ax))dx =aexp(ax), ifais a constant. (If not, use the chain rule.)

9. Derivative of logarithms:

d(log(x))dx =1x

10. Chain rule:

d(f(g(x)))dx =dfdg

·dgdx

(thinking about this as "multiplying frac- tions" is a good mnemonic but don"t use that in general!)Example: d(exp(x2))dx =d(exp(x2))d(x2)·dx2dx = exp(x2)·2x.(2) Another example: people sometimes express the proportional change inx, (dx/dt)/x, asd(log(x))/dt. Can you see why?

11.Critical points(maxima, minima, and saddle points) of a curvefhave

df/dx= 0. The sign of the second derivative determines the type of a critical point (positive = minimum, negative = maximum, zero = saddle).

3 Partial differentiation

1. Partial differentiation acts just like regular differentiation except that you

hold all but one variable constant, and you use a curly d∂instead of a regular d. So, for example,∂(xy)/∂(x) =y. Geometrically, this is taking the slope of a surface in one particular direction. (Second partial derivatives are curvatures in a particular direction.)

2. You can do partial differentiation multiple times with respect to different

variables: order doesn"t matter, so ∂(f)∂(x)∂(y)=∂(f)∂(y)∂(x).

4 Integral calculus

For the material in this book, I"m not asking you to remember very much cal- culus, but it would be useful to remember that

1. the (definite) integral off(x) fromatob,?b

af(x)dx, represents the area under the curve betweenaandb; the integral is a limit of the sum?b x i=af(xi)Δxas Δx→0.

2. You can take a constant out of an integral (or put one in):

?af(x)dx= a?f(x)dx.

3. Integrals are additive:

?(f(x) +g(x))dx=?f(x)dx+?g(x)dx. 3

5 Factorials and the gamma function

Afactorial, written as (say)k!, meansk×k-1×...1. For example, 2! = 2,

3! = 6, and 6! = 720 (inRa factorial isfactorial()- you can"t use the

shorthand ! notation, especially since!=means"not equal to". Factorials come up in probability calculations all the time, e.g. as the number of permutations withkelements. Thegamma function, usually written as Γ (gamma()inR) is a generalization of factorials. For integers, Γ(x) = (x-1)!. Factorials are only defined for integers, but for positive, non-integerx(e.g. 2.7), Γ(x) is still defined and it is still true that Γ(x+ 1) =x·Γ(x). Factorials and gamma functions get very large, and you often have to com- pute ratios of factorials or gamma functions (as in the binomial coefficient, k!/(N!(N-k)!). Numerically, it is more efficient and accurate to compute the logarithms of the factorials first, add and subtract them, and then exponenti- ate the result: exp(logk!-logN!-log(N-k)!).Rprovides the log-factorial (lfactorial()) and log-gamma (lgamma()) functions for this purpose. About the only reason that the gamma function ever comes up in ecology is that it is thenormalizing constant(see ch. 4) for the gammadistribution, which is usually denoted as Gamma (not Γ): Gamma(x,a,s) =1/(saΓ(a))x (a-

1)e-(x/s).

4

6 Probability

1. Probability distributions always add or integrate to 1 over all possible

values.

2. Probabilities of independent events are multiplied:p(AandB) =p(A)p(B).

3. Thebinomial coefficient,

?N k? =N!k!(N-k)!,(3) is the number of different ways of choosingkobjects out of a set ofN, without regard to order. ! denotes a factorial:n! =n×n-1×...×2×1. (Proof: think about pickingkobjects out ofN, without replacement but keeping track of order. The number of different ways to pick the first object isN. The number of different ways to pick the second object is N-1, the thirdN-2, and so forth, so the total number of choices is N×N-1×...N-k+ 1 =N!/(N-k)!. The number of possible orders for this set (permutations) isk! by the same argument (kchoices for the first element,k-1 for the next ...). Since we don"t care about the order, we divide the number of ordered ways (N!/(N-k)!) by the number of possible orders (k!) to get the binomial coefficient.)

7 The delta method: formula and derivation

The formula for the delta method of approximating variances is:

Var(f(x,y))≈?∂f∂x

2

Var(x) +?∂f∂y

2

Var(y) + 2?∂f∂x

∂f∂y

Cov(x,y) (4)

Lyons [?] gives a very readable alternative description of the delta method; Oehlert [?] gives a short technical description of the formal assumptions neces- sary for the delta method to apply.

This formula is exact in a bunch of simple cases:

•Multiplying by a constant: Var(ax) =a2Var(x) •Sum or difference of independent variables: Var(x±y) = Var(x)+Var(y) •Product or ratio of independent variables: Var(x·y) =y2Var(x)+x2Var(y) = x

2y2?Var(x)x


  1. log(1+x^2) derivative
  2. log x base 2 derivative
  3. log(x^2+y^2) derivative
  4. log x^2 differentiation
  5. log(sec x^2) derivative
  6. log(sec x^2) derivative by first principle
  7. log tan x/2 differentiation
  8. log base x 2 differentiation