Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Trying to avoid the quartic formula

  1. Jun 26, 2014 #1
    I need help solving for t in the following equation,

    [tex]|P + Vt + A(t^2)/2| = st[/tex]

    where P V and A are vectors and s and t are scalars.

    I've tried squaring both sides which results in the equation

    [tex](|A|^2/4)t^4+V.Gt^3+(P.G+|V|^2)t^2+2P.Vt + |P|^2 = s^2t^2[/tex]

    [tex](|A|^2/4)t^4+V.Gt^3+(P.G+|V|^2-s^2)t^2+2P.Vt+|P|^2=0[/tex]

    The only way I can think to solve this is through the quartic formula which is too unwieldy for my purposes and was wondering if anyone had any ideas.
     
  2. jcsd
  3. Jun 27, 2014 #2

    jedishrfu

    Staff: Mentor

    Welcome to PF!

    This looks like homework and if so you should post it under the correct topic and use the homework template where you describe the problem, show relevant formula and your attempt at a solution.

    Please be aware that PF will help you solve it but won't give you the answer without some work on your part.

    Also it might help if you described where this equation is being used and what the P, V, A and s, t refer to.

    Also your solution introduces a G which looks to be a vector too.
     
  4. Jun 30, 2014 #3
    It isn't homework.

    The problem is to hit a target with constant acceleration with a projectile that travels at constant speed.

    Known variables are:

    s(scalar) - the initial speed of your projectile

    P(vector) - the initial position of the target relative to the shooter

    V(vector) - the initial velocity of the target relative to the shooter

    A(vector) - the constant acceleration of the target relative to the shooter

    This means the targets equation of motion is
    P(t) = P + Vt + 0.5 A t^2 (this formula does work in 3d)

    where t is time

    and no matter what direction you launch your projectile in it will always be s * t away from the shooter

    and that's where |P + Vt+(At^2)/2| = st comes from

    once that's solved for t you can plug it back into the equation of motion and aim at where the target will be at that time but I'm not sure how I would go about doing that without resorting to the quartic formula

    I realize this is a physics problem but I've already done the physics aspect of it and just need help solving the mathematical equations.

    also G is supposed to be A sorry about that
     
    Last edited: Jun 30, 2014
  5. Jun 30, 2014 #4

    jedishrfu

    Staff: Mentor

    How about a numeric solution? You could use freemat a free version of MATLAB to compute the answer.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Trying to avoid the quartic formula
  1. Is that a Formula? (Replies: 7)

Loading...