2
$\begingroup$

This is a pretty dumb question, but it's been a while since I had to do math like this and it's escaping me at the moment (actually, I'm not sure I ever knew how to do this. I remember the basic trigonometric identities, but not anything like this).

I have a simple equation of one unknown, but the unknown occurs twice in different trigonometric functions and I'm not sure how to combine the two. I want to simply solve for $\theta$ in the following equation, where $a$ and $b$ are constants.

$a=\tan(\theta) - \frac{b}{\cos^2\theta}$

How can I reduce this into a single expression so that I can solve for $\theta$ given any $a$ and $b$?

(I'm only interested in real solutions and, in practice (this is used to calculate the incidence angle for a projectile such that it will pass through a certain point), it should always have a real solution, but an elegant method of checking that it doesn't would not go unappreciated.)


Based on Braindead's hint I reduced the equation to:

$0=(b-a)+\tan(\theta)+b\tan^2(\theta)$

I can now solve for $\tan(\theta)$ using the quadratic equation, which gets me what I'm after. Is this the solution others were hinting towards? It seems like there would be a way to do it as a single trigonometric operation, but maybe not.

  • 2
    Sometimes you can find a single trigonometric function such that your expression can be written as, say, a polynomial or rational function in terms of it. This is the case here; think trig identities. But most of the time you can't.2011-01-22
  • 2
    Use one of the forms of $\sin^2(\theta) + \cos^2(\theta) = 1.$ For this particular problem, you have a $1/\cos^2(\theta)$, so you probably want to take the identity I gave you and divide both sides by $\cos^2(\theta)$.2011-01-22
  • 0
    This is a simple equation of the form $a \cos x + b \sin x = c$. You don't really have to deal with quadratics and multiple roots.2011-01-22
  • 0
    The solution you've arrived at, converting to just tangents, is very likely the one people were hinting at. All or nearly all trig equation solving exercises (equations designed to be solved by students) can either be reduced to a polynomial in one trig function or factored such that each factor involves only one trig function.2011-01-22

2 Answers 2