Skip to content
Tutorials Center
My learning

Topics

Lesson 37 of 39 · Projects and Practice

Practice Set: Integrals and Differential Equations

Ten graded problems on antiderivatives, definite integrals, substitution, area, volume, average value and differential equations, with a code checker.

This set covers integration, its applications and introductory differential equations. Work each problem on paper first. When you are done, run the checker code to compare. If an answer disagrees, differentiate your antiderivative or recompute the setup: most errors are a missing + C, wrong limits or the wrong "top minus bottom".

The problems

  1. Find ∫ (4x³ - 2x + 1) dx.
  2. Evaluate ∫ from 0 to 3 of (x² + 1) dx.
  3. Find ∫ 2x/(x² + 1) dx by substitution.
  4. Evaluate ∫ from 0 to 1 of e^(2x) dx.
  5. Find the area enclosed between y = x² and y = 8 - x².
  6. Rotate the region under y = x² from x = 0 to x = 1 about the x-axis. Find the volume.
  7. Find the average value of sin x on [0, π].
  8. Solve the initial value problem dy/dx = -2y, y(0) = 5.
  9. Solve dy/dx = x/y, y(0) = 3. (Give the relation between x and y.)
  10. Use Euler's method with h = 0.5 on dy/dx = x + y, y(0) = 1 to estimate y(1).

Hints:

  1. Let u = x² + 1.
  2. Find where the curves meet first; the parabola y = 8 - x² is on top.
  3. Disk method with π [f(x)]².
  4. The general solution is Ce^(-2x).
  5. Separate variables: y dy = x dx.
  6. Two steps: y₁ = y₀ + h F(x₀, y₀), then y₂ = y₁ + h F(x₁, y₁).

Check with code

Python Solutions with sympy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Worked answers

  1. x⁴ - x² + x + C.
  2. [x³/3 + x] from 0 to 3 = 9 + 3 = 12.
  3. ln(x² + 1) + C.
  4. [e^(2x)/2] from 0 to 1 = (e² - 1)/2 ≈ 3.1945.
  5. The curves meet at x = ±2. Area = ∫ from -2 to 2 of (8 - 2x²) dx = [8x - 2x³/3] from -2 to 2 = 64/3 ≈ 21.33.
  6. π ∫ from 0 to 1 of x⁴ dx = π/5.
  7. (1/π) · 2 = 2/π ≈ 0.6366.
  8. y = 5e^(-2x).
  9. y²/2 = x²/2 + C; with y(0) = 3, y² - x² = 9, so y = √(x² + 9).
  10. y₁ = 1 + 0.5(0 + 1) = 1.5; y₂ = 1.5 + 0.5(0.5 + 1.5) = 2.5. The exact solution of this equation is y = 2eˣ - x - 1, which gives y(1) = 2e - 2 ≈ 3.4366. Euler's estimate 2.5 is low because h = 0.5 is large.

Compare your numerical answers

For problems where you got a decimal, this small program can evaluate the integrals numerically as a second opinion, independent of any algebra.

Python Numerical second opinion

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

If you got stuck

  • Substitution fails? Check that the derivative of your u really appears in the integrand. Differentiate your final answer.
  • Area negative? You subtracted in the wrong order: use top minus bottom.
  • Volume off by a factor? You may have forgotten to square the radius, or forgotten π.
  • Differential equation constant wrong? Plug the initial condition in after integrating, never before.

Review the lessons on substitution, volumes or separable equations for any problem you missed.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is ∫ from 0 to 3 of (x² + 1) dx?

    [x³/3 + x] from 0 to 3 = 9 + 3 = 12.
  2. 2. The area between y = x² and y = 8 - x² is

    ∫ from -2 to 2 of (8 - 2x²) dx = 32 - 32/3 = 64/3.
  3. 3. The solution of dy/dx = -2y with y(0) = 5 is

    The general solution is Ce^(-2x), and y(0) = 5 gives C = 5.
  4. 4. After two Euler steps with h = 0.5 for dy/dx = x + y, y(0) = 1, the estimate of y(1) is

    y₁ = 1.5 and y₂ = 1.5 + 0.5 · 2 = 2.5. The value 3.4366 is the exact answer.

Summary

  • Integrals: integrate term by term, use substitution for composites, change limits for definite integrals.
  • Applications: area is top minus bottom, volume uses disks or washers, average value divides by the width.
  • Differential equations: separate variables or step with Euler's method.
  • Always verify by differentiating or by a numerical second opinion.

Next: Project: Design the Best Can