Differentiating sin x and cos x from First Principles | Analysis and Approaches IB Maths notes

Free preview: Differentiating sin x and cos x from First Principles

The Gradient of the Sine Curve

Analysis and approaches: HL only (AHL 5.12)

Tides, sound waves, a swinging pendulum and the voltage in your plug socket all follow sine curves. To ask "how fast is the tide rising right now?" we need the gradient of y=sinx. There's a lovely surprise waiting: the answer is another curve you already know.

Look before any algebra

Picture the graph of y=sinx and think about how steep it is.

  • At x = 0 it rises steeply.
  • At the top, x=π2, it is flat.
  • At x=π it falls steeply.
  • At the bottom, x=3π2, it is flat again.
  • Plot those gradients and you get a curve that looks exactly like y=cosx.

The graphs of y = sin x (solid blue) and y = cos x (dashed pink) for x from 0 to 2π, with short tangents on the sine curve at x = 0 (gradient 1), π/2 (gradient 0) and π (gradient −1)

Following the graph

  • At x = 0 the tangent to y=sinx has gradient 1, and cos0=1.
  • At x=π2 the tangent is flat (gradient 0), and cosπ2=0.
  • At x=π the tangent has gradient −1, and cosπ=−1.
  • Notice that everywhere, the height of the dashed cosine curve matches the gradient of the sine curve.

ddx(sinx)=cosxddx(cosx)=−sinx(x in radians)

💡 In plain words

  • Differentiate sin: get cos.
  • Differentiate cos: get minus sin.
  • Why the minus? Just after x = 0 the cos curve goes down, so its gradient must be negative there, and −sinx is negative just after 0.

Why we need a proof

  • A picture is not a proof. This note proves both results from first principles, using the same formula as for powers of x:
  • f′(x)=limh→0f(x+h)−f(x)h.
  • Differentiation from first principles is AHL 5.12. The syllabus does not say which functions, and powers of x are the usual practice, but learning this proof too is good preparation, and it shows why calculus needs radians.

📝 Radians only

  • These results are only true when x is measured in radians.
  • In calculus questions on trigonometric functions, always work in radians and set your GDC to radian mode.
  • Wrong: the gradient of sin x at x = 1 is cos(1°) = 0.99985. Right: cos 1 (radians) = 0.540.

✏️ YOUR TURN 1

Try this first:

Without a calculator, use the gradient of sine to find the gradient of y=sinx at x=π3 and at x=3π2.

Answer:

  • At π3: cosπ3=12.
  • At 3π2: cos3π2=0. The bottom of the curve is flat. ✓

The Two Small-Angle Limits

  • The proof needs two facts about sin h and cos h when the angle h (in radians) is very small.
  • They come from the small-angle approximations. These are the first terms of the Maclaurin series for sin h and cos h, which you meet later in this module (AHL 5.19); for now, the table further down this page shows they work:

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Limits, continuity and further differentiation (AHL 5.12–5.15)

  1. Continuity and Differentiability at a Point
  2. Differentiation from First Principles for Powers of x
  3. Differentiating sin x and cos x from First Principles
  4. Evaluating Limits with Series Expansions and l'Hôpital's Rule
  5. Implicit Differentiation: Finding dy/dx Without Making y the Subject
  6. Connected Rates of Change and Differentiating Inverse Functions
  7. Differentiating arcsin, arccos and arctan, and Integrals That Give Inverse Trig Functions

What's inside for this topic

7 teacher notes, 61 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Differentiation from First Principles for Powers of x Next note: Evaluating Limits with Series Expansions and l'Hôpital's Rule

Differentiating sin x and cos x from First Principles on other exam boards

All Analysis and Approaches IB Maths topics · IB Maths