Optional workshopsOptional workshops · 14 min
Check a projectile model
Derive, verify and plot an ideal vertical trajectory with a physical time domain.
Maths refresher: A trajectory has a time domain
A quadratic formula can be evaluated beyond the physical event it models. A return to ground can define the end of the intended flight.
The roots of height are and . The derivative vanishes halfway between them, at the apex.
An ideal vertical launch with constant downward acceleration gives a quadratic height curve. The model below starts at ground height with upward speed v0. The acceleration parameter g is positive, and the minus sign establishes the chosen upward-positive coordinate convention.
Find the nonzero return-to-ground time and the apex time, then verify acceleration and initial conditions. The zero root is the launch event, not a second completed flight. Restrict the plotted physical flight to the interval from launch to return.
The numerical values are invented teaching choices. Treat 9.81 as a modelling convention for g here, not an infinitely precise environmental measurement. Air resistance, changing gravity, obstacles and uncertainty need explicit additions before this becomes an appropriate prediction for a real experiment.
Should the root be reported as the completed flight’s return time?
Write a prediction (optional)
Integrated model with invented launch inputs
Select Run Python with the code unchanged.
Your saved draft is open. To use the published code, select Restore example in Tools. Use Recover draft to bring back your code.
Tools
About Python
Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗
Ctrl+Enter or ⌘+Enter runs Python.
Execution error
Technical error details
Your result
Python text output
Compare with the worked example
Executed from the published Python during the site build. Your own run appears above. Build environment ↗
Worked text output
Height, metres: -g*t**2/2 + t*v0 Ground roots: [0, 2*v0/g] Return time, seconds: 2*v0/g Illustrative return time, seconds: 2.4464831804281344 Apex time, seconds: v0/g Apex height, metres: v0**2/(2*g) Acceleration residual: 0 Initial height: 0 Initial velocity: v0
Read the starter result
Ground roots includes the launch and return for the starter. The plot spans the ideal flight for the invented inputs. The acceleration and initial-value outputs check separate conditions.
Edit and compare
Replace initial_height = 0 with initial_height = 2 for an invented launch from two metres. Select Run Python. Compare Ground roots, Return time, seconds and Initial height. Which root lies after launch? Use Illustrative return time, seconds to locate where the curve comes back to zero for the example inputs.
Scope. This ideal one-dimensional trajectory omits drag and parameter uncertainty and has not been validated against measurements.
Try a fresh case
A valid algebraic time root is negative. What does that imply for a model restricted to t≥0?
Need a hint?
Hint 1
Keep algebraic validity separate from physical admissibility.
Hint 2
Check the stated time origin and allowed interval.
Write your investigation report
Record the question, mathematical assumptions and proposed checks before interpreting the result. After execution, add the derivation, numerical comparison and limits. The export includes the last successful run.