Trigonometry · real student question

Solve cos t = -tan(x) times tan(x) for x, and state when a solution exists.

Question

Solve for xx:

cost=tan(x)tan(x)\cos t=-\tan(x)\tan(x)

Step-by-step solution

  1. Collapse the repeated factor. The right-hand side is a product of a quantity with itself:

    tan(x)tan(x)=tan2(x)cost=tan2(x)\tan(x)\tan(x)=\tan^2(x)\quad\Rightarrow\quad \cos t=-\tan^2(x)

  2. Use the range of tan2\tan^2 to find when a solution can exist at all. A square of a real number is never negative, so tan2(x)0\tan^2(x)\ge 0 and therefore tan2(x)0-\tan^2(x)\le 0. The left-hand side must match, giving the solvability condition

    cost0t[π2+2kπ, 3π2+2kπ]\cos t\le 0\quad\Longleftrightarrow\quad t\in\left[\tfrac{\pi}{2}+2k\pi,\ \tfrac{3\pi}{2}+2k\pi\right]

    If cost>0\cos t>0 there is no real xx whatsoever — checking this first saves solving an impossible equation.

  3. Isolate the square.

    tan2(x)=cost\tan^2(x)=-\cos t

    Under the condition above the right side is 0\ge 0, so taking a square root is legitimate.

  4. Take both square roots.

    tan(x)=±cost\tan(x)=\pm\sqrt{-\cos t}

    Keeping both signs is essential: dropping the negative branch loses half the solution family.

  5. Invert the tangent over its full period. The tangent has period π\pi (not 2π2\pi) and arctan\arctan is an odd function, so the two branches merge into one formula:

    x=±arctan(cost)+kπ,kZx=\pm\arctan\left(\sqrt{-\cos t}\right)+k\pi,\qquad k\in\mathbb{Z}

  6. Check two representative values of tt. If cost=0\cos t=0 (say t=π2t=\tfrac{\pi}{2}) the formula gives x=kπx=k\pi, and indeed tan2(0)=0=cosπ2-\tan^2(0)=0=\cos\tfrac{\pi}{2} ✓. If t=πt=\pi then cost=1\cos t=-1, so tan2x=1\tan^2 x=1 and x=±π4+kπx=\pm\tfrac{\pi}{4}+k\pi; substituting, tan2 ⁣(π4)=1=cosπ-\tan^2\!\left(\tfrac{\pi}{4}\right)=-1=\cos\pi ✓.

Answer

x=±arctan(cost)+kπ, kZ(only if cost0)x=\pm\arctan\left(\sqrt{-\cos t}\right)+k\pi,\ k\in\mathbb{Z}\qquad(\text{only if }\cos t\le 0)

Need to solve a different problem like this? Open the solver →