Calculus

From Jonathan Gardner's Physics Notebook
Jump to: navigation, search

Before You Can Begin

  • Know Algebra. You can't even begin to understand the concepts with this.
  • Know Geometry and Trigonometry. Calculus assumes you know these topics and uses concepts from them frequently.

The specific things you must know:

  • Understand that variables can take on any value, up until the point you put constraints on them in the form of inequalities and equations.
  • Understand what a function is, what <math>f(x) = x^2</math> means.
  • Be familiar with how polynomial functions behave. Can you draw the graph for <math>y = 3x^2 + 5?</math> If not, you'll have a hard time even considering the discussions below.

As for the rest, you can probably pick it up along the way. Don't know what something is? Just look it up.

Limits

Definition

The formal definition of a limit is

<math>\lim_{x \rightarrow c} f(x) = L\,</math>

means that for all real values of <math>\epsilon > 0 \,</math>, there exists <math>\delta \,</math> for all <math>x \,</math> such that <math>0 < |x - c| < \delta \,</math>, we have <math>|f(x) - L| < \epsilon \,</math>.

Although this won't mean much to the junior mathematician, it is important to understand since limits are used a lot more than you think.

In My Words

  1. Assume that the limit of <math>\lim_{x \rightarrow c} f(x) \,</math> is L.
  2. Choose an arbitrarily small number for <math>\epsilon</math>, something very, very close to 0 but not 0. (Hint: Choose <math>10^{-10}</math> or some other large, negative exponent.)
  3. Find the value of <math>x</math> in <math>|f(x)-L|</math> that will get you something smaller than <math>\epsilon</math>.
  4. Make sure that <math>|x-c|</math> gives you a real number bigger than 0. That is, you can't use <math>x=c</math>.

If you can do the above for every imaginable <math>\epsilon</math>, then you have found the limit.

In Practice

Finding the limit can be tricky, especially if you don't follow some careful rules.

  1. Even if the function is not defined at <math>c</math>, the limit may still exist. Just put your finger over the graph at that point and ignore it because you can't even think about it. (If you're dealing with infinity, this is easy. You can never, ever reach infinity so you can't even consider it.)
  2. Think about what happens to the function as you approach <math>c</math> from both sides.
    • If it is a different value from one side than another, the limit doesn't exist. (Unless you're doing one-sided limits, which are rare.)
    • If it switches between two values without stabilizing, the limit doesn't exist.
    • If it shoots off to infinity, the limit doesn't exist.
  3. If the function smooths out before reaching <math>c</math>, and tends to a single value, that's the limit.

Notice that the definition of the limit doesn't even enter into the discussion of how to find the limit. We always work backwards, starting with the limit, and see if the definition holds up precisely, rather than the other way around.

Example

As a simple example, let's find:

<math>\lim_{x \rightarrow 0}\frac{2xy+y^2}{x}</math>

(This is what you get when you try to differentiate <math>y^2</math>, and substitute <math>\delta y = x</math>.)

Given the above, the values from the definition are: <math> \begin{align} f(x) &\equiv \frac{2xy+x^2}{x} \\ c &\equiv 0 \\ \end{align} </math>

Keep in mind that we can never, ever plug in <math>x = c</math>, because <math>0 < |x - c| < \delta \,</math>. However, I know, already, that this is going to end up <math>L = 2y</math>.

<math> \begin{array}{l | l | l | l} x & \delta & f(x) & \epsilon \\ \hline 1 & > 1 & 2y+1 & > 1 \\ 0.1 & > 0.1 & 2y+0.1 & > 0.1 \\ -0.1 & > 0.1 & 2y-0.1 & > 0.1 \\ n & > n & 2y+n & > n \\ \end{array} </math>

It is clear that for any number what the limit will be as we approach 0.

Table of Limits

These are some common operations you can perform on limits:

<math> \begin{align}

\lim_{x \rightarrow n}(f(x) \pm g(x)) &= \lim_{x \rightarrow n}f(x) \pm \lim_{x \rightarrow n}g(x) \\

\lim_{x \rightarrow n}(f(x) g(x)) &= \left (\lim_{x \rightarrow n}f(x) \right ) \left ( \lim_{x \rightarrow n}g(x) \right ) \\

\lim_{x \rightarrow n}\frac{f(x)}{g(x)} &= \frac{\lim_{x \rightarrow n} f(x)}{\lim_{x \rightarrow n} g(x)} \\

\lim_{x \rightarrow n}\frac{f(x)}{g(x)} &= \lim_{x \rightarrow n}\frac{f'(x)}{g'(x)}\text{ (L'Hôpital's rule)} \\ \end{align} \,</math>

Otherwise, limits are pretty much common sense. I could write down a few equations for you, but they're really not that useful. You should be able to figure them out just by thinking a little bit.

Derivatives

The derivative is simply the slope of a curve at a given point.

Recall that the slope between two points on a curve is simply:

<math> \frac{f(x + \delta x) - f(x)}{\delta x} </math>

If you want to find the slope at a point, you simply have to bring <math>\delta x\,</math> all the way down to 0. But you obviously can't divide by 0, so you have to find the limit of the slope as it approaches zero.

<math>\frac{d}{dx} f(x) \equiv f'(x) \equiv \lim_{\Delta x \rightarrow 0} \frac{f(x+\Delta x) - f(x)}{\Delta x} \,</math>

Forms

There are a few forms of derivatives you might see.

Liebniz: This is the oldest, and arguable, the least confusing, although it is cumbersome. Physicists don't use this much beyond introductory courses.

<math> {d \over dx} f(x) </math>

Oftentimes, the parameters to the function is dropped. You have to know that the function varies in x, otherwise the derivative is just 0.

<math> {d \over dx} f </math>

You can take the derivative twice:

<math> {d \over dx}{d \over dx} f \equiv {d^2 \over dx^2} f </math>

It should be obvious what the 3rd and 4th derivatives look like, although they are rarely, if ever, used in Physics.

Newton: The newton form only applies to time derivatives, and involves putting dots on top. This is extraordinarily useful for basic physics.

<math> \begin{align} {d \over dt} f &= \dot f \\ {d^2 \over dt^2} f & = {d \over dt} \dot f = \ddot f \\ \end{align} </math>

Total derivative: Take Liebniz notation apart you can deal with dt, dx, dy, etc... separately. It's a bit easier to make mistake with this notation, but if you know what you are doing, it's very valuable.

Prime Notation: If you know what you are deriving against, you can use hash marks to note how many derivatives you need. For functions of one variable, the derivative is obvious.

Subscript Notation: If a function is multi-variable, you'll need to use subscripts that describe the derivative. (This is multi-variable calculus, which isn't described here.)

Physical Interpretation

The derivative gives you rates. This could the rate of the change in position of a particle over time, commonly known as the speed or velocity. It could also be the rate of the rate of the change of the position over time, or the acceleration. It could also represent the rate of change in the temperature as you vary the pressure and keep the volume of a gas constant.

Derivatives, as you might imagine, are used extensively in physics. In fact, modern physics would not exist without this basic concept.

List of Derivatives

Finding the derivative of a particular function is not hard, but it's best to memorize as many derivatives as you can. (When we do integrals, we'll have to work backwards.)

I don't recommend memorizing the proofs for each of the following. Just put the tools in your toolbox, and remember how to use them.

<math>\text{Note: }a,\ b\ \text{are constants, and}\ f,\ g\ \text{are functions of }x.\,</math>

<math> \begin{align}

          \frac{d}{dx}a &= 0 \\
        \frac{d}{dx}x^a &= ax^{a-1}\text{, except when }a\text{ is }0\text{. (See above for that.)} \\
      \frac{d}{dx}(f+g) &= \frac{d}{dx}f + \frac{d}{dx}g \\
       \frac{d}{dx}(fg) &= \frac{d}{dx}(f)g + f\frac{d}{dx}(g) \\
\frac{d}{dx}\frac{f}{g} &= \frac{\frac{d}{dx}(f)g - f\frac{d}{dx}(g)}{g^2} \\
       \frac{d}{dx}f(g) &= \frac{d}{dx}g \frac{d}{dg}f \text{ (Chain Rule)} \\
        \frac{d}{dx}e^x &= e^x \\
      \frac{d}{dx}\ln x &= {1 \over x} \\
        \frac{d}{dx}a^x &= a^x \ln a \\
   \frac{d}{dx}\log_n x &= {\log_n e \over x} \\
     \frac{d}{dx}\sin x &=  \cos x \\
     \frac{d}{dx}\cos x &= -\sin x \\
     \frac{d}{dx}\sec x &=  \tan x \sec x \\
     \frac{d}{dx}\csc x &= -\cot x \csc x \\
     \frac{d}{dx}\tan x &=  \sec^2 x \\
     \frac{d}{dx}\cot x &= -\csc^2 x \\
  \frac{d}{dx}\arcsin x &=   {1 \over \sqrt{1 - x^2}} \\
  \frac{d}{dx}\arccos x &= - {1 \over \sqrt{1 - x^2}} \\
  \frac{d}{dx}\arcsec x &=   {1 \over x \sqrt{x^2 - 1}} \\
  \frac{d}{dx}\arccsc x &= - {1 \over x \sqrt{x^2 - 1}} \\
  \frac{d}{dx}\arctan x &=   {1 \over 1 + x^2} \\
  \frac{d}{dx}\arccot x &= - {1 \over 1 + x^2} \\

\end{align} </math>

This is another format that implies the Chain Rule.

<math> \begin{align}

   da &= 0 \\

d(f+g) &= df + dg \\

d(fg) &= f\,dg + g\,df \\

d(f/g) &= (g\,df - f\,dg)/g^2 \\

 df^a &= af^{a-1}\, df \\
 da^f &= \ln (f)\,a^f\,df \\
 df^g &= gf^{g-1}\,df + \ln(f)\,f^g\,dg \\

\end{align} </math>

Practice

It takes a fair bit of practice to learn how to apply the derivatives above. Take the time to get really good at finding the derivative. Spend many hours doing the practice problems from your calculus textbook.

Note on the Chain Rule

The Chain Rule is the one most people get wrong, and is the hardest one to see in the wild. When you do spot it, and properly apply it, give yourself a pat on the back because that puts you in the top 1% of the 1%.

I won't go over how to use the chain rule here, because your calculus textbook should devote a large portion of time to it, and there should be plenty of good problems and examples to work out on your own.

Many derivative tables include derivatives that are found simply by applying the chain rule. I wouldn't memorize those that are obviously chain rule derivatives, such as <math>{d \over dx}e^{ax} = ae^{ax}</math>. In fact, I would rather just learn to see the chain rule and then apply it.

Memorization

From here on out, you will need to know the derivatives fluently. You should be able to take the derivative of almost any formula in a matter of seconds. Think of how well you can add and multiply, and aim for the same proficiency of differentiation.

If you do not choose to memorize the differentials, when you approach integrals, you will be lost in the math and unable to grasp the core concept which is the fundamental theorem of calculus. You'll miss the forest for the trees.

Integrals

Integrals are a measure of the area under a curve.

Indefinite integrals do not have bounds attach. You can think of these as formulas for how to calculate definite integrals. You solve these simply by finding the anti-derivative, or the thing that gives you the derivative of what's in the integral.

Definite integrals have bounds attached. They may be infinity.

Evaluating definite integrals is really easy. Plug the high value into the indefinite integral, and subtract the low value. Don't forget that you have a constant to add at the end.

Multi-Variable, Path, etc...

I won't touch advanced integrals here. Note that all you need is a few tricks and you can do any kind of integral you can imagine. I'll cover these in advanced math.

List of Integrals

I'm not going to include a list of integrals. Why? Because if you can't see the obvious connection between the chain rule, the derivatives above, and the integral you have to solve, you either haven't learned to see the chain rule, or you haven't memorized the derivatives.

You can find books of integrals, and can even go to your favorite math tool to help you solve the most complicated ones you will ever see. (You won't be dealing with these integrals for a long time, so don't panic.)

There are certain integrals that can expand in more than one way, and there are some that even experienced, practicing math teachers will miss. Just get in the habit of being able to find the anti-derivative, or turning to your integral book or a computer program. Don't bother memorizing integrals, it's a waste of memory.

Differential Equations

When you have equations like:

<math>{d \over dx}f(x) = 5x</math>

you'll either know the answer right away (<math>f(x) = {5 x^2}/2 + C</math>), or you'll be stuck.

Differential equations are HARD. There are certain physical problems that we can find the differential equation for, but CANNOT find a complete answer for. The simple pendulum is such an example.

There are entire courses taught about differential equations, the various problems in solving them, and the handful of techniques for figuring out the ones that are not solvable, and what to do when you get stuck with a hard one. You can't possible know any of this at this level.

Fundamental Theorem of Calculus

This is simply that the anti-derivative is the integral, as we've already said. This is one of those things that should make you go, "Wow!"

In plainer language: Take any function. Now find the function that describes how the function changes at every point in its domain. Now take the area under that secondary function. You'll get the original function back.

Alternatively, take the area under the first function's curve. Now find how the area changes at every point. That will be the same as the function itself.

In definite terms:

Let's let <math>f(x) = x^2</math>.

What is the area under the curve from 0 to a specific point? <math>f(x) = x^3 / 3.</math> (This is the partial integral from 0 to x: <math>\int_0^x x^2\, dx</math>.) What is the slope of the tangent (ie, derivative)of that function at every point? <math>x^2</math>, the original function.

The other way: What is the slope of the tangent at every point along the curve? <math>f(x) = 2x</math>. (This is the derivative). What is the area under the curve from 0 to any point? <math>x^2 = \int_0^x 2x\,dx</math>.

Have you whetted your appetite?

If you've made it through calculus, and you're feeling pretty good, then you're probably going to be a mathematician or a physicist. If you like to think about what the derivative and integral mean in the real world, you're probably going to be a physicist. If you like to know how each of the derivatives are derived, and can restate the fundamental theorem of calculus in precise language, you're going to be a mathematician.

Fortunately, calculus is pretty much as hard as it will ever get. From her on out, math will be easy, not because the theorems you will learn were discovered easily, but because it's just learning how to apply what you already know to a variety of problems.

Pat yourself on the back! You're ready to enter the big leagues, and you're ready to start seeing the "man behind the curtain" of reality itself.