{"base":{"id":"alcm-16-02","subject":"Combined Maths","title":"Differentiating from first principles","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["f(x) = x³","f(x + h) − f(x) = 3x²h + 3xh² + h³","[f(x + h) − f(x)]/h = 3x² + 3xh + h²",{"t":"h → 0:  f′(x) = 3x²","note":"first principles"}]},"say":["Tap to differentiate x³.","The function.","Expand (x + h)³ and subtract.","Divide by h.","Let h go to 0."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"The definition","title":"The limit of chord gradients","body":"Take two points on the curve, at x and x + h. The chord’s gradient is [f(x + h) − f(x)]/h. Let h → 0: the chord becomes the tangent and the gradient becomes f′(x)."},{"mode":"plot","controls":[{"id":"h","label":"h","min":0.05,"max":1.5,"step":0.05,"value":1}],"view":[-0.5,-1,2.8,12],"axes":{"xs":0.5,"ys":1},"fns":[{"e":"x^3","col":"b"},{"e":"1+(((1+h)^3-1)/h)*(x-1)","col":"o","dash":1}],"tan":{"e":"x^3","at":"1","col":"r"},"pts":[{"x":"1+h","y":"(1+h)^3","col":"o","t":"x + h"}],"ptitle":"Chord gradient","rows":["h = {h|2}",["[(1 + h)³ − 1]/h = {((1+h)^3-1)/h|3}","o"],["= 3 + 3h + h² = {3+3*h+h^2|3}","k"],["limit 3","r"]],"note":"Making h smaller makes the chord closer to the tangent; h itself is never zero.","st":"Chord {((1+h)^3-1)/h|3} → 3","eyebrow":"See it","title":"Shrink h","body":"The orange chord joins x = 1 and x = 1 + h on y = x³. As h shrinks, its gradient approaches 3, the derivative 3x² at x = 1."},{"mode":"fig","work":{"title":"Write it like this","lines":["f(x + h) − f(x) = 1/(x + h) − 1/x = −h/(x(x + h))","divide by h:  −1/(x(x + h))",{"t":"h → 0:  f′(x) = −1/x²","note":"agrees with nxⁿ⁻¹, n = −1"}]},"say":["Tap to differentiate.","Common denominator.","Cancel h.","Let h → 0."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"1/x","title":"A fraction from first principles","body":"For f(x) = 1/x, combine the two fractions over a common denominator; the h then cancels."},{"mode":"fig","work":{"title":"Write it like this","lines":["(√(x + h) − √x)/h = 1/(√(x + h) + √x)  →  1/(2√x)","sin(x + h) − sin x = sin x(cos h − 1) + cos x sin h",{"t":"÷ h, h → 0:  sin x × 0 + cos x × 1","note":"standard limits"},"d/dx(sin x) = cos x"]},"say":["Tap for two results.","Rationalise.","Expand sin(x + h).","Use the limits.","Derivative of sine."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"√x and sin x","title":"Two more first-principles results","body":"For √x, rationalise the numerator. For sin x, use the sum formula and the limits sin h/h → 1 and (cos h − 1)/h → 0 from Unit 13."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"f(x) = 5x²","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"First principles","body":"Expand, divide by h, let h → 0.","question":"From first principles, the derivative of 5x² is…","options":["5x","10x²","10x"],"answer":2,"right":"Correct. [5(x + h)² − 5x²]/h = 10x + 5h → 10x.","wrong":"Not quite. 5(x + h)² − 5x² = 10xh + 5h²."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"First principles in detail","items":[{"tag":"Layout","title":"How to set out the proof","body":"1. Write f(x + h).\n2. Find f(x + h) − f(x) and simplify fully.\n3. Divide by h (cancel a factor h).\n4. Let h → 0.\nWrite \"lim (h→0)\" on each line until the last step."},{"tag":"Not differentiable","title":"When the limit fails","body":"For f(x) = |x| at 0: (|h| − 0)/h is 1 for h > 0 and −1 for h < 0. The two one-sided limits differ, so f′(0) does not exist: the graph has a corner."},{"tag":"Exam","title":"Why it is asked","body":"A/L papers ask for first-principles derivatives of simple functions (polynomials, 1/x, √x, sin x, cos x) to test understanding. After that, the rules of Lesson 16-03 are used."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Putting h = 0 too early","body":"Setting h = 0 before cancelling gives 0/0. Simplify and cancel h first."},{"tag":"Common mistake","title":"Wrong expansion of (x + h)ⁿ","body":"(x + h)² = x² + 2xh + h², not x² + h². Expand carefully."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"From first principles, f′(x) = lim (h→0) …","options":["(f(x + h) − f(x))/h","(f(x) − f(h))/h","f(x + h)/h"],"answer":0,"right":"Correct. Expand f(x + h), subtract f(x), divide by h.","wrong":"Not quite. Cancel h before letting h → 0."},{"level":"easy","question":"For f(x) = x², (f(x + h) − f(x))/h simplifies to…","options":["2x","x + h","2x + h"],"answer":2,"right":"Correct. Expand f(x + h), subtract f(x), divide by h.","wrong":"Not quite. Cancel h before letting h → 0."},{"level":"easy","question":"For f(x) = 3x, (f(x + h) − f(x))/h = ?","options":["3x","3","3h"],"answer":1,"right":"Correct. Expand f(x + h), subtract f(x), divide by h.","wrong":"Not quite. Cancel h before letting h → 0."},{"level":"easy","question":"For a constant f(x) = c, (f(x + h) − f(x))/h = ?","options":["c","1","0"],"answer":2,"right":"Correct. Expand f(x + h), subtract f(x), divide by h.","wrong":"Not quite. Cancel h before letting h → 0."},{"level":"easy","question":"For f(x) = x³, (f(x + h) − f(x))/h = ?","options":["3x²","3x² + 3xh + h²","x² + h²"],"answer":1,"right":"Correct. Expand f(x + h), subtract f(x), divide by h.","wrong":"Not quite. Cancel h before letting h → 0."},{"level":"easy","question":"From first principles, the derivative of x² is…","options":["x","2x","2"],"answer":1,"right":"Correct. Take the limit of the difference quotient.","wrong":"Not quite. Let h → 0 at the end."},{"level":"easy","question":"From first principles, the derivative of 4x is…","options":["4","4x","0"],"answer":0,"right":"Correct. Take the limit of the difference quotient.","wrong":"Not quite. Let h → 0 at the end."},{"level":"easy","question":"From first principles, the derivative of x³ is…","options":["3x","3x²","x²"],"answer":1,"right":"Correct. Take the limit of the difference quotient.","wrong":"Not quite. Let h → 0 at the end."},{"level":"easy","question":"From first principles, the derivative of x² + x is…","options":["2x + 1","2x","x + 1"],"answer":0,"right":"Correct. Take the limit of the difference quotient.","wrong":"Not quite. Let h → 0 at the end."},{"level":"easy","question":"From first principles, the derivative of 10 is…","options":["10","1","0"],"answer":2,"right":"Correct. Take the limit of the difference quotient.","wrong":"Not quite. Let h → 0 at the end."},{"level":"medium","question":"From first principles, d/dx of 1/x is…","options":["−1/x²","1/x²","−1/x"],"answer":0,"right":"Correct. Combine fractions or rationalise, then cancel h.","wrong":"Not quite. For √x multiply by the conjugate."},{"level":"medium","question":"From first principles, d/dx of √x is…","options":["1/√x","2√x","1/(2√x)"],"answer":2,"right":"Correct. Combine fractions or rationalise, then cancel h.","wrong":"Not quite. For √x multiply by the conjugate."},{"level":"medium","question":"From first principles, d/dx of x² − 3x is…","options":["2x","x − 3","2x − 3"],"answer":2,"right":"Correct. Combine fractions or rationalise, then cancel h.","wrong":"Not quite. For √x multiply by the conjugate."},{"level":"medium","question":"From first principles, d/dx of 1/x² is…","options":["−1/x³","−2/x³","2/x³"],"answer":1,"right":"Correct. Combine fractions or rationalise, then cancel h.","wrong":"Not quite. For √x multiply by the conjugate."},{"level":"medium","question":"From first principles, d/dx of (x + 1)² is…","options":["2(x + 1)","2x","x + 1"],"answer":0,"right":"Correct. Combine fractions or rationalise, then cancel h.","wrong":"Not quite. For √x multiply by the conjugate."},{"level":"medium","question":"For f(x) = 1/x, (f(x + h) − f(x))/h = ?","options":["1/(x(x + h))","−1/(x(x + h))","−h/(x(x + h))"],"answer":1,"right":"Correct. Simplify the quotient before taking the limit.","wrong":"Not quite. sin(x + h) = sin x cos h + cos x sin h."},{"level":"medium","question":"For f(x) = √x, (f(x + h) − f(x))/h = ?","options":["1/(√(x + h) + √x)","1/(2√x)","√h/h"],"answer":0,"right":"Correct. Simplify the quotient before taking the limit.","wrong":"Not quite. sin(x + h) = sin x cos h + cos x sin h."},{"level":"medium","question":"For f(x) = sin x, the quotient uses the limit…","options":["cos h → 0","sin h/h → 1","h sin h → 1"],"answer":1,"right":"Correct. Simplify the quotient before taking the limit.","wrong":"Not quite. sin(x + h) = sin x cos h + cos x sin h."},{"level":"medium","question":"…and the result is…","options":["−cos x","sin x","cos x"],"answer":2,"right":"Correct. Simplify the quotient before taking the limit.","wrong":"Not quite. sin(x + h) = sin x cos h + cos x sin h."},{"level":"medium","question":"First principles is based on the definition of…","options":["the integral","the derivative as a limit","continuity"],"answer":1,"right":"Correct. Simplify the quotient before taking the limit.","wrong":"Not quite. sin(x + h) = sin x cos h + cos x sin h."},{"level":"hard","question":"From first principles, d/dx cos x = ?","options":["sin x","−sin x","−cos x"],"answer":1,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"The limit (cos h − 1)/h as h → 0 is…","options":["0","1","−1"],"answer":0,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx 1/√x = ?","options":["1/(2√x)","−1/√x","−1/(2x√x)"],"answer":2,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx (2x + 1)² = ?","options":["4(2x + 1)","2(2x + 1)","4x"],"answer":0,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx x⁴ = ?","options":["x³","4x⁴","4x³"],"answer":2,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx 1/(x + 1) = ?","options":["1/(x + 1)²","−1/(x + 1)","−1/(x + 1)²"],"answer":2,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx eˣ uses lim (eʰ − 1)/h = …","options":["0","1","e"],"answer":1,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"From first principles, d/dx √(x + 3) = ?","options":["1/√(x + 3)","1/(2√(x + 3))","2√(x + 3)"],"answer":1,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"Is |x| differentiable at 0?","options":["no: left and right limits differ","yes, derivative 0","yes, derivative 1"],"answer":0,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."},{"level":"hard","question":"If f is differentiable at a, then f is… at a","options":["zero","maximum","continuous"],"answer":2,"right":"Correct. Write the difference quotient and simplify carefully.","wrong":"Not quite. Use standard limits for trig and exponential cases."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"First principles","meaning":"Finding f′ directly from the limit definition."},{"word":"Chord","meaning":"A line joining two points of a curve."},{"word":"Increment h","meaning":"A small change in x."},{"word":"Differentiable","meaning":"Having a derivative at a point."},{"word":"Corner","meaning":"A sharp point where the gradient jumps."},{"word":"Limit","meaning":"The value approached as h → 0."}]},{"type":"checklist","id":"check","title":"I can…","items":["state the first-principles definition of the derivative","differentiate polynomials, 1/x, √x and sin x from first principles","recognise points where a function is not differentiable"]},{"type":"sources","id":"sources","title":"Sources","items":["NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level I 14.2)."]}],"slug":"first-principles-differentiation"},"overlay":null}