Ma · Mathematics

How to Write a Trigonometric Expression in Sine and Cosine

Updated 13 October 2026

At a glance

  1. 1. Identify other functions

    Mark every tangent, cotangent, secant, or cosecant in the expression.

  2. 2. Replace with definitions

    Rewrite each using sine and cosine, keeping track of any denominators.

  3. 3. Simplify carefully

    Combine fractions, factor, and use Pythagorean identities when useful.

  4. 4. Check the domain

    Keep the restrictions that made the original expression defined.

No specific trigonometric expression accompanies this instruction, so a single final answer cannot be determined. If you provide the expression, it can be simplified directly. The method below explains how to rewrite expressions using only sine and cosine and how to avoid changing where the original expression is defined.

The basic conversions

Use the quotient and reciprocal identities:

FunctionRewrite using sine and cosine
Tangenttan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}
Cotangentcot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x}
Secantsec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}
Cosecantcsc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}

After replacing these functions, simplify the resulting fractions. The Pythagorean identities are often useful:

sin⁡2x+cos⁡2x=1,1−sin⁡2x=cos⁡2x,1−cos⁡2x=sin⁡2x.\sin^2 x + \cos^2 x = 1, \qquad 1 - \sin^2 x = \cos^2 x, \qquad 1 - \cos^2 x = \sin^2 x.

The last two follow from the first. Choose the form that matches the factors in your expression; for example, 1−cos⁡2x1-\cos^2 x can be replaced by sin⁡2x\sin^2 x.

A reliable simplification method

  1. Replace every tangent, cotangent, secant, and cosecant using the table.
  2. Rewrite sums and differences over a common denominator if needed.
  3. Factor the numerator and denominator before canceling anything.
  4. Use a Pythagorean identity where it reduces the expression.
  5. Check that you have not canceled a quantity that could be zero in the original expression.

It is usually safer to simplify one part at a time. If the expression contains nested fractions, rewrite the division explicitly and multiply by the reciprocal of the divisor. Do not cancel terms across addition or subtraction: cancellation applies to common factors, not to pieces of a sum.

Worked example

Rewrite and simplify

sec⁡x−cos⁡xtan⁡x.\frac{\sec x - \cos x}{\tan x}.

First replace secant and tangent with sine and cosine:

sec⁡x−cos⁡xtan⁡x=1cos⁡x−cos⁡xsin⁡xcos⁡x=1−cos⁡2xcos⁡xsin⁡xcos⁡x.\begin{aligned} \frac{\sec x - \cos x}{\tan x} &= \frac{\frac{1}{\cos x} - \cos x}{\frac{\sin x}{\cos x}} \\ &= \frac{\frac{1-\cos^2 x}{\cos x}}{\frac{\sin x}{\cos x}}. \end{aligned}

Use 1−cos⁡2x=sin⁡2x1-\cos^2 x=\sin^2 x, then divide by a fraction by multiplying by its reciprocal:

sin⁡2xcos⁡xsin⁡xcos⁡x=sin⁡2xcos⁡x⋅cos⁡xsin⁡x=sin⁡x.\begin{aligned} \frac{\frac{\sin^2 x}{\cos x}}{\frac{\sin x}{\cos x}} &= \frac{\sin^2 x}{\cos x}\cdot\frac{\cos x}{\sin x} \\ &= \sin x. \end{aligned}

Thus the expression simplifies to sin⁡x\sin x wherever the original expression is defined. In the original expression, sec⁡x\sec x and tan⁡x\tan x require cos⁡x≠0\cos x\ne 0, and the denominator tan⁡x\tan x must also be nonzero, so sin⁡x≠0\sin x\ne 0. The simplified expression itself exists at more values of xx; the equality is for the original expression’s domain.

Common mistakes

  • Using the wrong quotient: tan⁡x=sin⁡x/cos⁡x\tan x=\sin x/\cos x, while cot⁡x=cos⁡x/sin⁡x\cot x=\cos x/\sin x.
  • Canceling across a sum: In (a+b)/a(a+b)/a, you cannot cancel the aa terms. Factor first, if possible.
  • Dropping domain restrictions: A simplified expression can be defined at points where the original was not. Keep the original restrictions when describing equivalence.
  • Changing the angle: Apply identities to matching angles. For instance, 1−cos⁡2x=sin⁡2x1-\cos^2 x=\sin^2 x uses the same angle xx throughout.

If the task only asks for an expression in sine and cosine, it may not require reducing everything to a single function. For example, tan⁡x+sec⁡x\tan x+\sec x can be written as sin⁡xcos⁡x+1cos⁡x\frac{\sin x}{\cos x}+\frac{1}{\cos x}, then combined as 1+sin⁡xcos⁡x\frac{1+\sin x}{\cos x}. Whether to simplify further depends on the exact expression and the requested form.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.