# Projectile trajectory with linear air resistance [closed]

I have the following equations

$$\ x′′(t)=−\frac km x′(t)$$

$$\ y′′(t)=−\frac km y′(t) - g$$

where $k$ is the drag, $m$ is the mass of the object and $t$ is the time. $g$ is the gravity constant.

After integrating the functions twice, I end up with the following equations

$$\ x(t) = C_1 e^{\frac {-kt} {2}} + C_2$$ $$\ y(t) = C_3 e^{\frac {-kt} {2}} + C_4 - \frac {gmt}{k}$$

How should I determine the constants $C_1$, $C_2$ etc? I want to be able to set the angle $\alpha$ and velocity $v_0$.

For example $y'(0) = 30 \sin(\alpha)$

## closed as off-topic by Brandon Enright, Kyle Kanos, jinawee, Qmechanic♦May 12 '14 at 23:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Homework-like questions should ask about a specific physics concept and show some effort to work through the problem. We want our questions to be useful to the broader community, and to future users. See our meta site for more guidance on how to edit your question to make it better" – Brandon Enright, Qmechanic
If this question can be reworded to fit the rules in the help center, please edit the question.

• First check your integrations, you have mistakes on that. And just some pedantic observation: you should have more integration constants, but it looks like that you already applied some not mentioned initial conditions. – Ignacio Vergara Kausel May 12 '14 at 15:53
• @Ignacio Sorry forgot two signs. More than four integration constants in total? – mouduor May 12 '14 at 15:59
• Should the first term in your second differential equation depend on $y'(t)$ rather than $x'(t)$? – BMS May 12 '14 at 16:05
• @BMS Yes, now I hope everything is in order. :) – mouduor May 12 '14 at 16:10
• There are 4 unknowns $C_1,C_2,C_3,C_4$, and there are 4 initial conditions $x(0)=A,y(0)=B,x'(0)=C,y'(0)=D$. So you have all the info you need to determine the $C_k$. – DumpsterDoofus May 12 '14 at 16:17

$$x(0) = 0, y(0) = 0 \\ x'(0) = v_x, y'(0) = v_y \\$$
$$x(t) = -\frac{v_x m}{k} \left( {{\rm e}^{-{\frac {kt}{m}}}}-1 \right) \\ y(t) = - \frac{m}{k^2} \left( \left( gm+{\it v_y}\,k \right) \left( {{\rm e}^{-{\frac {kt}{m}}}}-1 \right) +gtk \right)$$