Calculus

Differentiation

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

limh0f(x+h)f(x)h

For example,

f(x)=x2dydx=limh0(x+h)2x2h=limh0x2+2xh+h2x2h=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 nxn1
ef(x) f(x)ef(x)
af(x) lnaf(x)ef(x)
ln(x) 1x
sinx cosx
cosx sinx
tanx sec2x
arcsinx 11x2
arccosx 11x2
arctanx 11+x2
secx secxtanx
cscx cscxcotx
cotx csc2x

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=arctan0arctan11(tan2θ+1)2sec2θ dθ[Using trigo identities]=0π41sec2θdθ=0π4cos2θ dθ[Using double angle formulae]=0π4cos2θ+12 dθ=[sin2θ4+12x]0π4=14+π8[QED]

Integration by Parts

ddxuv=uv+uvuv=uv+uvdx=uv dx+uv dx

Thus

uv dx=uvuv dx
Example

This is a sample question from the Math worksheet
Find xlnx 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 lnx is hard to integrate and x is easy to integrate, let v=lnx, and u=x ,

xlnxdx=uv dx=uvuv dx=x22lnxx221x dx=x22(lnx12)+C

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=341(5x+34)2dx

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

dudx=54341(5x+34)2dx=341u245du=3511u2du

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

3511u2du=35arcsinu=35arcsin5x+34

Solving using Reverse Factor Formulae

Reverse Factor Formulae

2sinAcosB=sin(A+B)+sin(AB)
2cosAsinB=sin(A+B)sin(AB)
2cosAcosB=cos(A+B)+cos(AB)
2sinAsinB=cos(A+B)cos(AB)

Example

Find using the reverse factor formulae

sin5xcos3xdx

Step 1. Identify which reverse factor formulae to use.

sinAcosB=12(sin(A+B)+sin(AB))

Step 2. Substitute the corresponding values into A and B

sin5xcos3x=12(sin8x+sin2x)

Step 3. Integrate the expression above

12(sin8x+sin2x) dx=116cos8x14cos2x+C

Volume of Revolution

Suppose we have f(x), rotating it around the xaxis 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=135y2

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

15y2dydx=13

Step 2. Multiply dx on both sides

15y2dy=13dx

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

15y2dy=13dx15y2dy=151(y5)2dy,sub u = y5,dudy=15 =1511u25 du=arcsinu+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+vx=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=arctanvv=tan(ln|x|+C)y=xtan(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)=eP(x) dx+C=AeP(x) dx[where A=eC]

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

y=eP(x) dxQ(x) dxeP(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)=e1 dx=ex

Step 2. Multiply throughout by I(x)

exdydx+exy=3e2x

Step 3. Solve

exdydx+exy=3e2xddxexy=3e2xexy=3e2x dx=32e2x+Cy=32ex+Cex

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+Δxf(xn,yn), n = 0, 1, 2, 3 ...

Understand that essentially

yn+1=yn+Δy

Limits

limx0f(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.

limx0f(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

limx0sinxx=cosx1=1

Look at Maclaurin Series expansion

The expansion of sinx yields

limx0x+x33!+x=limx01+x23!+=1

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

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

limx0x+x33!+x=limx01+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.