For any numbers a and b, the expression a sin x + b cos x can be rewritten as a single sine wave, √(a² + b²) × sin(x + α), for some fixed angle α. A sine wave runs between −1 and +1, so:

Maximum of a sin x + b cos x = √(a² + b²)    Minimum = −√(a² + b²)

The angle α only decides where the maximum occurs, not how large it is, so exam questions almost never need it. You can answer with the amplitude alone.

The sum is never a + b, because sin x and cos x never both equal 1 at once. Pythagorean triplets make these questions quick: 3 and 4 give 5, 5 and 12 give 13, 8 and 15 give 17. See Pythagorean triplets.

Worked example 1: 3 sin x + 4 cos x

Maximum = √(9 + 16) = 5, minimum −5.

Is the maximum really reached?

At the angle where tan x = 3/4 (about 36.87°), sin x = 3/5 and cos x = 4/5, so 3 sin x + 4 cos x = 9/5 + 16/5 = 5. The maximum is attained, not just approached.

A constant c shifts the whole range: c + a sin x + b cos x runs from c − √(a² + b²) to c + √(a² + b²).

Worked example 2: 7 + 5 sin x − 12 cos x

√(25 + 144) = 13, so the maximum is 7 + 13 = 20.

Worked example 3: the minimum of the same expression

7 − 13 = −6.

For a reciprocal such as 1 ÷ (expression), the largest value of the fraction comes from the smallest positive value of the denominator.

Worked example 4: 1 ÷ (3 sin x + 4 cos x + 10)

The denominator runs from 5 to 15, so the fraction's maximum is 1/5 = 0.2 and its minimum is 1/15.

Replace sin²x by 1 − cos²x (or the other way round). a sin²x + b cos²x = a + (b − a)cos²x, and cos²x runs from 0 to 1, so the expression lies between a and b.

a sin²x + b cos²x lies between a and b (whichever is smaller is the minimum)

Worked example 5: 4 sin²x + 9 cos²x at x = 0°

sin 0° = 0 and cos 0° = 1, giving the maximum 9.

Worked example 6: the same at x = 90°

sin 90° = 1 and cos 90° = 0, giving the minimum 4.

When two positive terms multiply to a constant, their sum is smallest when they are equal (AM ≥ GM). Since tan²x × cot²x = 1:

a tan²x + b cot²x ≥ 2√(ab) for positive a and b. There is no maximum.

Worked example 7: 9 tan²x + 4 cot²x

Minimum = 2√36 = 12, reached when 9 tan²x = 4 cot²x, that is tan²x = 2/3.

The same rule gives sin²x + cosec²x ≥ 2 and sec²x + cos²x ≥ 2, each reaching 2 only when both terms equal 1. For products, sin x cos x = (1/2) sin 2x, so it runs from −1/2 to 1/2.

Worked example 8: sin x cos x

At x = 45°, sin x cos x = (1/√2)(1/√2) = 0.5, its maximum.

  • Answering a + b. The maximum of a sin x + b cos x is √(a² + b²), which is always smaller unless a or b is 0.
  • Letting a minus sign change the range. 6 sin x − 8 cos x still ranges over ±10.
  • Using √(a² + b²) for squared forms. a sin²x + b cos²x simply lies between a and b.
  • Looking for a maximum of tan²x + cot²x. It grows without limit; only the minimum exists.
  • Forgetting the constant. Add c to both ends of the range.

For identities used in these rewrites, see trigonometric identities.

Q1. What is the maximum value of 8 sin x + 15 cos x? easy

✅ Answer: (b) 17

💡 Explanation: The maximum of a sin x + b cos x is √(a² + b²) = √(64 + 225) = √289 = 17. 23 would need sin x and cos x to equal 1 together, which never happens.

Q2. What is the minimum value of 6 sin x − 8 cos x? easy

✅ Answer: (a) −10

💡 Explanation: The range is −√(36 + 64) to +√(36 + 64), so the minimum is −10. The minus sign on b does not change √(a² + b²).

Q3. What is the maximum value of 2 sin²x + 5 cos²x? medium

✅ Answer: (d) 5

💡 Explanation: Write it as 2 + 3cos²x. Since cos²x runs from 0 to 1, the expression runs from 2 to 5. The maximum is 5.

Q4. What is the minimum value of 16 tan²x + 9 cot²x? medium

✅ Answer: (c) 24

💡 Explanation: By AM ≥ GM, 16 tan²x + 9 cot²x ≥ 2√(16 × 9) = 2 × 12 = 24, because tan²x × cot²x = 1.

Q5. What is the maximum value of 7 + 3 sin x − 4 cos x? easy

✅ Answer: (b) 12

💡 Explanation: 3 sin x − 4 cos x ranges from −5 to 5, so adding 7 gives a range of 2 to 12. The maximum is 12.

Why is the maximum √(a² + b²) and not a + b?

sin x and cos x cannot both equal 1 at the same angle. Writing a sin x + b cos x as √(a² + b²) × sin(x + α) for a suitable angle α shows the expression is a single sine wave with amplitude √(a² + b²).

Does the sign of a or b matter?

Not for the size of the range. a sin x − b cos x still runs from −√(a² + b²) to +√(a² + b²); the sign only shifts where the maximum occurs.

When does the AM ≥ GM rule apply?

When the two terms are positive and their product is constant, as with a tan²x and b cot²x (product ab). Then their sum is at least 2√(ab), with equality when the two terms are equal.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 14 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts.

Found an error? Report it and we will correct the page.