DEV Community

Cover image for The Math Behind the Arc: Understanding Projectile Motion
Raymond .M. Ogwel
Raymond .M. Ogwel

Posted on

The Math Behind the Arc: Understanding Projectile Motion

Introduction

From a young age, I felt a magnetic pull toward the world of numbers and the mysteries of motion, even before I fully understood what it all meant. Mathematics has always been more than just a subject for me; it’s a language that speaks to the very fabric of the universe. Growing up, I didn’t take the traditional path of studying physics in school, but that passion simmered beneath the surface, waiting for the right moment to ignite.

It’s fascinating how the principles of physics resonate deeply within us, whispering truths about our existence and the cosmos. Each equation feels like a story waiting to be unraveled, and every problem presents a challenge that sparks my curiosity. I believe that everyone has a unique relationship with these subjects, whether through formal education or simply the wonder of exploration.

In this blog, I invite you to join me on a journey where we will dive into the beauty of mathematics and the elegance of physics. Together, we will explore the connections that bind these fields, celebrating the joy of discovery and the profound insights they offer. So, let’s embark on this adventure and unlock the secrets of the universe, one equation at a time. Welcome to a world where curiosity reigns and learning knows no bounds!

Warm up!

In the realm of science, few concepts capture our imagination like projectile motion. This fundamental topic in physics not only illustrates the principles of motion but also serves as a bridge to the intricate world of quantum mechanics and mathematics. The interplay between these disciplines reveals the elegance of the universe, showing how mathematical equations can unravel the mysteries of motion, whether in our everyday lives or in the behavior of particles at the quantum level.

Thinking
At its core, projectile motion refers to the motion of an object that is thrown into the air and is subject to the forces of gravity and air resistance. When we throw a ball, for instance, it follows a curved path known as a parabola. The equations governing this motion, derived from classical mechanics, allow us to predict where the ball will land, its maximum height, and the time it will spend in the air. This is where the magic of mathematics comes into play.

Projectile motion is a fundamental concept in physics that we encounter in many aspects of life, from the sports we play to complex engineering and space exploration. Whether it's a basketball shot, the trajectory of a rocket, or water shooting from a fountain, understanding the principles of projectile motion allows us to predict and manipulate the paths of objects. This blog explores real-life applications, showing how mastering this seemingly simple concept reveals the underlying beauty and precision of science and mathematics, making it a vital tool in fields as diverse as ballistics, game design, and forensic analysis.

Mathematics is the language of the universe. In projectile motion, we employ algebraic equations like and , where is displacement, is initial velocity, is acceleration, and is time. These equations not only provide precise calculations but also enhance our problem-solving skills, allowing us to impress our friends with our ability to predict the trajectory of a basketball shot or a water fountain's arc.

Now, let’s take a moment to appreciate the beauty behind these equations. Have you ever thrown a ball and marveled at the graceful arc it traces in the sky? It’s a dance of physics and mathematics, where every variable plays a role, just like a well-orchestrated symphony. Each factor—initial speed, angle of launch, and gravitational pull—harmonizes to create a stunning display of motion. And, of course, there’s nothing quite like calculating the perfect angle to impress your friends, even if they still think you’re just showing off your math skills!

Image description

As we delve deeper into the relationship between mathematics and physics, we find that these equations are more than just tools; they represent a deeper truth about the universe. The patterns and symmetries in projectile motion mirror the principles found in quantum mechanics, where particles exhibit both wave-like and particle-like behavior. Just as we can calculate the path of a thrown object, quantum mechanics allows us to calculate the probability of a particle's position, demonstrating the underlying connection between the two fields.

Imagine standing in a physics class, confidently explaining the concept of projectile motion to your peers. You could showcase how the initial speed and launch angle affect the distance traveled, using simple graphs and equations. This not only reinforces your understanding but also exemplifies the beauty of applying mathematical concepts to real-world scenarios.

The elegance of projectile motion extends beyond its mathematical framework. It exemplifies how science transforms abstract theories into tangible experiences. Whether you're launching a model rocket
Image description

or simply throwing a ball, the principles of physics are at work, illuminating the interconnectedness of motion, mathematics, and the laws governing our universe.Let's see it, shall we?

Understanding Projectile Motion

Image description

Definition and Basics:

Projectile motion refers to the motion of an object that is thrown or projected into the air and is subject only to the force of gravity (neglecting air resistance). It involves two dimensions: horizontal and vertical motion, which can be analyzed separately.

Components of Projectile Motion:

Horizontal Motion:

The horizontal motion of a projectile is uniform, meaning that it moves at a constant velocity. There are no horizontal forces acting on the projectile after it is launched (again, neglecting air resistance).

Image description

The horizontal distance traveled is given by the formula:

Range = Vx × t
Enter fullscreen mode Exit fullscreen mode

Vertical Motion:

The vertical motion is affected by gravity. The object accelerates downwards at a constant rate of approximately 9.81m/s².

The vertical position can be calculated using the equation:

y = Vy° × t - ½gt²

Key Variables:

Initial Velocity (): The speed at which the projectile is launched. It can be broken into horizontal () and vertical () components using trigonometry:

Vn = V° cos(x)

Vy = V°  sin(x)
Enter fullscreen mode Exit fullscreen mode

Launch Angle (): The angle at which the projectile is launched. This angle significantly affects the range and height of the projectile.

Time of Flight (): The total time the projectile is in the air, which can be calculated by analyzing the vertical motion.

Equations of Motion: The motion of a projectile can be described by a set of equations derived from kinematics:

Horizontal Displacement:

x = Vxt

y = Vy°t - ½gt²
Enter fullscreen mode Exit fullscreen mode

Maximum Height: The maximum height reached by the projectile can be determined using the vertical motion equation:

At the peak of its trajectory, the vertical velocity will be zero ().

The time to reach maximum height () can be calculated by:

th = (Vy°)/g

H = Vy°th - ½g(t²h)
Enter fullscreen mode Exit fullscreen mode

Range of the Projectile: The range of a projectile (the horizontal distance it travels) can be calculated by:

R = (V°²sin(2x))/g
Enter fullscreen mode Exit fullscreen mode

Factors Affecting Projectile Motion:

Air Resistance: In real-world applications, air resistance can significantly alter the motion. It decreases the range and changes the path of the projectile.

Initial Conditions: Different initial speeds and angles will yield different trajectories and ranges.

Applications of Projectile Motion: Projectile motion concepts are widely used in various fields, including:

Sports: Understanding the best angles and speeds for throwing balls.

Engineering: Designing projectiles like missiles or rockets.

Video Games: Simulating realistic movements of characters or objects.

In conclusion, projectile motion is a beautiful example of how mathematics and physics intertwine, inviting us to explore the elegance of the universe. As we embrace these concepts, we gain not only knowledge but also the ability to think critically and solve complex problems. This foundational understanding prepares us for the complexities of quantum mechanics, where similar principles of probability and motion come into play. So, let’s celebrate the synergy between mathematics, physics, and the wonders of the universe, inspiring future generations to appreciate the beauty of science and its ability to unlock the mysteries of the world around us.

Throwing an Object

When you throw a ball or stone straight up, the object’s motion is a perfect example of vertical projectile motion. It decelerates on the way up due to gravity, stops momentarily at its peak, and then accelerates back down toward the ground, following the symmetrical path of its ascent. Understanding these concepts can help you calculate the height, time in the air, and speed at any point in the motion.

When you throw a ball or stone straight up into the air, it undergoes a specific type of projectile motion known as vertical projectile motion. Here's how it works:

1. Initial Throw (Launch):

The object is thrown upward with an initial velocity (), and its motion is solely along the vertical axis.

At the moment of release, the object has a certain speed but no horizontal component to its velocity—its movement is completely vertical.

2. Upward Motion:

As the object rises, gravity works against the motion, causing the object to decelerate. The acceleration due to gravity () acts downward at 9.8 m/s².

The object's vertical velocity decreases linearly as it moves upward. This deceleration continues until the velocity reaches zero at the object's highest point.

3. Maximum Height:

At the peak of the object's trajectory, its vertical velocity is zero. This is the point where the object momentarily stops before gravity pulls it back down to the ground.

The time it takes to reach the maximum height depends on the initial speed () and the acceleration due to gravity. The maximum height () can be calculated using the formula:

h = V°²/2g
Enter fullscreen mode Exit fullscreen mode

4. Descent:

After reaching its peak, the object begins to fall back toward the ground, accelerating under the influence of gravity.

The descent mirrors the ascent. The object’s velocity increases as it falls, and it gains speed until it reaches the same velocity with which it was thrown—just in the opposite direction—right before it hits the ground.

5. Impact and Total Time:

The total time the object spends in the air is the sum of the time taken to reach the maximum height and the time taken to fall back down.

Since the object’s ascent and descent are symmetrical, the time it takes to rise to its peak is the same as the time it takes to fall back to its original height. The total time in the air can be found using:

T = 2V°g
Enter fullscreen mode Exit fullscreen mode

Example Scenario:

Let’s say you throw a stone straight up with an initial velocity of 20 m/s.

Upward Motion: The stone slows down by 9.8 m/s² every second. It will take approximately to reach its maximum height.

Maximum Height: Using the formula for maximum height, the stone will reach .

Total Time in the Air: Since the time up equals the time down, the total time the stone spends in the air is twice the ascent time, or .

Factors Influencing the Motion:

Air Resistance: Although it’s often neglected in basic physics problems, air resistance does affect real-world situations. It acts to slow the upward motion and can also affect the speed of descent, especially for objects with larger surface areas.

Gravity: The acceleration due to gravity is always pulling the object downward. It is the primary force acting on the object after the initial throw.

Projectile Motion in Basketball 🏀

Image description

The motion of a basketball during a shot can be understood through the principles of projectile motion. Whether taking a free throw or a three-pointer, the key to a successful shot involves carefully controlling the launch angle, speed, and spin. Understanding the physics behind this motion can improve accuracy and consistency in shooting.

Image description

When shooting a basketball, the ball's motion also follows the principles of projectile motion. Let's break it down in detail:

1. Initial Throw (Launch):

When a player throws the basketball towards the hoop, it has an initial velocity () and is launched at an angle () relative to the horizontal.

Image description

As with a soccer kick, the velocity can be split into horizontal () and vertical () components.

2. Motion Through the Air:

Horizontal Motion: The horizontal component of the velocity remains constant during the throw because no external forces act horizontally (neglecting air resistance).

Vertical Motion: Gravity affects the vertical component, causing the ball to decelerate on the way up and accelerate on the way down.

The ball follows a parabolic path toward the basket due to the influence of gravity.

Image description

3. Peak of the Trajectory:

As the ball moves upward, the vertical velocity decreases until it reaches zero at the peak of its arc. This is where the ball reaches its maximum height.

Image description

4. Descending Towards the Hoop:

After reaching the peak, the ball begins to fall towards the hoop. The vertical component of velocity increases again as gravity accelerates it downward.

Image description

The angle at which the ball enters the hoop is crucial. Successful shots typically have a higher arc to allow the ball a greater chance of falling straight into the basket.

Image description

5. Factors Influencing the Shot:

Launch Angle: A successful basketball shot generally has a launch angle between and . A higher launch angle allows for a gentler descent and increases the likelihood of the ball going through the hoop.

Speed: The velocity of the ball must be adequate to reach the hoop, overcoming both the horizontal distance and the pull of gravity.

Distance: Depending on how far the shooter is from the basket (e.g., free throw or three-point shot), the initial speed and angle will vary.

6. Magnus Effect (Spin):

Like in soccer, spin can affect the trajectory of the basketball. Backspin is particularly important in basketball, as it can slow the ball's descent and increase the chances of a successful shot by making the ball "soft" on the rim.

Example Scenario:

Imagine you're shooting a free throw. You are 4.57 meters (15 feet) away from the basket, and the rim is 3.05 meters (10 feet) above the ground. You decide to shoot the ball at a angle with an initial velocity of 7 m/s.

Image description

Horizontal Motion: The ball moves toward the hoop at a constant horizontal velocity, determined by the initial speed and launch angle.

Vertical Motion: As the ball rises, its vertical speed decreases due to gravity until it reaches the peak, then the ball starts descending towards the basket.

Real-World Considerations:

Air Resistance: In real-world situations, air resistance slightly affects the ball's motion, but it is usually negligible in basketball because the speeds are relatively low.

Backspin: A ball with backspin that hits the rim or backboard is more likely to bounce into the hoop due to the way the spin influences its interaction with the surface.

Projectile Motion in Soccer

Image description

Kicking a soccer ball involves principles of projectile motion, where gravity and initial velocity dictate the ball's path. Understanding these principles helps players optimize their kicks, whether aiming for long-range shots or curving the ball around defenders.

When a soccer ball is kicked, it undergoes projectile motion, which is the same as discussed earlier. Here’s how the principles of projectile motion specifically apply to a soccer ball

1. Initial Kick (Launch):

The moment the soccer ball is kicked, it has an initial velocity () and a launch angle (), which dictates its trajectory.

The velocity can be broken down into two components: horizontal () and vertical ().

The horizontal component () remains constant throughout the ball's flight since there is no horizontal acceleration (neglecting air resistance).

The vertical component () is affected by gravity, which pulls the ball downwards.

Image description

2. Motion Through the Air:

Once kicked, the ball follows a curved path, known as a parabola.

Upward Motion: Initially, the vertical component of the ball's velocity pushes it upward, but gravity decelerates this upward motion.

Peak of the Trajectory: At the peak of its flight, the vertical velocity becomes zero, and this is when the ball reaches its maximum height.

Image description

Downward Motion: After reaching the peak, gravity accelerates the ball downward, increasing its vertical speed.

3. Range and Time of Flight:

The distance the ball travels horizontally (its range) depends on the initial velocity and the angle of the kick. An optimal angle for maximum range, assuming no air resistance.

The total time the ball stays in the air (time of flight) can be calculated using the vertical motion equations:

t_total = 2V°sin(x)/g
Enter fullscreen mode Exit fullscreen mode

4. Impact of Air Resistance:

In real life, air resistance slows the ball down, reducing both its range and height. This means the theoretical calculations for maximum range may differ slightly when the ball is kicked on a soccer field.

5. Curving the Ball:

Soccer players often add spin to the ball, which creates a Magnus effect. This causes the ball to curve in the air, modifying the trajectory in ways that standard projectile motion equations do not account for. The spin induces a pressure difference on either side of the ball, causing it to bend or curve.

Image description

Example Scenario:

Suppose you are about to kick a soccer ball from a corner of the field. You aim for the goalpost 20 meters away and kick the ball at a angle with a velocity of 45° at a speed of 20m/s.

Image description

Horizontal Motion: The horizontal distance traveled will depend on the horizontal component of your velocity and the time of flight.

Vertical Motion: The ball rises, reaches its peak, and then falls. At each point, gravity accelerates the ball downward, controlling its descent.

Image description

Projectile motion principles allow us to predict how far the ball will travel, how high it will go, and how long it will stay in the air.

Code Implementation

Golang

package main

import (
    "fmt"
    "math"
)

const gravity = 9.8 // acceleration due to gravity in m/s^2

// Function to calculate the projectile motion
func projectileMotion(velocity, angle float64, time float64) (float64, float64) {
    // Convert angle from degrees to radians
    angleInRadians := angle * math.Pi / 180

    // Calculate horizontal and vertical components of velocity
    vx := velocity * math.Cos(angleInRadians)
    vy := velocity * math.Sin(angleInRadians)

    // Calculate horizontal (x) and vertical (y) positions at given time
    x := vx * time
    y := vy*time - 0.5*gravity*time*time

    return x, y
}

func main() {
    var velocity, angle, time float64

    // Get inputs from the user
    fmt.Print("Enter initial velocity (m/s): ")
    fmt.Scan(&velocity)
    fmt.Print("Enter angle of projection (degrees): ")
    fmt.Scan(&angle)
    fmt.Print("Enter time of flight (seconds): ")
    fmt.Scan(&time)

    // Calculate position
    x, y := projectileMotion(velocity, angle, time)

    fmt.Printf("At time %.2f seconds, the projectile is at:\n", time)
    fmt.Printf("Horizontal distance: %.2f meters\n", x)
    fmt.Printf("Vertical distance: %.2f meters\n", y)

    // Check if the projectile has hit the ground
    if y <= 0 {
        fmt.Println("The projectile has hit the ground.")
    }
}
Enter fullscreen mode Exit fullscreen mode

Python

import math

gravity = 9.8  # acceleration due to gravity in m/s^2

def projectile_motion(velocity, angle, time):
    # Convert angle to radians
    angle_in_radians = math.radians(angle)

    # Calculate horizontal and vertical components of velocity
    vx = velocity * math.cos(angle_in_radians)
    vy = velocity * math.sin(angle_in_radians)

    # Calculate horizontal (x) and vertical (y) positions at given time
    x = vx * time
    y = vy * time - 0.5 * gravity * time ** 2

    return x, y

# Get inputs from the user
velocity = float(input("Enter initial velocity (m/s): "))
angle = float(input("Enter angle of projection (degrees): "))
time = float(input("Enter time of flight (seconds): "))

# Calculate position
x, y = projectile_motion(velocity, angle, time)

print(f"At time {time:.2f} seconds, the projectile is at:")
print(f"Horizontal distance: {x:.2f} meters")
print(f"Vertical distance: {y:.2f} meters")

# Check if the projectile has hit the ground
if y <= 0:
    print("The projectile has hit the ground.")
Enter fullscreen mode Exit fullscreen mode

Java Script

const gravity = 9.8; // acceleration due to gravity in m/s^2

function projectileMotion(velocity, angle, time) {
    // Convert angle from degrees to radians
    const angleInRadians = angle * Math.PI / 180;

    // Calculate horizontal and vertical components of velocity
    const vx = velocity * Math.cos(angleInRadians);
    const vy = velocity * Math.sin(angleInRadians);

    // Calculate horizontal (x) and vertical (y) positions at given time
    const x = vx * time;
    const y = vy * time - 0.5 * gravity * time * time;

    return { x, y };
}

// Get inputs from the user
const velocity = parseFloat(prompt("Enter initial velocity (m/s):"));
const angle = parseFloat(prompt("Enter angle of projection (degrees):"));
const time = parseFloat(prompt("Enter time of flight (seconds):"));

// Calculate position
const { x, y } = projectileMotion(velocity, angle, time);

console.log(`At time ${time.toFixed(2)} seconds, the projectile is at:`);
console.log(`Horizontal distance: ${x.toFixed(2)} meters`);
console.log(`Vertical distance: ${y.toFixed(2)} meters`);

// Check if the projectile has hit the ground
if (y <= 0) {
    console.log("The projectile has hit the ground.");
}
Enter fullscreen mode Exit fullscreen mode

C Language

#include <stdio.h>
#include <math.h>

#define GRAVITY 9.8 // acceleration due to gravity in m/s^2

// Function to calculate the projectile motion
void projectileMotion(float velocity, float angle, float time, float *x, float *y) {
    // Convert angle from degrees to radians
    float angleInRadians = angle * M_PI / 180;

    // Calculate horizontal and vertical components of velocity
    float vx = velocity * cos(angleInRadians);
    float vy = velocity * sin(angleInRadians);

    // Calculate horizontal (x) and vertical (y) positions at given time
    *x = vx * time;
    *y = vy * time - 0.5 * GRAVITY * time * time;
}

int main() {
    float velocity, angle, time, x, y;

    // Get inputs from the user
    printf("Enter initial velocity (m/s): ");
    scanf("%f", &velocity);
    printf("Enter angle of projection (degrees): ");
    scanf("%f", &angle);
    printf("Enter time of flight (seconds): ");
    scanf("%f", &time);

    // Calculate position
    projectileMotion(velocity, angle, time, &x, &y);

    // Output results
    printf("At time %.2f seconds, the projectile is at:\n", time);
    printf("Horizontal distance: %.2f meters\n", x);
    printf("Vertical distance: %.2f meters\n", y);

    // Check if the projectile has hit the ground
    if (y <= 0) {
        printf("The projectile has hit the ground.\n");
    }

    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Math you off!

And before we wrap up, here’s a little science humor to lighten the mood: Why can’t you trust an atom? Because they make up everything! Just like a projectile in motion, they always seem to find a way to hit the mark—whether it’s in the lab or in a punchline. So, keep exploring the fascinating world of physics and mathematics, and remember that the universe has a sense of humor, too!

Image description

Top comments (0)