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.

h(t)=v0t−12gt2,treturn=2v0g,tapex=v0gh(t)=v_0t-\frac12gt^2,\quad t_{\rm return}=\frac{2v_0}{g},\quad t_{\rm apex}=\frac{v_0}{g}
Worked example

The roots of height are t=0t=0 and t=2v0/gt=2v_0/g. The derivative vanishes halfway between them, at the apex.

Maths prerequisite map ↗

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.

See the mathematics
00.6121.221.832.45-0.31.8546.158.3t (s)h (m)
00.6121.221.832.45-0.31.8546.158.3t (s)h (m)
h(t)=12t−12(9.81)t2h(t)=12t-\tfrac12(9.81)t^2
Starter reference. Authored numerical illustration: launch speed 12 m/s, gravity 9.81 m/s², no drag. Horizontal: time (s); vertical: height (m). Only the physical flight is shown.

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 t=0t=0 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.

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.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Height, metres
−gt22+tv0- \frac{g t^{2}}{2} + t v_{0}
Ground roots
[0, 2v0g]\left[ 0, \ \frac{2 v_{0}}{g}\right]
Return time, seconds
2v0g\frac{2 v_{0}}{g}
Illustrative return time, seconds
2.446483180428132.44648318042813
Apex time, seconds
v0g\frac{v_{0}}{g}
Apex height, metres
v022g\frac{v_{0}^{2}}{2 g}
Acceleration residual
00
Initial height
00
Initial velocity
v0v_{0}
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
Plot generated by the executed Python example. Read its labelled axes and the lesson explanation together.
Open full-size figure ↗

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.

Return to the editor

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?

Choose an answer
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.

Your notesNotes save in this browser when storage is available.