Calculus I · Substitution, charge, and energy

Review the chain rule, definite integrals, and exponential antiderivatives. Learn to identify an inner function and its derivative, change bounds consistently, and distinguish accumulated charge from dissipated energy.

Prerequisite: definite integrals and the Fundamental Theorem

Reverse the chain rule

If F′ = f and g is differentiable, then the derivative of F(g(x)) is f(g(x))g′(x). Consequently an antiderivative of f(g(x))g′(x) is F(g(x))+C. The substitution u=g(x), du=g′(x) dx records this chain-rule structure. For definite integrals, if g is continuously differentiable on [a,b] and f is continuous on an interval containing g([a,b]), then ∫ₐᵇ f(g(x))g′(x) dx = ∫ from g(a) to g(b) of f(u) du. This form follows from the Fundamental Theorem and does not require g to be one-to-one.

Choose u, compute du, replace the entire integrand, and transform both bounds. Then integrate in u. With an indefinite integral, substitute back before presenting the answer. Differentiating the result checks the choice and constant factors.

From electrical rates to accumulated quantities

For signed current i(t)=dq/dt, net charge change is ∫i(t)dt. Under the passive sign convention, current enters the positive-voltage terminal and absorbed power is p=vi. An ideal resistor with fixed R>0 has v=Ri, so p=Ri²≥0 and dissipated energy is ∫Ri²dt. Even a negative current produces nonnegative resistor heating. A·s is C, while W·s is J.

  1. i(t)=2e^(−t) A
  2. Charge: integrate i → Δq(T)=2(1−e^(−T)) C
  3. Energy in 3 Ω: first square i and multiply by R, then integrate → E(T)=6(1−e^(−2T)) J
For this ideal model the time constant is 1 s, and t and T are numerical times in seconds. Charge and energy use different integrands and units.

Worked examples

  1. Evaluate ∫₀¹ 2x(x²+1)³ dx. Take u=x²+1, du=2x dx, and transform the bounds to 1 and 2. The result is [u⁴/4] from 1 to 2, or 15/4.
  2. For ∫ 3/(3x+2) dx on x>−2/3, let u=3x+2. Then du=3 dx and the answer is ln(3x+2)+C. Differentiating yields 3/(3x+2). On an interval to the left of −2/3 use ln|3x+2|+C instead.
  3. For i(t)=2e^(−t) A, charge delivered by T seconds is 2(1−e^(−T)) C. In a 3 Ω resistor power is 12e^(−2t) W. Substitute u=−2t, so dt=−du/2; the bounds 0,T become 0,−2T. Energy is 6(1−e^(−2T)) J. At T=1, charge is about 1.264241 C and energy 5.187988 J.

Common mistakes

A missing inner derivative changes the answer. Do not retain x-bounds on an integral in u. Decreasing substitutions may reverse the order of the new bounds; keep that orientation and the differential sign consistently. Energy in a resistor is the integral of Ri², not R times the square of total charge. Check physical units as well as algebra.

Practice

  1. Find ∫ 6x cos(3x²) dx.
  2. Evaluate ∫₀¹ e^(−2x) dx with transformed bounds.
  3. For i=−2e^(−t) A through 3 Ω, how do charge and energy change compared with the positive-current example?
Worked solutions
  1. u=3x² gives du=6x dx. Integrate cos u to obtain sin(3x²)+C.
  2. Use u=−2x with bounds 0,−2 and dx=−du/2. The result is −(e^(−2)−1)/2=(1−e^(−2))/2.
  3. Charge change reverses sign, becoming −2(1−e^(−T)) C. Since the square of current is unchanged, energy remains 6(1−e^(−2T)) J.

Assessment · Open book · 16 points

Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.

  1. Evaluate ∫₀¹ 4x/(1+x²) dx and show the substitution and bounds. (4)
  2. Current 3e^(−t) A flows through a fixed 2 Ω resistor. Find net charge and dissipated energy from 0 to 1 s, including units. (6)

Application and reasoning · 6 points

An ideal current i(t)=a e^(−t) A flows through fixed R=2 Ω on [0,ln 2] s. Measured net charge is 1 C. Find a (2), compute dissipated energy (2), and diagnose the proposed formula E=R(∫i dt)² using both numbers and dimensions (2).

Complete answer key and scoring rubric
  1. Set u=1+x², du=2x dx (1), bounds 1,2 (1). The integral is ∫₁² 2/u du (1), giving 2 ln 2 (1).
  2. Integrate current to get 3(1−e^(−1)) C (3, including units). Power is 18e^(−2t) W (1); its integral gives 9(1−e^(−2)) J (2, including units).

Application and reasoning · 6 points

Charge=a(1−1/2)=a/2=1, so a=2 A (1 each). E=∫2·4e^(−2t)dt=4(1−1/4)=3 J (1 setup, 1 result). The proposed expression has numerical value 2 but units Ω·C² rather than J=Ω·A²·s (1 each); squaring after integration is not integrating i².

Scoring: existing questions 10 + application problem 6 = 16 points. Award the stated method and reasoning marks, not only final answers.

Download the lab

Download the Python lab file

Install free Python 3 on Windows, macOS, or Linux. Open a terminal in the download folder; on Windows use py -3 if python3 is unavailable. The standard-library program runs offline without an account. Arguments are final time in seconds and number of equal midpoint samples. Predict charge and energy at 1 s before running. Compare 4 and 8 samples, then test 2 s with 100 samples. The browser version repeats the same calculation.

python3 ee-substitution.py 1 4
python3 ee-substitution.py 1 8
python3 ee-substitution.py 2 100

Free readings and software

Energy lab · Accumulate current and power

Compare midpoint sums for charge and resistor energy with exact substitution results.

Free tool built into this page. Use it in your browser without an account or download.

Procedure

Use 1 s with 4 and 8 samples, then 2 s with 100 samples. Compare estimated and exact charge and energy. Why does each quantity have its own integrand and unit?

Expected results and answer check

At 1 s exact charge is 1.264241 C and exact energy 5.187988 J. Both midpoint sums underestimate these values and improve when the sample count increases. At 2 s exact charge is 1.729329 C and energy 5.890106 J. Charge integrates i; resistor energy integrates 3i².

This ideal model assumes a fixed 3 Ω resistance and imposed current. It omits component heating feedback and instrument uncertainty. It requires no account or equipment.