📘 CodingMarble Learn

Integrals

Integration undoes differentiation: if F′(x) = f(x), then ∫f(x) dx = F(x) + C. We integrate with standard formulas, substitution (replace an inside part by u), partial fractions (split a fraction) and by parts (∫u dv = uv − ∫v du). A definite integral ∫ₐᵇ f(x) dx is the signed area under the curve from a to b, and the fundamental theorem says it equals F(b) − F(a). Its properties make many hard integrals easy.

🎬 Step-by-step story

  1. Integration is differentiation in reverse. 2x is the derivative of x², x² + 1, x² − 2 and more, so ∫2x dx = x² + C. The curves slide up and down but their slopes match.
  2. Substitution: call the inside part u. In ∫2x·cos(x²) dx, let u = x², so du = 2x dx, and the integral becomes ∫cos u du.
  3. Partial fractions break one hard fraction into two easy ones. By parts uses ∫u dv = uv − ∫v du, choosing u by the ILATE order.
  4. The definite integral is the area under the curve. As the rectangles get thinner, their total gets closer to the exact area 8/3.
  5. Fundamental theorem: ∫ₐᵇ f(x) dx = F(b) − F(a). For an odd function from −a to a, the part above and the part below cancel to 0.
  6. Your turn: change the function, the number of rectangles n and the upper limit b, and compare the estimate with the exact value.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we add + C?

Many functions have the same derivative; they differ only by a constant shift up or down. The 3D shows four parallel curves with the same slope at every x.

How do I know which substitution to use?

Look for a function sitting inside another, whose derivative also appears outside. In 2x cos(x²), x² is inside and 2x is its derivative.

When do I need partial fractions?

When the integrand is a fraction of polynomials whose bottom splits into factors, like 1/((x + 1)(x + 2)).

Why is by parts called that?

You split the integrand into two parts, u and dv, and trade the integral for an easier one using uv − ∫v du.

Why do more rectangles get closer to the area?

Thinner rectangles hug the curve better, so the left-over gaps shrink. Watch the estimate go 1, 1.75, 2.19, 2.42 … towards 2.667.

Why no + C in a definite integral?

F(b) + C − (F(a) + C) = F(b) − F(a). The C cancels.

Can a definite integral be negative?

Yes. Area below the x-axis counts as negative. In free play, pick a function and see the value; the odd function in step 5 has + and − parts that cancel.

Integration as the reverse of differentiation

If d/dx F(x) = f(x), then F is an antiderivative (primitive) of f and we write ∫f(x) dx = F(x) + C. C is the constant of integration: adding any constant does not change the slope, so there is a whole family of answers.

Always check your answer by differentiating it: you must get back the integrand.

Two basic rules: ∫[f ± g] dx = ∫f dx ± ∫g dx and ∫k f dx = k∫f dx.

Standard integrals

For ∫dx/(ax² + bx + c), complete the square to reach one of these forms.

Integration by substitution

When the integrand has a function and (a multiple of) its derivative, put the inside function = u.

∫2x cos(x²) dx: u = x², du = 2x dx → ∫cos u du = sin u + C = sin(x²) + C.

Useful results: ∫tan x dx = ln|sec x| + C, ∫sec x dx = ln|sec x + tan x| + C, ∫f′(x)/f(x) dx = ln|f(x)| + C.

Integration by partial fractions

For a proper rational function P(x)/Q(x), split it:

Find A, B by putting convenient x values, then integrate each piece as a log. If the degree on top is not smaller, divide first.

Integration by parts

∫u dv = uv − ∫v du, or ∫f·g dx = f∫g dx − ∫[f′ ∫g dx] dx.

Choose u (the first function) by ILATE. ∫x eˣ dx: u = x, dv = eˣ dx → x eˣ − ∫eˣ dx = eˣ(x − 1) + C.

Special result: ∫eˣ[f(x) + f′(x)] dx = eˣ f(x) + C.

Definite integral and the fundamental theorem

∫ₐᵇ f(x) dx is the limit of the sum of thin rectangle areas under y = f(x) from a to b (area above the x-axis counts +, below counts −).

Fundamental theorem of calculus: (1) A(x) = ∫ₐˣ f(t) dt has A′(x) = f(x). (2) If F′ = f, then ∫ₐᵇ f(x) dx = F(b) − F(a). No +C is needed.

With substitution in a definite integral, change the limits too.

Properties and evaluation of definite integrals

  1. ∫ₐᵇ f(x) dx = ∫ₐᵇ f(t) dt (the letter does not matter).
  2. ∫ₐᵇ f = −∫ from b to a of f; ∫ₐᵃ f = 0.
  3. ∫ from a to b = ∫ from a to c + ∫ from c to b (split at c, useful for |x| type functions).
  4. ∫ₐᵇ f(x) dx = ∫ₐᵇ f(a + b − x) dx.
  5. ∫₀ᵃ f(x) dx = ∫₀ᵃ f(a − x) dx.
  6. ∫₀²ᵃ f(x) dx = 2∫₀ᵃ f(x) dx if f(2a − x) = f(x), and 0 if f(2a − x) = −f(x).
  7. ∫₋ₐᵃ f(x) dx = 2∫₀ᵃ f(x) dx if f is even; 0 if f is odd.

Classic: I = ∫₀^(π/2) sin x/(sin x + cos x) dx. By property 5, I also = ∫ cos x/(cos x + sin x) dx. Add: 2I = ∫₀^(π/2) 1 dx = π/2, so I = π/4.

Key formulas and definitions

Worked examples

1. Find ∫(3x² + 4x − 5) dx.

x³ + 2x² − 5x + C. Check: derivative is 3x² + 4x − 5.

2. Find ∫(x + 1)/x dx.

∫(1 + 1/x) dx = x + ln|x| + C.

3. Find ∫ sin³x cos x dx.

u = sin x, du = cos x dx. ∫u³ du = u⁴/4 + C = sin⁴x/4 + C.

4. Find ∫ dx/(x² + 4x + 13).

x² + 4x + 13 = (x + 2)² + 9. = (1/3) tan⁻¹((x + 2)/3) + C.

5. Find ∫ (x + 5)/((x + 1)(x + 2)) dx.

(x + 5)/((x + 1)(x + 2)) = A/(x + 1) + B/(x + 2). x = −1: A = 4. x = −2: B = −3. Answer: 4 ln|x + 1| − 3 ln|x + 2| + C.

6. Find ∫ x cos x dx.

u = x (A), dv = cos x dx (T). v = sin x. = x sin x − ∫sin x dx = x sin x + cos x + C.

7. Find ∫ ln x dx.

Write as ∫ln x · 1 dx, u = ln x, dv = dx. = x ln x − ∫x·(1/x) dx = x ln x − x + C.

8. Evaluate ∫₀² (x² + 1) dx.

[x³/3 + x]₀² = 8/3 + 2 = 14/3.

9. Evaluate ∫₋₁¹ x³ cos x dx.

x³ cos x is odd (f(−x) = −f(x)), so the integral from −1 to 1 is 0.

10. Evaluate ∫₀^(π/2) sin²x dx.

By property 5, it equals ∫₀^(π/2) cos²x dx. Adding, 2I = ∫₀^(π/2) 1 dx = π/2, so I = π/4.

Common mistakes

Practice quiz

1. ∫cos x dx =
2. ∫ dx/(1 + x²) =
3. In ∫x·ln x dx, by ILATE u should be:
4. ∫₀¹ 2x dx =
5. If f is odd, ∫₋ₐᵃ f(x) dx =

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the main methods of integration in Class 12?

Standard formulas, substitution, partial fractions and integration by parts, plus special forms by completing the square.

What is the ILATE rule?

An order for choosing u in by parts: Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential.

Is the fundamental theorem proved in Class 12?

No, it is stated and used: ∫ₐᵇ f(x) dx = F(b) − F(a).

Where this is taught

ItalySecondaria di secondo grado – classe 5ª (esame di Stato)Relations and functions
NetherlandsVWO 6 (eindexamenjaar)Differential and integral calculus (part 2)
RomaniaClasa a XII-aElements of mathematical analysis
RomaniaClasa a XII-aElements of mathematical analysis
Spain2º BachilleratoMeasurement Sense
Spain2º BachilleratoMeasurement Sense
Ukraine11 класAlgebra: integral and applications (30 h)
Ukraine11 класAlgebra: integral and its applications (30 h)
Ukraine11 класAlgebra: the integral and its applications (10 h)
CBSE (India)Class 12Calculus
CBSE (India)Class 12Calculus
England (GCSE, A level)Year 12H Integration
England (GCSE, A level)Year 13E Further calculus (part 2)
England (GCSE, A level)Year 13H Integration
USA (Common Core, NGSS, AP)Grade 12Integration and Accumulation of Change
USA (Common Core, NGSS, AP)Grade 12Integration and Accumulation of Change
Japan高校(専門学科)1〜3年Advanced Mathematics II
Japan高校2年Ideas of calculus
Japan高校3年Integration
South Korea고등학교 2학년Integration
South Korea고등학교 2학년Integration techniques
South Korea고등학교 3학년Integration techniques
South Korea고등학교 3학년Integration
FrancePremièreMathematics
FrancePremièreMathematics
FranceTerminaleStudy themes
FranceTerminaleAnalysis
FranceTerminaleMathematics
FranceTerminaleMathematics
Russia11 классElements of calculus
Russia11 классElements of calculus
China高三Elective A (science/engineering)
China高三Elective B (economics/social science)

Learn first

Learn next

Related lessons

All Maths lessons