Professional Documents
Culture Documents
1
Objectives
• The interest is usually the point corresponding to a minimum error, that is, a minimum point
in the curve.
• A minimum point is a point where the slope of the tangent line is zero(horizontal line).
Hence, a minimum point corresponds to "when the first derivative is equal to 0".
• Look at dy/dx=0
General Points
MAXIMA and MINIMA.
The/A point in a curve where the tangent line has a slope that is equal to zero is a MINIMUM point or
a MAXIMUM point.
Profit, or something of the same nature, may be represented by a function (i.e. profit
function).
With the profit function, the interest is the point corresponding to a maximum value, that is,
a maximum point in the curve. Like the minimum point, the tangent line to a curve at the
maximum point is 0 (horizontal line).
Look at dy/dx=0
Problem:
Find the rate at which the reciprocal of a number changes as the number increases.
R = 1/n
dR/dn = d/dn (1/n) = d/dn (n-1) <— Apply the formula d/dn(u ) = nu
n n-1(du/dn)
Let
D = length body diagonal
E = length of an edge edge
F = length of face diagonal
D
E
D
E
F
Let D = length body diagonal, E = length of an edge, F = length of face diagonal
D
E
F
Let D = length body diagonal, E = length of an edge, F = length of face diagonal
F
E
E
The Face diagonal F can be expressed in terms of E. (Look at one face of the
cube)
D2=F2+E2.
D2=(E√2)2+E2.
D2=2E2+E2.
D2=3E2.
D = Square Root of 3E2.
D = (3)E
Find how fast the body diagonal of a cube increases as the length of the
edge increases. See figure.
Let D = length body diagonal, E = length of an edge edge, F = length of face diagonal
Code in Python
# derivative of f(x) = x^3 - 2x
# In Python, the operator ** is for exponentiation
import sympy as sp
def f(x):
return x**3 - 2*x
x=sp.Symbol('x')
print("Derivative of f(x) = ", sp.diff(f(x)))
Differentiation Using Python Programming
Code in Python
import sympy as sp
def f(x):
return x**3 - 2*x
x=sp.Symbol('x')
print("Derivative of f(x) = ", sp.diff(f(x)))
Output:
Derivative of f(x) = 3*x**2 - 2
Be reminded.
Authentic learning of
Mathematics and
Programming happens
through doing exercises.
Reading is not enough!
- More Power.