Calculus Overview: 0.1 Limits and Continuity
Calculus Overview: 0.1 Limits and Continuity
Calculus Overview: 0.1 Limits and Continuity
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.
(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)
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.
2
Physics: Mechanics Everaise Academy
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:
3
Physics: Mechanics Everaise Academy
f (x + ∆x)
f (x)
x x + ∆x
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.
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 .
(xn )0 = nxn−1 .
4
Physics: Mechanics Everaise Academy
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.
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.
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.
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.
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.
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,
8
Physics: Mechanics Everaise Academy
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.
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.
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,
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?
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
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.
Theorem 0.14. An infinitely differentiable function f (x) can be represented by the sum
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