The tan2x formula is tan2x=1−tan2x2tanx — the double-angle identity for tangent, expressing the tangent of a doubled angle in terms of tanx alone. This article gives the formula, two derivations (angle-addition and the sin2x/cos2x route), six worked examples in degrees and radians, the angles where it is undefined, and the mistakes that cost marks.
BT
Bhanzu TeamLast updated on June 22, 20268 min read
What Is the Tan2x Formula?
The tan2x formula is the double-angle identity for the tangent function. It expresses tan2x — the tangent of twice an angle — purely in terms of tanx:
tan2x=1−tan2x2tanx.
Two equivalent forms are worth keeping nearby. From the ratio of the sine and cosine double-angle identities:
tan2x=cos2xsin2x=cos2x−sin2x2sinxcosx.
Note the denominator 1−tan2x. Whenever tan2x=1 — that is, tanx=±1, which happens at x=45°,135°,… — the denominator is zero and tan2x is undefined. The formula diagnoses its own asymptotes.
How Is the Tan2x Formula Derived?
There are two clean routes, and both are worth seeing — they reinforce each other.
Method 1 — from the angle-addition identity. Write 2x=x+x and apply the tangent sum formula tan(A+B)=1−tanAtanBtanA+tanB with A=B=x:
Both methods land on the same identity. Method 1 is faster; Method 2 shows why the denominator is 1−tan2x and not something else — it falls out of dividing cos2x by cos2x.
Where Is the Tan2x Formula Undefined?
tan2x is undefined in two distinct ways, and a careful student tracks both.
Denominator zero: when 1−tan2x=0, i.e. tanx=±1. This occurs at x=45°,135°,225°,… (x=4π+2kπ). Here the formula fails even though 2x is a perfectly ordinary angle.
Tangent itself undefined: when cos2x=0, i.e. 2x=90°,270°,…, so x=45°,135°,… as well. At these points tan2x has a genuine vertical asymptote.
The period of tan2x is 2π (or 90°) — half the period of tanx, because doubling the input compresses the graph horizontally. That is the geometric meaning of the "2" inside.
A tempting shortcut is to read tanx straight off the sine — to write tanx=54 because the sine is 54.
Wrong path. Taking tanx=54 and pushing it through: tan2x=1−(4/5)22(4/5)=9/258/5=940. The answer is clean, which makes it feel right. It isn't. Tangent is sine over cosine, not sine over the hypotenuse — 54 is sinx, not tanx.
The break. With sinx=54 and x acute, the adjacent side is 52−42=3, so cosx=53 and tanx=cosxsinx=34 — not 54. The shortcut skipped the cosine entirely.
This matches the direct reading: 2x=90°, and tan90° is undefined because cos90°=0. Final answer: undefined — a vertical asymptote of tan2x sits at x=45°.
Example 6
Express tan2x purely in terms of sinx, given sinx=s and x acute.
With x acute, cosx=1−s2, so tanx=1−s2s. Substitute:
Final answer:tan2x=1−2s22s1−s2 — undefined when s2=21, i.e. sinx=21 (x=45°), exactly as Example 5 predicted.
Where the Tan2x Formula Carries Real Weight
The double-angle tangent identity is not just an exam line — it shows up wherever a rate, a slope, or an angle gets doubled or compared.
Calculus integration. The tangent half-angle (Weierstrass) substitution t=tan2x is the inverse move of this formula, and it converts trig integrals into rational ones. Knowing tan2x in terms of tanx is the conceptual key to that substitution.
Optics and reflection. When a mirror rotates by an angle x, the reflected ray rotates by 2x — the doubling that drives galvanometer mirrors and laser-scanning systems. Tracking the reflected slope means tracking tan2x.
Surveying and slope geometry. Computing the angle a doubled gradient makes with the horizontal uses the same identity — the slope of a line at angle x is tanx, and the doubled-angle direction is tan2x.
Signal processing. Frequency-doubling in nonlinear systems produces second-harmonic terms whose phase relationships are governed by double-angle identities, tangent included.
For Class 11 and high-school students, the everyday use is exact-value computation and proving identities — but the same formula reappears in JEE-level integration and in the rotation math behind optical instruments.
Tripping Points to Avoid
Mistake 1: Dropping the denominator
Where it slips in: Writing tan2x=2tanx, treating tangent as if it distributed over doubling the way 2x distributes.
Don't do this: Assume doubling the angle doubles the tangent. It doesn't — the 1−tan2x denominator is the whole point.
The correct way: Always carry the full fraction 1−tan2x2tanx.
Mistake 2: Confusing tan2x with tan²x
Where it slips in: Reading tan2x (tangent squared) as tan2x (tangent of double the angle), or the reverse.
Don't do this: Treat the two as interchangeable. tan2x=(tanx)2 is a number squared; tan2x is a different angle's tangent.
The correct way: Read the notation precisely. tan2x=1−tan2x2tanx, while tan2x is just (tanx)2. The memorizer archetype — fluent at both formulas — is the one who swaps them under exam pressure, because the two strings look almost identical on the page.
Mistake 3: Forgetting the formula can be undefined
Where it slips in: Plugging in x=45° (or 4π) and reporting a finite number instead of "undefined."
Don't do this: Force a value through a zero denominator. 02 is not a number.
The correct way: Check the denominator before reporting an answer. If tanx=±1, then tan2x is undefined — the formula is telling you about a vertical asymptote, not failing.
Conclusion
The tan2x formula is tan2x=1−tan2x2tanx — the double-angle identity for tangent.
It derives in one step from the tangent sum formula with A=B=x, or from dividing sin2x by cos2x.
The denominator 1−tan2x is where the formula goes undefined: at tanx=±1 (x=45°, 4π).
The two most common errors are dropping the denominator (tan2x=2tanx) and confusing tan2x with tan2x.
The identity underlies the Weierstrass integration substitution, mirror-rotation optics, and second-harmonic signal analysis.
Practice These Before Moving On
Given tanx=21, find tan2x.
Given sinx=135 with x acute, find tan2x.
Show that tan2x is undefined at x=135° (43π).
If Problem 2 used tanx=135, return to Mistake — sine is not tangent; find cosx first.
Want a live Bhanzu trainer to walk your child through double-angle identities and the Class 11 trigonometry chapter? Book a free demo class — online globally.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is the tan2x formula?
It is the double-angle identity tan2x=1−tan2x2tanx, giving the tangent of a doubled angle in terms of tanx.
What is the difference between tan2x and tan²x?
tan2x is the tangent of twice the angle. tan2x is (tanx)2 — the tangent of the same angle, squared. They are different quantities that happen to look similar in print.
How do you derive the tan2x formula?
Set 2x=x+x in the tangent sum formula tan(A+B)=1−tanAtanBtanA+tanB, which gives 1−tan2x2tanx immediately.
When is tan2x undefined?
When 1−tan2x=0, i.e. tanx=±1 (at x=45°,135°,…, or 4π+2kπ). The denominator hits zero and the function has a vertical asymptote.
What is the domain and range of tan2x?
The range is all real numbers. The domain is every real x except where 2x=2π+kπ — the asymptote points. The period is 2π (half the period of tanx).
Is the tan2x formula valid in radians and degrees?
Yes. tan(2⋅30°) and tan(2⋅6π) are the same number. Just keep your calculator in the matching mode for numeric work.
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance.
We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.