Calculus

Differentiation

It is the slope of the line. Given by dydx . The more proper definition would be.

dydx=limh→0f(x+h)−f(x)h

For example,

f(x)=x2dydx=limh→0(x+h)2−x2h=limh→0x2+2xh+h2−x2h=2x

Chain Rule

ddxf(g(x))=f′(g(x))⋅g′(x)

Product Rule

ddxf(x)⋅g(x)=f′(x)g(x)+f(x)g′(x)

Quotient Rule

ddxf(x)g(x)=f′(x)g(x)−f(x)g′(x)g(x)2
f(x) f′(x)
xn nxn−1
ef(x) f′(x)⋅ef(x)
af(x) ln⁡a⋅f′(x)⋅ef(x)
ln⁡(x) 1x
sin⁡x cos⁡x
cos⁡x −sin⁡x
tan⁡x sec2⁡x
arcsin⁡x 11−x2
arccos⁡x −11−x2
arctan⁡x 11+x2
sec⁡x sec⁡xtan⁡x
csc⁡x −csc⁡xcot⁡x
cot⁡x −csc2⁡x

Integration

Integration is just the opposite of differentiation

Integration by Substitution

  1. Substitute a function as a variable.
  2. Change the limits and dx. Integrate with respect to that said variable
Example

This is a sample question from the Math worksheet
Use substitution of x=tan⁡θ to find ∫011(x2+1)2dx

Step 1. Finding dx

dxdθ=sec2⁡θdx=sec2⁡θ dθ

Step 2. Sub in x=tan⁡θ, and dx and changing the limits

∫011(x2+1)2dx=∫arctan⁡0arctan⁡11(tan2⁡θ+1)2sec2⁡θ dθ[Using trigo identities]=∫0π41sec2⁡θdθ=∫0π4cos2⁡θ dθ[Using double angle formulae]=∫0π4cos⁡2θ+12 dθ=[sin⁡2θ4+12x]0π4=14+π8[QED]

Integration by Parts

ddxuv=u′v+uv′uv=∫u′v+uv′dx=∫u′v dx+∫uv′ dx

Thus

∫u′v dx=uv−∫uv′ dx
Example

This is a sample question from the Math worksheet
Find ∫xln⁡x dx

  1. sub v for the part that is hardest to integrate.
  2. sub u′ for the part that is easiest to integrate
Substitute if u′ v
Hard to Integrate X
Easy to Integrate X

Since ln⁡x is hard to integrate and x is easy to integrate, let v=ln⁡x, and u′=x ,

∫xln⁡xdx=∫u′v dx=uv−∫uv′ dx=x22ln⁡x−∫x221x dx=x22(ln⁡x−12)+C

A nice application of this formula is in its immense contribution in Proof for Wallis Product.

Trick for inverse trigo functions:

This type of questions typically asks us to solve for ∫ka+(xb)2 dx or ∫ka+(xb)2 dx
But how do we solve it??

  1. Force the a in the denominator to be 1 by factoring a out.
  2. Perform integration by substitution on the value xb
  3. Substitute the appropriate inverse trig identity and solve.
Example

This is a sample question from the Math worksheet
Find ∫342−(5x+3)2dx

Step 1. Force the a in the denominator to be 1 by factoring out 4.

∫342−(5x+3)2dx=∫34⋅1−(5x+34)2dx

Step 2. Perform integration by substitution by letting u=5x+34

dudx=54∫34⋅1−(5x+34)2dx=∫34⋅1−u245du=35∫11−u2du

Step 3. Substitute the appropriate inverse trig identity and solve.

35∫11−u2du=35arcsin⁡u=35arcsin⁡5x+34

Solving using Reverse Factor Formulae

Reverse Factor Formulae

2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)
2cos⁡Asin⁡B=sin⁡(A+B)−sin⁡(A−B)
2cos⁡Acos⁡B=cos⁡(A+B)+cos⁡(A−B)
−2sin⁡Asin⁡B=cos⁡(A+B)−cos⁡(A−B)

Example

Find using the reverse factor formulae

∫sin⁡5xcos⁡3xdx

Step 1. Identify which reverse factor formulae to use.

sin⁡Acos⁡B=12(sin⁡(A+B)+sin⁡(A−B))

Step 2. Substitute the corresponding values into A and B

sin⁡5xcos⁡3x=12(sin⁡8x+sin⁡2x)

Step 3. Integrate the expression above

∫12(sin⁡8x+sin⁡2x) dx=−116cos⁡8x−14cos⁡2x+C

Volume of Revolution

Suppose we have f(x), rotating it around the x−axis would form a volume of

V=π∫abf(x)2 dx

Ordinary Differential Equations (ODE)

Solving a Variable Separable Differential equation

We can sorta treat dydx as fractions. Its quite intuitive.

Example

Find the general solution of the following.

dydx=135−y2

Step 1. Put all the y on one side and the x on the other

15−y2dydx=13

Step 2. Multiply dx on both sides

15−y2dy=13dx

Step 3. Put an Integral sign on both sides and solve

∫15−y2dy=∫13dx∫15−y2dy=∫151−(y5)2dy,sub u = y5,dudy=15 =∫1511−u25 du=arcsin⁡u+C=arcsin⁡(y5)+C=13x

Thus

arcsin⁡(y5)=13x+Cy=5sin⁡(13x+C)

Solving homogeneous differential equations by substituting y=vx

It argues that this will make your life easier when solving differential functions dydx that can be expressed in terms yx, like f(yx)

dydx=f(yx)

So it assumes when you divide y by x, you get a function v .

y=vx

thus

dydx=vx′+v′x=v+dvdxx=f(v)

I think its best for an example

Example

Find the general solution of the following.

dydx=(yx)2+yx+1

Step 1. Substitute yx as v

dydx=v2+v+1

Step 2. Since dydx=v+dvdxx , equate that to the above

v2+v+1=v+dvdxx

Step 3. Solve the equation

∫1xdx=∫1v2+1dvln⁡|x|+C=arctan⁡vv=tan⁡(ln⁡|x|+C)y=x⋅tan⁡(ln⁡|x|+C)

Solving a Differential Equation using Integrating Factor

It aims to solve for differential equations in this form

dydx+P(x)y=Q(x)

Objectives: I want to separate y on the left and x on the right. We can do this by multiplying throughout by an arbitrary function called Integrating factor I(x)

Suppose the Integrating factor I(x) follows this property

I′(x)=P(x)I(x)

Why tho? See that if we multiply throughout by I(x)

I(x)dydx+I(x)P(x)y=I(x)Q(x)

thus

I(x)dydx+I′(x)y=I(x)Q(x)ddxI(x)y=I(x)Q(x)[Integrate throughout]I(x)y=∫I(x)Q(x) dxy=∫I(x)Q(x) dxI(x)

Defining I(x)
Since

P(x)=I′(x)I(x)

Integrating both sides

∫P(x) dx=∫I′(x)I(x) dx=ln⁡|I(x)|+CI(x)=e∫P(x) dx+C=Ae∫P(x) dx[where A=eC]

Thus
For simplicity, let C=0, thus A=1

y=∫e∫P(x) dxQ(x) dxe∫P(x) dx
Example

Find the general solution of the following.

dydx+y=3ex

Note that the coefficient of dydx has to be 1

Step 1. Identify P(x)=1, find the integrating factor I(x)

I(x)=e∫1 dx=ex

Step 2. Multiply throughout by I(x)

exdydx+exy=3e2x

Step 3. Solve

exdydx+exy=3e2xddxexy=3e2xexy=∫3e2x dx=32e2x+Cy=32ex+Ce−x

Euler's Method

It attempts to approximate the function by using its derivatives. Suppose

dydx=f(x,y)≈ΔyΔx

Suppose we know (x0,y0), which is a point lying on y.
For some small increment in x by Δx.

{xn+1=xn+Δxyn+1=yn+Δx⋅f(xn,yn), n = 0, 1, 2, 3 ...

Understand that essentially

yn+1=yn+Δy

Limits

limx→0f(x) ask the question, what does the value f(x) approach as x approaches 0?

We are interested in finding the limits of a function in which just subbing in the values of
x would yield an undefined solution like 00 or ∞∞. Suppose f(0)=g(0)=0.

limx→0f(x)g(x)=???

L' Hopital rule

It basically says that if the solution is undefined, just differentiate f(x) and g(x) until it yields a valid solution.

For example

limx→0sin⁡xx=cos⁡x1=1

Look at Maclaurin Series expansion

The expansion of sin⁡x yields

limx→0x+x33!+…x=limx→01+x23!+⋯=1

We aim to separate a constant that is independent of x from this fraction.

Look that if we differentiate sin⁡x and x instead. We can also get a constant of 1 out.

limx→0x+x33!+…x=limx→01+x22!+…1=1

Differentiation is now a tool used to factor x from f(x) and g(x). That's why the L'hopital rule works.