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 . There's a lovely surprise waiting: the answer is another curve you already know.
Look before any algebra
Picture the graph of and think about how steep it is.
- At x = 0 it rises steeply.
- At the top, , it is flat.
- At it falls steeply.
- At the bottom, , it is flat again.
- Plot those gradients and you get a curve that looks exactly like .

Following the graph
- At x = 0 the tangent to has gradient 1, and .
- At the tangent is flat (gradient 0), and .
- At the tangent has gradient −1, and .
- Notice that everywhere, the height of the dashed cosine curve matches the gradient of the sine curve.
💡 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 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:
- .
- 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 at and at .
Answer:
- At : .
- At : . 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.
All notes in HL: Limits, continuity and further differentiation (AHL 5.12–5.15)
- Continuity and Differentiability at a Point
- Differentiation from First Principles for Powers of x
- Differentiating sin x and cos x from First Principles
- Evaluating Limits with Series Expansions and l'Hôpital's Rule
- Implicit Differentiation: Finding dy/dx Without Making y the Subject
- Connected Rates of Change and Differentiating Inverse Functions
- 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.
Previous note: Differentiation from First Principles for Powers of x Next note: Evaluating Limits with Series Expansions and l'Hôpital's Rule