Professional Documents
Culture Documents
Introduction
My earlier two tutorials form the basic content of differential and integral calculus. I present in this
tutorial some advanced material ---topics usually taught in a first course in Calculus.I presume you
have mastered the contents of the first two tutorials before you take up this one.This is based on many
results given in the earlier tutorial.
• Higher derivatives
• Maxima ,minima of functions through derivatives
• Simple optimisation problems
• Partial derivatives
• Numerical integration
1 Second derivatives
The derivative of y:
This we call the second derivative.Note the notation we are using: f'(y) is first derivative
f''(y) is second derivative ; f'''(Y) is third derivative and so on.
Take a point P(2,24) on this parabola.The slope of the curve at that point is f'(2)= 6 x2 +2 = 14.
The second derivative f''(y) gives the slope of the tangent line: which is 6 ,of course: y'=mx+c where
m=6,c=2
Therefore the second derivative gives the slope of the tangent to the given curve.
Example1 Find the first and second derivatives for the function:
Differentiating again:
Example 2 Find the velocity and acceleration as a function of time for a bicycle if the distance traveled
S(t):
The acceleration is constant , at 24 meters/minute.minute , while the velocity v(2)= 24 x 2+120 =168
meters per minute. or
168 x60 = 6880 meters /hour = 6.8 kilometers per hour
Example 3 Find the first and second derivative for the function :
Example 4 Marginal Costing The cost function for a product: C(Q)= 200 -12Q+ 2 Q^2 [in $]where Q
is the production quantity.
Find the first and second derivatives. The first derivative gives the marginal cost for increasing the
production by one unit.
Find the marginal cost at the production level of 100 units.At what rate the marginal cost will increase?
[ The Marginal Cost means the additional increase in cost when the production is increased by one unit
at that level,that is from 100 units to 101 unit. ]
The marginal cost increases constantly at 4$ .
Example5 Find the first and seecond derivative of : y= 2x^2 + sin 2x
Practice Problems:
1 Find the second derivative for y= cot x
2 for y= t/(1-t^2)
3 for y= xtanx
4 for y= 2sinx + 3 cos x
5 for y= sec x
6 A car is speeding at the speed of 45 miles per hour or 66 feet per second when the driver applies the
brake.The car comes to a stop after some distance .The distance with time during braking is as follows:
s(t) = -8.5t^2 +66 t
where s is in feet and t in seconds.Find the velocity and acceleration as a function of time and find when
the car will come to a stop. Ans: after 3.9 seconds
6 An astronaut throws a rock standing on the moon. The height of the rock follows the equation:
We shall use calculus to find the maximum and minimum points of a function. To illustrate the method,
let us take a simple example first.
Can you guess the value of x for which y is a maximum in the interval: x:[0,1]
Using differential calculus, we find the slope by getting the first derivative.
You note that this tangent equation for the slope of the given function is a straight line.
At the maximium point ,x=0.5,
This is not surprising ,because the tangent at the maximum point is flat, a horizontal line ,parallel to the
x axis.In a X_Y graph, any horizontal line has zero slope.At x=0.5, y' =4-8x0.5 =0
Therefore ,by using the first derivative and finding the zero of this first derivative or its roots, we can
find out the maximum point.
The same method works for a minimum point too.
Example6 : Find the max or min point of the given function: y= -x^2 + 12x +3
Find the first derivative: y'= -2x+12
Set y'=0 and solve: -2x+12 =0
x'=6
Find the value of Y(x'): y(6)= -36+12x6+3=39
The maximum point is P(6,39)
We can decide that this point is a maximum by taking two points on either side of the critical point x=6
y(5)= -25+60+3= 38 and y(7)= -49+84+3=38
Therefore x=6,y=39 is a maximum.
[We will give another method to decide whether the point is max or min later.]
Example7 : Find all the critical points [max or min] for the function:
y=f(x)= (x^2+9)/x
Step1: Find the first derivative:
This method of finding max or min for a critical point always works and can be used.
Example 8 Find the critical points for the function: y= 2x^3-21x^2+60x+10 and determine whether
they are max or min points.
Find the first derivative,set it to zero and solve:
The critical points are: P1 (2,62) and P2(5,35)
BY taking some values of x close to 2 : P1 is a relative maximum;
P2 is a realtive minimum
Therefore: if the second derivative is positive at the given point we have a relative minimum,the
function is concave upwards.
[There is the third case when the second derivative y''=0 Then the critical point will be called an
'inflection point'.
The the slope of the tangent changes from positive to negative or negative to positive.We shall not
discuss this case further.]
Example9 : For the function y= (x^2+9)/x, decide the critical points using the second derivative
test.
The critical points are at x= +3 and x=-2 as given earlier.
At x=3, y" = 18/27 and is positive. Therefore the point (3,6) is a minimum
At x=-3 , y" = -18/27 and is negative. Therefore th epoint (-3,-6) is a maximum.
Example10 Find the critical points for y=(x^2+1)/x and decide whether they are max or min points
using the second derivative test.
Therefore the point (1,2) is a relative minimum and the point (-1,-2)is a relative maximum.
Practice Problems
Find the critical points and find whether they are relative max or min by second derivative test:
1 f(x)= -x^2 + 3x in the interval [0,3] ans: min; (0,0) and (3,0); max: (3/2,9/4)
2 f(x)= x^3-3x^2 in the interval [-1,3] ans: min:(-1,-4) and (2,-4); max(0,0) and (3,0)
Applied Problems
Find the maximum value of P and the current value for V=12 volts,R=0.5 ohm in the interval I: [0,15]
Ans: I=12 P=72
2 The result of coughing is to contract the trachea or windpipe to increase the velocity of air passing
through the trachea. If v=k(R-r)r^2 where k is a constant,R normal radius and r is the radius during
coughing in the interval r:[0,R].
Ans: r=2R/3
3 For a harvester, a farmer spends a capital cost which keeps decreasing at the rate of 4/x where x is
the number of years.The maintenance cost is increasing at the rate of kx where k is a constant. Taking
k=1, find the minumum value for the total cost: C= maint cost +capital cost= x+4/x
dc/dx= 1- 4/x^2
Let x^2-4=0
x=2 or x= -2.......The total cost reaches a minimum at x= 2 [X=-2 has no meaning since years here
cannot be negative.]
C''= 8/x^3 which is positive for x=2. Therefore x=2 ,c= 3 is a minimum.
This means that a wise farmer will replace the harvester after two years of usage,since the total cost
will increase after two years.
------------------------------------------------------------------------------------------------------------
Example 1 A cell phone maker finds that the total cost of running the factory is given by the cost
equation:
C= 0.5x^2+ 15x+1250
where x is the number of units or production quantity . The average cost is C/x. At what level of
production quantity ,will the average cost be minimized.
The second derivative : which is positive.Therefore x=50 is a minimum with
C=1250+750+1250=3250$
Find the value of x for which the profit is a maximum. Ans: x= 24400 donuts.
3 The cost of fuel plus the driver's wages are related to the average speed of the vehicle (in mph)by
truck-driver's federation.
Find the min value of total cost = C= C1 +c2 . Ans: v=55 miles per hour
Here is a category of problems often used in business [with more complex models] and taught in
business schools. These are simple,based on the methods given earlier and also in tutorials1 &2.
I present these methods in a simple and condensed manner.Please review the last section on finding
maxima and minima [called 'extrema']
A Revenue equation:
A general equation for sales quantity or demand is that the sales quantity Q decreases with
increasing price.So we can write a linear [straight-line] equation:
Combining the two equations, we have an equation for revenue as a function of price:
R(P)= P (a - bP)
Find the price for getting max revenue and the value of max revenue.
million$
B Cost equation
The cost of making q units of a product,C follows ,in simple models,a quadratic equation.This can be
used to find the value of Q ,optimal production quantity , .
This equation is generally applicable to making cars or making cookies in a small bakery.This is also
called an "equation for scaling production".As quantity is increased, the cost keeps decreasing.
C= 20 + 2x -0.01x^2
Find the production quantity for minimum cost and then the minimum cost.
C Profit equation
We have given separate equations for revenue and cost: equations 3 and 4 given earlier.
We can combine these two equations ,make one equation for profit and find the maximum point.
Note that earlier ,we found the maximum revenue separately and minimized the cost as a separate
task.Now we are doing the overall profit maximisation.
Find the production quantity Q for maximum profit and find the maximum profit for that quantity.
--------(5)
Now we find the maximum value of profit using the first derivative:
Maximum profit :
P(74925) = - (74925)^2/5 + 29970 x 74925 - 200
Example 6 : The demand for a book publishing is given by the relation: p= 200 - q where p is the price
and q the quantity sold.
The cost function has a fixed cost of $5000 and the variable cost per book as $0.5
p= 200 - q
Practice Problems
1 The revenue function for a product is: R = 5000x - 0.1x^2 where x is the quantity sold.
Find the quantity for max profit and also the amount of max profit . Ans: 24000 units
2 The cost of producing greetings cards C (x) = 40 + 2x + 0.001x^2
Find the production quantity for max profit and the value of max profit
3 Optimisation Problems
In optimisation, we use the process of finding the maxima or minima of functions as given in the earlier
sections. There is a function,called 'Objective Function" which we try to optimise.For instance, we found
the optimum value ---- maximise the profit function in the previous section.Often we try to reduce cost
or find the minimum of the cost function.Likewise we may optimise productivity ,time and so on.
Optimisation has one another feature: There are constraints or limitations to be considered.We put
these in another function--either as equations or as inequalities.
Example 11 John wishes to design an open box with square base ,such that the surface area is 108 sq
in.The height (h)and side(a) of the box are now design variables.Using calculus,find the optimal values
of these quantities.
h= (108-a^2)/4a
Example 12 The sum of the perimeters of an equilateral triangle and a square is 10. Find the
dimensions of the triangle and the square so that the total area is a minimum.
Let a be the side of the triangle and b the side of the square.
b = (10-3a)/4
Practice Problems
1 A printer finds that in a sheet leaving a margin of 1 inches all around, the rectangular area must be
24 sqin.What should be the dimensions of the page.
Eliminate y: y= 24/x
A = (x+2)(24/x+2)
4 Partial Derivatives
Consider a variable which is a function of two variables.For instance, the volume of a cylinder
In general, z = f(x,y)
Let us find the rate of change of z with x, keeping the y constant.We call this "partial derivative of z
with respect to x" and denote it as follows:
Similarly, we can write the partial derivative with respect to y as follows: , keeping the x
values constant.
Example 13 Find the partial derivatives of V w.r.t [with respect to] r and h for the volume of a
cylinder:
1 z=f(xy) = 8xy
Find the slope of the surface using the partial derivative at x=1/2 and y= 1.
Ans:
4 z= ln(x^2+y^2)
6 z = exp(x)sin(xy)
Application Problems
1 The temperature distribution in a heat shield of a space capsule follows the equation:
Find the rate of change of temperature in the x and y directions at the point P (2,3)
2 The Cobb-Douglas model relates the production value in terms of labour cost and capital cost as
follows:
Find the partial derivatives for change of production value wrt labor cost and capital cost.
3 John operates a large auto-components factory with skilled workers (x) and unskilled workers(y).The
producitivity ,measured in terms of total value of products divided by total number of workers follows
this equation:
Find the marginal productiivty of a skilled worker and that of an unskilled worker.
Evaluate these figures at the present level of x=500 workers and y= 200 workers.What would be the
result of adding more unskilled workers by 100 persons?
4 "Get Well Clinic" employs 20 doctors and 35 paramedics for all the medical services..The earning of
the clinic is given by the equation:
Find the marginal effect of doctors and paramedics towards the earnings.What is the ratio of marginal
revenue at the current level of these employees.How does that compare with their salaries if doctors
are paid $20000 per month and paramedics $5000 per month.
[Note: Observe that the equations in Problems 3 and 4 involve 'xy' term which denotes the combined
effect of two category of workers.This is called an ' interaction term'.]
------------------------------------------------------------------------------------------------------
The process of finding the partial derivatives can be extended to a function with three variables :
F = f(x,y,z)
We can find second partial derivatives by doing partial derivatives again.Here we can find four kinds of
partial derivtives for z=f(x,y) They are:
, , and
The last two need not be the same.
Example 14: Find the four second partial derivatives for the given function:
Practice Problems
5 Numerical Integration
This is a large subject of great importance since many functions cannot be integrated using the
functions known to us.Many times, empirical or experimental data will have complex pattern and we
want to integrate.Here we study only three simple methods :
--
---
----
The basic concept of finding the integral numerically is to find the area under a curve and above the x
axis and two vertical lines x=a and x=b, the limits of integration.
To find this area, let us approximate the area to a simple figure, like a rectangle or trapezium or an
umbrella like,parabola figure.!
Midpoint method
Example 15
Suppose you want to integrate: I =
This curve can be approximated by a rectangle of width w= b -a = 2 -1 =1 and height as the value of
the function at the middle of the width:
f(x) =exp(x) at x= 1.5 ,that is : f(1.5) = exp(1.5)
Let us evaluate this function exactly: I = exp(2) - exp(1) = 7.38905 - 2.7183 = 4.67075
Multiple strips
We can get more accurate value for the integral by taking several strips of areas below the curve and
using the midvalue of each width for evaluating the area of each strip. Let us try with four strips and
adding the area of the four strips.
Note that by taking four small strips of area, we have reduced the error form 4% to 0.4%
Suppose you take 8 strips of area of width 0.125 , you can reduce the error further.!
Of course, the computation gets tiring by hand calculations ,forming a table like this.
You can write a simple computer program using your favorite language {BASIC,C ,Fortran or Java } and
perform the computation in a fraction of a minute.Once the program is written ,it can be used for
several such problems.Try doing that.!That is a great way to learn numerical methods and computer
programming in one shot.!!
[ Each width is often called 'step size' and multi-strips as 'multi-step' methods]
Trapezoidal Method
Example 16
We will construct a trapezoid for the area under the curve of exp (x) from x=1 to x =2.The vertical lines
at x=1 and x=2 touching the curve are the two sides of the trapezium.Let us join the points (1,exp(1))
and (2,exp(2)) by a straight line. The x axis from x=1 and x=2 is the other boundary.
What is the area of this trapezium? : area A = width (side 1+side2)/2
This method uses the chord connecting the two points : f(2) and f(1)
We can improve this method by cutting up the area into strips ,each strip a small trapezoid.
Let us divide the width x=2 to x=1 by four strips.
We can simplify this: step 1 find S'= [f(a) + f(b) ]/2 ----the end points
If we want more accuracy, we have to increase the number of strips or n, then the number of function
evaluations increases too.
[This procedure resembles what Archimedes did to find the value of pi by taking small strips along the
circumference of a circle.Read about this.]
This procedure is easy to do with computer programs.But with increasing function evaluations,the
'truncation error' may increase.Learn about this.!
Simpson's Rule
This is a well-known, powerful method for numerical integration.In midpoint method and trapezoidal
rule,we used straight line to approximate the curve.By breaking down the curve into small line
segments ,we could achieve some accuracy.
The next improved method is to replace the given curve by a parabola, with three points.This leads to
Simpson rule.
If we want to integrate :
What are the approximate values of a,b and c.? By curve -fitting or quadratic interpolation, we can find
the best values of a ,b and c.
In Simpson's rule, let us find f(x) at three points, x=a, x=b(the end points) and the middle value of
x:.x=(a+b)/2
Take the three functions: f(a) , f((a+b)/2) and f(b)
Then Simpson rule is given as follows:
Note that we are giving greater weightage for the mid value of f(x) in the curve, four times the two end
point values and divide by six....That is how it turns out when we fit the curve to a parabola. [Other
masters have given other weighted average formula for height ...see Weddle's rule ,for instance]
In general, all these methods ivolve multiplying the width of a strip with weighted average of heights at
different values of x.In Trapezoidal, we take I =width [f(a)+f(b)]/2, the mean value.
Example 17
Let us take the same integral given earlier.
This method has been the favorite of practical engineers. With computer programs, it is really easy to
execute the Simpson's rule.Note that you can cut up the x axis into smaller strips and apply Simpson's
rule .For instance you can intgerate first from x=1 to x=1.5 and then from x=1.5 to x=2 , with a total
lof six functional evaluations.
The answer is ,of course, ln2. Let us get this value by Simpson's rule.
Step 1: width = 2-1 =1
Step2: Evaluate the function f(x) =1/x at three points:
x f(x)=1/x
1 1
1.5 1/1.5
2 0.5
I = width x average height = 1 [ 1 + 4/1.5 +0.5]/6 = 0.69444
The exact value I = ln 2 = 0.69315 Error= 0.00129 or 0.18%
We extend the simpson rule by breaking the width into even number of strips.
For instance, consider :
Note that we have reduced the width now to 0.5, and most important ,the multiplying factors are:
1,4,2,4,1.In composite formula,the multipliers are 1,4,2,4 sequence. Try this in practice problems.
Example19 Find by Simpson's rule [multiple steps]
Note: Archimedes found a value of 'pi' by the laborious method of approximating a circle to a polygon of
n sides [n-gon] with 12 sides, 72 sides and so on.Now we can get 'pi' using numerical integration and
Simpson's rule in a few steps.
Practice Problems
Using Trapezoidal rule and Simpson's, evaluate the following integrals or for the following functions
for the interval indicated:
Check your approximate value with the actual and find the %error:
1
Ans: ln 5
2 Ans: 193.6
Ans: 21/32
4 Ans: 1.154
Applied Problems
1 The work done by an electric motor for a machine is given by the integral:
where
Find the integral by Simpson's method. Ans: 10,233.6
3 The stress versus strain curve beyond the elastic region for a steel is given by the table here:
Strain (x) Stress (y)
0.05 37.5
0.10 43
0.15 52
0.2 60
0.25 55
Find the integral of stress in terms of strain from x= 0.05 to x= 0.25
Ans: 10.141
[Note: The numerical integration can be used for data in tabular form as given in this example.]
3 For the first four topics, there are many books with the title "Advanced Calculus" which should be
useful.
A classic, brief book is : Serge Lang: 'A First Course in Calculus'.[Springer] and another is F B
Hildebrand's 'Advanced Calculus for Applications.'
4 For numerical methods, there are several books available.I suggest one here:
S C Chapra and R P Canale Numerical Methods for Engineers {Mc Graw Hill}
A classic book is: F B Hildebrand: Introduction to Numerical Analysis [Dover reprint]
5 It is strongly suggested that you write your own computer programs for numerical methods and for
polynomial evaluations.
6 I have included many problems of business interest [maximising the profit or revenue,minimising cost
,marginal costing and replacement decision] and general interest.
Leave your feedback in my email :nksrinivasan at hotmail dot com
------------------------------xxxxxxxxxxxxxxxxxxxx----------------------------------------