Shoot it!

Let say you have an automated gun which can shoot the target by determining the horizontal and vertical distance to the target from the gun. It can also shoot at any velocity and at any angle. But you programmed the gun so that it will fire the bullet at minimum velocity possible to hit the target.

During a test run your gun found that the target is situated at 70 m 70m height and at 140 m 140m horizontal distance. Find the velocity (in m / s m/s ) your gun is going to fire at.

Note:

  • Imagine the bullet trajectory to be projectile motion.
  • Take value of g g as 10 m / s 2 10m/s^2 .
  • Also as usual ignore air resistance and other real life factors.


The answer is 47.5946.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

The equation of trajectory of the projectile is

y = x tan α g x 2 sec 2 α 2 u 2 y=x\tan α-\dfrac {gx^2\sec^2 α}{2u^2}

tan 2 α 2 u 2 g x tan α + 1 + 2 u 2 y g x 2 = 0 \implies \tan^2 α-\dfrac {2u^2}{gx}\tan α+1+\dfrac {2u^2y}{gx^2}=0

Since α α is real, therefore u 4 g 2 x 2 + 2 g y u 2 u^4\geq g^2x^2+2gyu^2

u g ( y + x 2 + y 2 ) \implies u\geq \sqrt {g\left (y+\sqrt {x^2+y^2}\right )}

= 700 ( 5 + 1 ) 47.5946 =\sqrt {700(\sqrt 5+1)}\approx \boxed {47.5946} m/s.

Steven Chase
Aug 1, 2020

I originally solved and got the expected answer by assuming that the vertical velocity is zero when the projectile strikes the target. However, this is not the optimal solution. A parameter sweep shows that the minimum launch speed is 47.59 47.59 , and it occurs when the launch velocity is ( v x , v y ) = ( 25.02 , 40.49 ) (v_x, v_y) = (25.02, 40.49) .

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import math

H = 70.0    # height
D = 140.0   # horizontal distance
g = 10.0    # gravity

dvx = 10.0**(-3.0)  # horizontal velocity increment

vx = dvx

vmin = 99999999.0

while vx <= 100.0:  # sweep horizontal velocity over a range

    tf = D/vx  # final time

    # H = vy*tf - 0.5*g*(tf**2.0)   # vertical kinematic equation

    vy = (H + 0.5*g*(tf**2.0))/tf   # solve for vertical velocity

    v = math.hypot(vx,vy)        # launch speed

    if v < vmin:     # keep track of min launch speed
        vmin = v
        vx_store = vx
        vy_store = vy

    vx = vx + dvx

print vmin
print vx_store
print vy_store

#>>> 
#47.5946171773
#25.022
#40.4863816641
#>>> 

@Steven Chase in first attempt I got 47.5 , but it was incorrect.
After some time i was thinking that you will delete you solution, but you just changed it according to correct answer. Smart guy.

Talulah Riley - 10 months, 2 weeks ago

Log in to reply

Yeah, I was a bit careless with the first solution

Steven Chase - 10 months, 2 weeks ago

Log in to reply

@Steven Chase but your strategy of thinking that the Particle have vertical velocity zero at that point is incorrect. Even I don't know what is incorrect in that method.
I will think of it. Interesting!

Talulah Riley - 10 months, 2 weeks ago

Log in to reply

@Talulah Riley I have now posted an entirely different solution which gets the right answer

Steven Chase - 10 months, 2 weeks ago

Log in to reply

@Steven Chase @Steven Chase But what is wrong in your previous method.??

Talulah Riley - 10 months, 2 weeks ago

Log in to reply

@Talulah Riley It is based on intuition, and intuition turns out to be wrong in this case. The actual optimization problem is more complex

Steven Chase - 10 months, 2 weeks ago

Log in to reply

@Steven Chase @Steven Chase so the conclusion is if we want to through a particle to a particular coordinate it doesn't mean that, at that coordinate, the particle will have v y = 0 , v x = v cos θ v_{y}=0,v_{x}=v \cos \theta .
Extreme cases may exist.

Talulah Riley - 10 months, 2 weeks ago

Log in to reply

@Talulah Riley That's correct, the horizontal and vertical velocities are both nonzero at that point

Steven Chase - 10 months, 2 weeks ago

@Sanjay Swain Yes, the answer is approximately 47.595 m/s. Your problem answer is incorrect.

The trajectory is:

y = tan θ x 1 2 g x 2 v 2 cos 2 θ \displaystyle y = \tan\theta x - \frac{1}{2}g\frac{x^2}{v^2 \cos^2 \theta}

It follows that the velocity v v is a function of θ \theta parameterized by x x and y y :

v ( θ ) = ( g x 2 2 cos 2 θ ( y tan θ x ) ) 1 2 \displaystyle v( \theta ) = \left( \frac{ gx^2 }{ 2 \cos^2 \theta ( y - \tan\theta x ) } \right)^\frac{1}{2}

An optimization of v ( θ ) v (\theta) is found by taking the derivative of v v w.r.t. θ \theta and equating it to 0 0

d v d θ = d d θ ( g x 2 2 cos 2 θ ( y tan θ x ) ) 1 2 = 0 \displaystyle \frac{ dv }{ d \theta } = \frac{d}{d \theta} \left( \frac{ gx^2 }{ 2 \cos^2 \theta ( y - \tan\theta x ) } \right)^{\frac{1}{2}} = 0

Once you find θ o p t . \theta_{opt.} ( confirm you have a minimum by second derivative tests or a simple plot of v ( θ ) v( \theta ) , substitute back into v ( θ ) v ( \theta ) ).

v ( 1.017 ) 47.595 m s \displaystyle v ( \text { 1.017} ) \approx \text{ 47.595 } \frac{ \text{m} }{ \text{s} }

Eric Roberts - 10 months, 2 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...