Anti-Aircraft Marksman

You are a soldier, and your base is under attack by enemy aircraft. At time t = 0 t = 0 , one such aircraft is positioned at ( x , y , z ) = ( 1000 m, 2000 m, 3000 m ) . (x,y,z) = (1000\text{ m, }2000 \text{ m, }3000 \text{ m}). The aircraft has a constant velocity of ( v x , v y , v z ) = ( 400 m/s, + 400 m/s, + 400 m/s ) . (v_x,v_y,v_z) = (-400 \text{ m/s, }+400 \text{ m/s, }+400 \text{ m/s}).

Also at t = 0 , t = 0, you take control of an anti-aircraft artillery cannon and fire a shot to bring down the enemy plane. The cannon has a muzzle velocity of 1000 m/s , 1000 \text{ m/s}, and it can be aimed in any direction. Your position is ( x , y , z ) = ( 0 m, 0 m, 0 m ) . (x,y,z) = (0 \text{ m, }0 \text{ m, }0\text{ m}). There is an ambient gravitational acceleration of 10 m/s 2 10 \text{ m/s}^2 in the z -z direction (downward).

At what time (in seconds) does the artillery shell strike the enemy plane?


Details and Assumptions:

  • Neglect air resistance.
  • Give your answer to 2 decimal places.
  • From a targeting perspective, consider the enemy plane to be a point-particle.
  • You are a superlative marksman.
  • If you find more than one solution, give the smaller value (provided that it's not negative).


The answer is 10.23.

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

Daniel Branscombe
Jul 14, 2017

Relevant wiki: Projectile Motion

Assume you fire the cannon with velocities ( x , y , z ) (x,y,z) in the corresponding directions.

We require that x 2 + y 2 + z 2 = 100 0 2 x^2+y^2+z^2=1000^2

In order for the cannon to hit the aircraft after time t, we also need

x × t = 1000 400 t , y × t = 2000 + 400 t , z × t 5 t 2 = 3000 + 400 t x \times t = 1000 - 400t, \quad y \times t = 2000 + 400t, \quad z \times t - 5t^2 = 3000 + 400t

solving for x , y , z x,y,z we get

x = 1000 t 400 , y = 2000 t + 400 , z = 3000 t + 400 + 5 t x = \frac{1000}{t} - 400, \quad y= \frac{2000}{t} + 400, \quad z= \frac{3000}{t} + 400 + 5t

Substituting this into x 2 + y 2 + z 2 = 100 0 2 x^2+y^2+z^2=1000^2 , we get 510000 + 14000000 t 2 + 3200000 t + 4000 t + 25 t 2 = 100 0 2 510000+ \frac{14000000}{t^2}+ \frac{3200000}{t} + 4000t + 25t^2 = 1000^2 Multiplying through by t 2 t^2 we get

510000 t 2 + 14000000 + 3200000 t + 4000 t 3 + 25 t 4 = 100 0 2 t 2 510000t^2 +14000000 + 3200000t + 4000t^3 + 25t^4=1000^2 t^2 25 t 4 + 4000 t 3 490000 t 2 + 3200000 t + 14000000 = 0 25t^4 + 4000t^3 - 490000t^2 + 3200000t + 14000000=0

Solving for t t we get two positive values

t = 10.2322 t=10.2322 and t = 75.5914 t=75.5914

taking the smaller of the two we get t = 10.2322 t=10.2322

What I thought was interesting about this solution is that it did not require solving for the trajectory of the cannon.

How did you solve for t? The quartic formula? I couldn't be bothered to go through that or cheat on Wolfram.

Thomas Greenwood - 3 years, 10 months ago

Log in to reply

well there is always the big nasty quartic formula, however I used Mathematica. Not sure how that is considered cheating, really don't see a simple closed form for the solution outside of the quartic formula.

Daniel Branscombe - 3 years, 10 months ago

You can use Newton Approximation to do this and this is actually not cheating.

Kelvin Hong - 3 years, 10 months ago

Log in to reply

I wouldn't see any method to solve a quartic as "cheating".

Richard Desper - 3 years, 10 months ago

Why the -5t^2 in the z x t equation?

Lucas Chu - 3 years, 10 months ago

Log in to reply

that is the part that takes gravity into consideration. To see how this works start with the fact you know acceleration is the given constant of -10 m/s^2, it is negative because it is working towards the ground. Another way of putting this is that the acceleration at a given time t is given by the function f(t)=-10, now to get the velocity at time t we integrate that function to get -10t+c now at time t=0 we know the velocity is the initial velocity z and so we get that the constant of integration is c=z thus the velocity at time t is z-10t, now to get the position at time t we integrate again to get zt-5t^2+c and we know that the initial position is 0 at t=0 so we get c=0 for this constant of integration. Thus we arrive at my final formula z t-5t^2. That is the long version of the answer using calculus. In case you are unfamiliar with calculus then suffice to say that the height of an object at time t working under gravity g, initial velocity a0, and initial heigh h is given by a0 t-(g/2) t^2+h, for our case we have a0=z, g=10, and h=0 so we get my equation z t-5t^2.

Daniel Branscombe - 3 years, 10 months ago

Log in to reply

@Daniel Branscombe - Thank you very much! I haven't taken calculus yet but now that I'm interested I will take some online courses.

Lucas Chu - 3 years, 10 months ago

I think it comes from the equation s = ut + 1/2ft^2 where s = distance travelled, u = initial velocity, f = acceleration & t = time

chris cronin - 3 years, 10 months ago

Log in to reply

lol, with your choice of variables I had to read your equation about 5 times, kept reading ft as feet and trying to figure out what square feet had to do with distance. Goes to show I should read the rest of the post when confused :-).

Daniel Branscombe - 3 years, 10 months ago

Log in to reply

@Daniel Branscombe sorry but that is how it was taught to me back in the 60's: s = ut + 1/2ft^2 maybe I should have written it as s = uxt + 1/2xfxt^2 or s = u.t + f.t^2/2 :-)

chris cronin - 3 years, 10 months ago

I do not think this solution is correct... The projectile is not going to hit the plane

Just substitute t = 10 t=10 in the initial construct... from planar velocity ( x x & y y ) components you can find out how much v z v_z can be... which is at around 330... at that velocity it will never catch the plane

Erkan Karakaya - 3 years, 10 months ago

Log in to reply

If you put t=10, you will get z=750.

Rohit Gupta - 3 years, 10 months ago

the statement: xt = 1000 - 400t is not dimensionally correct if x is measured in metres(m) & t in seconds(s) ie xt is metre.seconds(m.s) whereas 1000 is metres(m) & 400t is metres(m) (m/s x s) so m.s cannot be equal to m I just realised that the original question posed used x,y,z as aircraft positions in metres. Whereas Daniel Branscombe used x,y,z as velocities rather than v subscipt x, v subscipt y v subscipt z stated in the original question so my dimensional statements above are not relevant. Very confusing mix up of previously allocated symbols! :-)

chris cronin - 3 years, 10 months ago
Steven Chase
Jul 15, 2017

Relevant wiki: Projectile Motion

See the solution by @Daniel Branscombe for a solution based on a polynomial expression for the final time. This is probably the most legitimate way to do it. For fun, I'll post an iterative multi-variate approach as well. We know the launch speed (call it v v ). We know the initial position of the aircraft (call it ( P x , P y , P z ) (P_x,P_y,P_z) ) and the aircraft velocity ( v x , v y , v z ) (v_x,v_y,v_z) . We don't know the launch orientation, given by spherical coordinates θ \theta and ϕ \phi . θ \theta is the angle with respect to the x x -axis, and ϕ \phi is the angle with respect to the x y xy plane. We also don't know the intercept time t f t_f . The equations to solve are:

P x + v x t f = v cos θ cos ϕ t f P y + v y t f = v sin θ cos ϕ t f P z + v z t f = v sin ϕ t f 1 2 g t f 2 P_x + v_x t_f = v\,\cos\theta \, \cos\phi \, t_f \\ P_y + v_y t_f = v\,\sin\theta \, \cos\phi \, t_f \\ P_z + v_z t_f = v\,\sin\phi \, t_f -\frac{1}{2} g t_f^2

Putting the equations into a different form:

f 1 = P x + v x t f v cos θ cos ϕ t f = 0 f 2 = P y + v y t f v sin θ cos ϕ t f = 0 f 3 = P z + v z t f v sin ϕ t f + 1 2 g t f 2 = 0 f_1 = P_x + v_x t_f - v\,\cos\theta \, \cos\phi \, t_f = 0 \\ f_2 = P_y + v_y t_f - v\,\sin\theta \, \cos\phi \, t_f = 0 \\ f_3 = P_z + v_z t_f - v\,\sin\phi \, t_f +\frac{1}{2} g t_f^2 = 0

Then we form a Jacobian matrix consisting of partial derivatives of the three functions with respect to the unknowns ( θ , ϕ , t f ) (\theta, \phi, t_f) . Then we iterate as indicated in the scan. Note that only one element in the matrix equation has a "k" subscript, indicating "present iteration", instead of "k-1" for "previous iteration". This is what is being solved for.

Solutions (sometimes it converges to one solution, and sometimes it converges to the other, depending on random initial conditions):

theta
2.04052416931
phi
0.839563864441
tf
10.2322479847


theta
2.30743135526
phi
0.957306849804
tf
75.5913931928

I solved another variant of this problem in which you donèt have enemy aircraft but a missile in this case its vz( or z in your notation) is changing and the time is shorter moreover you have only one solution possible. You dont need also to evaluate a trajectory if you use spherical coordinates for the cannon shell what iI did. But using simply x,y,z as you did is simpler.

Marian Kupczynski - 3 years, 10 months ago

Log in to reply

I would like to see this problem. Could you post this problem on the site? You can click here to post the problem.

Pranshu Gaba - 3 years, 10 months ago

Do you think it would be worth posting?

Steven Chase - 3 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...