Calculus Overview: 0.1 Limits and Continuity

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14
At a glance
Powered by AI
The passage outlines some basic concepts in calculus including limits, continuity, derivatives, separable differential equations, and Taylor series approximations.

A limit describes the behavior of a function as it approaches a certain value. It allows defining continuity and finding rates of change. Limits can be one-sided or two-sided.

The derivative of a function f(x) at a point a is defined as the slope of the tangent line to the graph of f(x) at x=a. It represents the instantaneous rate of change.

0 Calculus Overview

In this handout, we’ll quickly outline the basics of calculus that will be necessary for this
course. For those already familiar with calculus, feel free to skim through or skip the handout.

0.1 Limits and Continuity


Limits are really important tools in physics as they allow us to find the behavior of various phys-
ical systems at their endpoints (or their “limits”) which are often more intuitive than the general
behavior of the system. We won’t really be going into the technical mathematical definition of
what a limit is here, but we will instead focus on attaining a good intuitive understanding of
what a limit is. A limit is basically a value that a function approaches at a certain point. For
example, if f (x) = x, then
lim f (x) = 4.
x→4

We can graphically represent this as well:

(4, 4)

As we just saw, for a value a in the domain of f, limx→a f (x) = f (a). However, limits can be
defined for values not in the domain of f. For example, consider the function

x2 − 3x + 2
f (x) = .
x−1

Note that x2 − 3x + 2 = (x − 1)(x − 2), so the graph of f (x) is the same as x − 2, except with
a “hole” located at x = 1, where f (x) is not defined.

1
Physics: Mechanics Everaise Academy

(1, −1)

Hence, even though f (1) is undefined, we have that

lim f (x) = −1,


x→1

since f is defined near and still approaches (1, −1), even though it is not defined at that point
specifically.
Note that limx→a implies that the limit is two-sided, and equal on both sides. For some
functions, this might not be the case. consider the function
(
x, x > 0
f (x) =
1, x ≤ 0.

(0, 1)

(0, 0)

We denote limx→a+ as the limit from the positive side, and likewise limx→a− as the limit from
the negative side. Thus, we have

lim f (x) = 0,
x→0+
lim f (x) = 1,
x→0−
f (0) = 1

from the graph above. Since limx→0+ f (x) 6= limx→0− f (x), we have that limx→0 f (x) is unde-
fined. From this, we can see that limits give us a precise way to define continuity.

Definition 0.1. f (x) is continuous at x = a if:


1. limx→a f (x) exists.
2. f (a) is defined.

2
Physics: Mechanics Everaise Academy

3. limx→a f (x) = f (a).

Essentially, this means that you can take a pen, approach (a, f (a)) from either the positive
or negative side, and go through it without picking up the pen.

Many functions are continuous at all points in their domain, such as polynomials, exponen-
tial functions, or sine and cosine functions. Some notable exceptions include functions such as
trigonometric functions tan, sec, csc, cot; and rational functions such as x1 . Many of the courses
we will be dealing with in this class will be continuous so make sure to be able to differentiate
a continuous function from one that is not.

0.2 Derivatives
0.2.1 Definition

For a linear function y = mx + b, we know that the slope, m, gives the rate of change of the
function. But how can we generalize this notion of rate of change to x2 , sin(x) or other func-
tions, where the rate of change is not constant?

To find the instantaneous rate of change at a point x = a is equivalent to finding the slope
of the tangent line to the graph at x = a. Why does this work? The tangent line intersects the
graph locally at one point only, but it can be thought of as the line through two infinitesimally
close points on f. This means the tangent line’s slope matches the slope through these two
infinitesimally close points, which is really just the slope locally at that one point.
Since the value of this slope might be constantly changing, the rate of change of f (x) would
be a function of x as well. This is what we call the derivative of f (x) with respect to x.
Let’s say we are given a function f (x). Mathematically, how should we define the derivative
of f (x)? Consider the graph of an arbitrary function:

Let’s consider how we calculate the average slope over an interval:

3
Physics: Mechanics Everaise Academy

f (x + ∆x)

f (x)

x x + ∆x

The slope of any line is given as rise


run , so thus the average slope over the this interval (x, x + ∆x)
f (x)−f (x+∆x)
is given by ∆x . However, this is an average and not very accurate. To find the slope
at a specific instant, we take the limit as the interval approaches zero. In other words, we take
the limit as ∆x → 0. Over this “infinitesimally” small interval, the function acts like it is linear.
This is what motivates the following definition of a derivative.

Definition 0.2. For a function f (x), the first derivative of f (x) with respect to x is given by
 
d f (x + ∆x) − f (x)
f (x) = lim
dx ∆x→0 ∆x

There are many ways of denoting the derivative of a function. The derivative of a function
df
f (x) can also be denoted by any of the following: f 0 (x), f 0 , f˙, or dx .

Concept. The key takeaway here is that the derivative of a function f (x) gives the rate of
change of f (x) as x changes.

0.2.2 Differentiation Rules

We will now give basic rules to evaluate the derivative of various functions. We will not give
proofs, since they are rather computational and come from evaluating the limit definition of
a derivative, but they are easily accessible online. For the following identities, let f and g be
functions of x. Then:
1. Differentiation is linear. This means that for a constant c,

(c · f )0 = c · f 0 ,

and
(f + g)0 = f 0 + g 0 .

2. The Power Rule:


(f n )0 = n · f n−1 · f 0 .
When f (x) = x, we have the simplified form

(xn )0 = nxn−1 .

3. The Product Rule:


(f g)0 = f g 0 + f 0 g.

4
Physics: Mechanics Everaise Academy

4. The Chain Rule:


(f (g(x)))0 = f 0 (g(x))g 0 (x).

The chain rule also has an alternate form,


df df dg
= · .
dx dg dx
This has an important application, as we will now see.

Concept (Implicit Differentiation). So far, we have only taken the derivative of a function
f (x). However, sometimes it is burdensome to express a function in the form f (x) = · · · .
In this case, we can simply take the derivative with respect to x using the chain rule.

To illustrate this, consider the following example.

Example 0.3. For the graph of


x3 + y 2 = 64,
dy
give dx as a function of x and y.

Solution. In this case, y is not a function of x. However, we can still find the slope through
differentiation. Taking the derivative of both sides gives
d d
x3 + y 2 =

(64),
dx dx
and applying the chain rule gives
dy
3x2 + 2y = 0.
dx
Now rearranging gives that
dy 3x2
=− .
dx 2y


The derivatives of sine and cosine will also show up in physics, and as such are rather impor-
tant. The differentiation rules are as follows. For a constant a,
d
sin(ax) = a cos(ax)
dx
d
cos(ax) = −a sin(ax).
dx
The differentiation rules for logarithms and exponentials don’t appear particularly often in
physics, but we will list them here as well.
d f 0 (x)
(loga (f (x))) =
dx f (x) ln a
d  
af (x) = f 0 (x)af (x) ln a.
dx
This concludes our summary of basic differentiation rules. In a typical calculus class, a lot of
time is spent memorizing and applying these rules. For our purposes, however, this is generally
unnecessary. The most important differentiation rules to know are the power rule and the rules
for sine and cosine. The chain rule is also helpful, though mainly for implicit differentiation.

5
Physics: Mechanics Everaise Academy

0.3 Optimization
As you might have noticed, in our definition of derivative we used the term first derivative. It is
typically implied that the term “derivative” refers to the first derivative. However, higher-order
derivatives do exist and are important as well.

Definition 0.4. For a function f (x), define the k-th derivative of f (x) with respect to x
(denoted by f (k) (x)) as the first derivative of the (k − 1)th derivative of f (x):

d  (k−1) 
f (k) (x) = f (x)
dx

For example, the second derivative of a function f (x) is the derivative of f 0 (x).
Second-order derivatives show up frequently in physics, but derivatives of even higher orders
2
are rarely useful. The second derivative of f (x) is often denoted by f 00 (x), f 00 , f¨, or ddxf2 .
Recall that f 0 (x) is the rate of change of f (x), and that f 00 (x) is the rate of change of f 0 (x).
This will intuitively give us the following results.

Concept.
1. A function f (x) is increasing when f 0 (x) > 0, decreasing when f 0 (x) < 0, and constant
when f 0 (x) = 0. For x in the domain of f, points (x, f (x)) where f 0 (x) = 0 or where
f 0 (x) is undefined are called critical points.
2. A function f (x) is convex when f 00 (x) > 0, concave when f 00 (x) < 0, and linear when
f 00 (x) = 0. Points where f 00 (k) = 0 are called inflection points.

For those unfamiliar with convex and concave functions, here is a simplified explanation. The
term convex (also called concave up) refers to a function whose graph is “bowl-shaped”, while
the term concave (also called concave down) refers to a function whose graph is “dome-shaped.”
The reason critical points are so interesting is that all local minimums or local maximums of
a function must occur at a critical point (though not all critical points must be local extrema).
Note that if f 0 (x) changes from positive to negative, then f (x) has changed from increasing to
decreasing. There must be a peak at some point; this is in fact the point at which f 0 (x) = 0.
Hence, we have the following result:

Concept.
1. A function f (x) has a local minimum at x = c if f 0 (x) changes from negative to
positive at x = c.
2. A function f (x) has a local maximum at x = c if f 0 (x) changes from positive to
negative at x = c.

We’ll do a quick example to see how this helps with optimization problems.

Example 0.5. Olenna has 1000 feet of fence with which she wants to make a rectangular
garden. One side of the fence will lean against a castle wall and will not need to be fenced.
Find the dimensions of the garden that will maximize its area.

Solution. Let the dimensions of the garden by w × `, where (without loss of generality), we

6
Physics: Mechanics Everaise Academy

let ` be the length of the unfenced side. Then we have the following equation:

2w + ` = 1000
⇒ ` = 1000 − 2w.

Hence, the area of the garden can be expressed as a function of w:

A = w` = w(1000 − 2w).

Note that when A0 (w) = 0, this is a critical point, which will give us the value of w for our
desired relative maximum. Setting A0 equal to zero gives

A0 = 1000 − 4w = 0
w = 250, ` = 500.

Similarly, any relative maxima or minima of f 0 (x) must occur at an inflection point of f (x).
However, inflection points are also important because any change in the concavity of f (x) must
occur at an inflection point.

Maximizing and minimizing quantities are crucial in many physics problems, so make sure
you know how. This sums up the basics of using calculus for optimization problems. However,
differentiation has another important application, as we will see in the following section.

0.4 Related Rates


In problems where there are multiple variables which are functions of a single variable, typically
time(t), the relationship involving their rates of change can be obtained by differentiating with
respect to that common variable. We’ll now do some examples to show what we mean.

Example 0.6. Loras is baking a spherical tart, the volume of which is expanding at a rate
of 24 cubic centimeters per minute. At what rate is the radius r changing when r = 4 ft?

Solution. Note that the problem tells us dV dt = 24, and wants us to evaluate
dr
dt when r = 4.
The volume of the tart as a function of radius is given by
4
V = πr3 ,
3
as with any sphere. Taking the derivative with respect to time, we have that
dV dr
= 4πr2 .
dt dt
Hence, substituting gives us that
dr 3
= ft/min.
dt 8π


The key here is to differentiate with respect to t, and substitute the rate we are already given.
We’ll now do another example that might seem initially like a physics problem, but is again
solved easily using calculus.

7
Physics: Mechanics Everaise Academy

Example 0.7. A 13 foot ladder is leaning against a castle wall, and the top of the ladder is
sliding downward at a rate of 0.5 m/s. How quickly is the base of the ladder sliding when
the base is 12 m away from the castle wall?

Solution. Let x denote the horizontal distance from the wall to the base of the ladder, and let
y denote the vertical distance from the floor to the top of the ladder. The length of the ladder
is 13 feet, so by the Pythagorean Theorem, we have that

x2 + y 2 = 169.

Taking the derivative with respect to t, we have that


dx dy
2x + 2y = 0.
dt dt

Now recall the conditions give x = 12 and dy dt = −.5. By the Pythagorean Theorem again, we
see that at this instant y = 5. Hence, substituting gives that
dx 5
= m/s.
dt 24


0.5 Integrals
As we have seen, we can obtain the derivative of a function through differentiation. However,
given the derivative of a function, can we determine the original function?
The answer is not quite. Remember that the derivative is just the slope of a graph. If we
shift the graph vertically, the derivative will not change (the derivative of a constant is zero).
However, given a specific point on the original graph, we can determine the original function.
This process is called integration.

Definition 0.8. For a function f : [a, b] → R, we call a differentiable function F : [a, b] → R an


anti-derivative of f if F 0 (x) = f (x) for all x ∈ (a, b).

Definition 0.9. Define the indefinite integral


Z
f (x) dx

as the set of all anti-derivatives of f. Since all anti-derivatives of f differ only by a constant,
this is generally notated as Z
f (x) dx = F (x) + c,

where F is an anti-derivative of f, and c represents an arbitrary constant. You may be asking,


why do we have c there? The main thing is, that when you differentiate F (x) + c back, you’ll
notice that Z
d d
F (x) + c = f (x)dx = f (x)
dx dx
since the derivative of a constant c is simply the slope of the line y = c which is just zero. If we
have initial values, we can find the value of c which can help us in real life models.

8
Physics: Mechanics Everaise Academy

For example, we have that the indefinite integral of x is


Z
1
x dx = x2 + C.
2
To determine a function from its derivative, we can evaluate the indefinite integral, and
determine c by substituting an arbitrary point satisfied by the function.
Another useful form of integration is called the definite integral. The motivation for the
definite integral is to take the signed area under the curve. One way of approximating the area
is using rectangles:
4

0
−4 −3 −2 −1 0 1 2 3 4

−1

−2

−3

−4

This is not very accurate, but by shrinking the intervals of each rectangle, we can improve the
approximation. In fact, by shrinking the time intervals to be infinitesmally small, we can obtain
the exact area.
4

0
−4 −3 −2 −1 0 1 2 3 4

−1

−2

−3

−4

9
Physics: Mechanics Everaise Academy

Definition 0.10. Given a function f (x) continuous on the interval [a, b], divide [a, b] into n
equal subintervals of width ∆x and from each interval choose a point xi . Then we define the
definite integral of f (x) from a to b as
Z b n
X
f (x) dx = lim f (xi )∆x.
a n→∞
i=1

Concept. The key takeaway is that the definite integral of f (x) evaluates the signed area
under the curve of the graph of f (x). Areas under the x-axis are evaluated with a negative
sign.

Let us look at a table of important integral identities in calculus now:


Z Z
du
du = u + c = ln |u| + c
Z u
un+1
Z  
1 u
au du = a +c un du = + c, n 6= −1
Z ln a Z n+1
cos u du = sin u + c sin u du = − cos u + c
Z Z
tan u du = − ln | cos u| + c sec u du = ln | sec u + tan u| + c
Z Z
eu du = eu + c sec2 u du = tan u + c
Z Z
csc2 u du = − cot u + c csc u cot u du = − cot u + c

Let us look at a quick example of where integrating will be beneficial.

Example 0.11 (2019 Excellence in Mathematics Individual Test). Suppose dy 2


dt = 20t − 0.1t ,
where y represents the quantity of bolts produced, in thousands, after t hours of manufac-
turing. If y(0) = 100, determine the total number of bolts, in thousands, produced over
the interval 2 ≤ t ≤ 5. Round your answer to the nearest hundredth.

Solution. We simply take the definite integral


Z 5
dy = (20t − 0.1t2 )dt =⇒ y = 206.1
2

to see 206.1 bolts were produced on the time interval. 

We now state without proof the following important theorem which allows us to compute
definite integrals.

Theorem 0.12 (Fundamental Theorem of Calculus). This theorem consists of two parts:
(a) Let f be a continuous real-valued function on [a, b], and let F be a function on [a, b]
defined by Z x
F (x) = f (t) dt.
a
Then it holds that F is an anti-derivative of f on [a, b].
(b) Let f be a real-valued function on [a, b], and F an antiderivative of f on [a, b]. Then

10
Physics: Mechanics Everaise Academy

it holds that Z b
f (x) dx = F (b) − F (a).
a

Hence, just as we can calculate indefinite integrals with anti-derivatives, we can also calculate
definite integrals using anti-derivatives.

0.6 Differential Substitutions


In physics we sometimes will be given integrals that are difficult to integrate, so it is important
to know which substitutions we can make. For instance, if we have
Z
A = y dx,

we can write this as


dA = y dx.
We will now give a list of substitutions for differentials that are often useful in physics:
1.
dA = x dy.
This substitution comes as a symmetry of dA = y dx by switching x and y.
2. For a circular shape, it might help that we use the substitution

dA = 2πr dr,

where r is distance from the origin. This substitution comes from considering an infinites-
imal change in area change as adding a circular ring of radius r and infinitesimal thickness
dr (which will hence have an area of 2πr · dr).
3. In general, we have the volume differential is equal to

dV = A dz,

where A is the cross-sectional area and dz is an infinitesmal thickness.


4. For a cylindrical shape of radius R length `, we also have the volume differential

dA = 2πr` dr = πR2 dz.

The first substitution is a generalization of the circular volume differential (integrating


from r), whereas the second substitution comes from dV = A dz (integrating along the
long axis of the cylinder).
5. Similarly, for spherical shapes have that the volume differential is equal to

dV = 4πr2 dr.

This comes from considering the change in volume as adding a spherical shell of radius r
and infinitesimal thickness dr.
We will now do an example.

11
Physics: Mechanics Everaise Academy

Example 0.13. A circular disk of radius R has its center located at the origin (0, 0). The
the circular disk has density given by the function x2 + y 2 . What is the mass of the disk?

Solution. We wish to compute Z


M= dm.

Note that in this case, density is dm/dA. Hence, we have


dm
= x2 + y 2 =⇒ dm = (x2 + y 2 ) dA.
dA
It is easier for us to now convert to polar coordinates. We have
Z Z Z R
2 2 2 π
(x + y ) dA = r dA = r2 · 2πr dr = R4 .
0 2

0.7 Differential Equations


Throughout the course, we will have to solve a number of differential equations to find the
time-dependence of physical quantities. A differential equation is one that involves derivatives
(which in our case, will mostly be with respect to time) of the variable we’re solving for. Here
are a few examples of differential equations:
dy
1. dx = 3
dy
2. dx = x sin x
dy 2 1
3. x dx 2 = ln y

There are many types of differential equations, with some more complicated than others.
Solving a differential equation usually entails finding the dependence of one of the variables
on another. This is more easily said than done however, as often times solving a differential
equation can become extremely hard and at times even impossible. In this course however,
we’ll only be dealing with a very small subset of differential equations. Namely, we’ll only
be dealing with ordinary differential equations (ODE), a differential equation with one or
more functions of a single variable, with all derivatives relative to that same variable. All the
differential equations in the list above are ordinary differential equations (Note that we do not
have any partial derivatives and all derivatives are with respect to x).
Now, in a typical differential equations course, you’ll general learn a number of tips and tricks
to solving various types of ODEs. In this course however, you’ll only really have to be able to
solve differential equations that are separable. The solutions to all other types of differential
equations will be given.
Sometimes the differentials in the differential equations can be separated and then integrated
which results in a solution: for example, consider the differential equation
dy x
= − x2
dx ye
Note that we can separate the xs and ys to their own side of the equation so that we get
x
ydy = dx
e x2

12
Physics: Mechanics Everaise Academy

We now note that we can integrate both sides which gives


Z Z
x
ydy + C1 = dx
ex2
1 2 1 −x2
y = e + C2
2 2
for some constants C1 , C2 . Note however, that this gives us a solution to the differential equation:
namely by multiplying both sides by 2 and then squaring, we get that solutions of the form
p
y = ± e−x2 + C
where C is some constant forms the solution set to the differential equation.

For more information on separable differential equations see An Introduction to Separable Dif-
ferential Equations.
We’ll encounter other separable equations often in the future so make sure you know how to
solve them when presented with one.

0.8 Taylor Approximations and Series


The final application of calculus we present is in approximations. Consider the following theo-
rem, which we state without proof.

Theorem 0.14. An infinitely differentiable function f (x) can be represented by the sum

f (a) f 0 (a) f 00 (a)


f (x) = (x − a)0 + (x − a)1 + (x − a)2 + · · · .
0! 1! 2!

The motivation behind this theorem is that substituting the nth derivative of f (x) (denoted
f (n) (x)) for f (x) is equivalent to differentiating the right-hand side n times. Since this must
hold for any n ≥ 1, we obtain this series as the sum. This sum is called the Taylor series
centered at x = a, and when centered at x = 0, it is also called the Maclaurin series.
The Maclaurin series of (1 − x)−1 , for example, is given by
(1 − x)−1 = 1 + x + x2 + x3 + · · ·

The reason these series expansions are so useful is that under certain constraints, they allow
us to approximate more complicated functions. For instance, if x  1, then we can approximate
that 1/(1−x) ≈ 1+x, since the other terms are all exponentially smaller in magnitude. Similarly,
we have the binomial expansion:
 
n 2
(1 + x)n = 1 + nx + x + · · · + nxn−1 + xn .
2
As with the previous Maclaurin series, for small values of x  1, we can approximate (1 + x)n ≈
1 + nx.
Two other Maclaurin series that give useful approximations in physics are
1 1 1 x2n+1
sin(x) = x − x3 + x5 + · · · + (−1)n + ···
1! 3! 5! (2n + 1)!
1 1 1 x2n
cos(x) = − x2 + x4 + · · · + (−1)n + ···
0! 2! 4! (2n)!

13
Physics: Mechanics Everaise Academy

Hence for small values of x  1, we can approximate that sin(x) ≈ x− 61 x3 and cos(x) = 1− 12 x2 .
Sometimes, it might even be necessary to approximate sin(x) ≈ x and cos(x) ≈ 1. In this case,
tangent can also be approximated by tan(x) ≈ x. This specific approximation is referred to as
the small-angle approximation which roughly holds when x < 10deg .
In summary, for small values of x  1, we have the following:
1
≈1+x
1−x
(1 + x)n ≈ 1 + nx
sin x ≈ x
x2
cos x ≈ 1 − .
2
All four of these approximations will be useful in physics problems and allow us to approximate
otherwise chaotic calculations, particularly in the presence of nasty integrals that would be
otherwise be difficult (or at times impossible) to solve. They will also make a number of our
formulas “nicer” although we still need to make sure we uphold the conditions for which these
approximations hold.

14

You might also like