Python Programming · High School (11–12) · 1 course, 10 worked problems, 20 practice questions
Calculus is about rates of change and areas under curves. A computer can work out both with numbers when a formula is hard or when the data comes from a table. A derivative can be estimated from two close points, , with a small step . An area can be found by cutting it into thin strips and adding them, as in the trapezium rule. A rate equation, such as the cooling of a cup of tea, can be stepped forward in small time steps. In physics, the slope of a position graph gives velocity, and the area under a velocity graph gives displacement.
Choose an answer, then check it. Each one shows a full explanation.
The forward difference (f(x + h) - f(x)) / h for f(x) = x**2 at x = 3 with h = 1 gives what?
The trapezoid rule is used on f(x) = x from 0 to 4. What does it give, with any number of pieces?
One Euler step for dv/dt = 10 - 0.5v, from v = 4 with dt = 0.2, gives what new v?
A force F = 3x newtons acts from x = 0 to x = 4 m. How much work does it do?
Which way of finding a slope from numbers has an error that is proportional to h squared?
The trapezoid rule with 20 pieces has an error of 0.01. About how large is the error with 40 pieces?
What does scipy.integrate.quad give?
Euler's method is first order. What does this mean for the error?
A ball moves in a plane, and its state is the position and the velocity. What must the rate function of solve_ivp return?
A student finds a derivative with the central difference and h equal to 1e-15, and the answer is wrong by a large amount. What is the reason?
Each one has a hint, the key idea and a full worked solution.