Differential equations: applying force to projectile

3 replies · 2K views · last reply
gnumoe
Messages
2
Reaction score
0

Homework Statement


The following series of differential equations represents a projectile's path when solved (g=9.81):
Four coupled differential equations: x-dot = v cos theta, y-dot = v sin theta, v-dot = -g sin theta, theta-dot = -(g/v) cos theta.

Modify this series of differential equations to account for an additional force F with vector components a and b acting on the projectile.

Here is a sample plot of this system:
MATLAB plot of a projectile's parabolic trajectory: the blue curve rises from a red star near the origin to a peak of about 10.8 x 10^4 at x of about 5.4 x 10^4, then falls to zero near x of 10.6 x 10^4.


Homework Equations


See above.

The Attempt at a Solution


[/B]
Knowing that gravity is a force with a positive i-component and negative j-component, I attempted to apply the same logic to F. This resulted in:

vdot = -g*sin(theta) + a*cos(theta) + b*sin(theta)
and
thetadot = -g/v*cos(theta) + a/v*sin(theta) + b/v*cos(theta)

However, that solution didn't appear to be correct, as when I plotted this out with F with a positive i-component and a negative j-component, I got this plot:
MATLAB plot of a projectile trajectory in the x-y plane: a curve rises from near the origin to a peak near y = 3.6 x 10^4, then falls leftward to the x-axis near x = -2.7 x 10^4, with a red asterisk marking a point near the start.

From intuition, the positive i-component should have caused the projectile path to move to the right more (hard to describe in words, but I hope you get what I mean), but instead, with my system (somehow), the projectile somehow happens to move to the left and go to the negative x-axis. Because my attempt to apply how gravity was represented in this system to how an arbitrary force would be represented, well, failed, I am currently stuck.

As this is my first post, I'm not sure whether it belongs in the introductory or advanced section (as it involves differential equations, but is a simple system). Sorry in advance if it's wrong.
 
haruspex said:
Check the signs in your thetadot equation.
Flipping the sign of the second term appears to make it be more reasonable, and I understand why that makes sense from a directional perspective. However, I'm unsure if the actual magnitude is correct, if you get what I'm saying...

Here's what it looks like with a flipped second term:
MATLAB plot titled 'Projectile path with target, firing angle ...' showing a parabola-like curve rising to a peak near y = 3.5 x 10^4 and falling to the x-axis near x = 13 x 10^4, with a red asterisk marking the target near the origin.

It's more reasonable, but I don't understand it from a trigonometry perspective. In addition, if that's the case, shouldn't I also flip the sign in the vdot equation? If not, why?
 
Last edited:
gnumoe said:
Flipping the sign of the second term appears to make it be more reasonable, and I understand why that makes sense from a directional perspective. However, I'm unsure if the actual magnitude is correct, if you get what I'm saying...

Here's what it looks like with a flipped second term:
MATLAB plot of a projectile trajectory: a blue arc rises to a peak near y = 3.5 x 10^4, then falls to the x-axis near x = 13 x 10^4, with a red asterisk marking the launch point near the origin. Axes labelled x and y.

It's more reasonable, but I don't understand it from a trigonometry perspective. In addition, if that's the case, shouldn't I also flip the sign in the vdot equation? If not, why?
Patterns like
+sin +cos
-cos +sin
arise frequently, since as a matrix it represents a rotation.
While moving up and to the right, v is in the first quadrant but ##\dot \theta## is in the second quadrant, so a force horizontally to the right is positive for ##\dot v## but negative for ##\ddot \theta##.
 
  • Like
Likes   Reactions: gnumoe