7.3 Methods of Differentiation
A handful of rules differentiate every function on the JEE Main list: sums, products and quotients, a table of standard derivatives, the chain rule for composites, inverse-trigonometric substitutions, logarithmic and implicit differentiation — and differentiating twice gives $\dfrac{d^2y}{dx^2}$.
A delivery drone climbs so that its height after $t$ seconds is $h(t)=t^2\sin\!\left(\tfrac{t}{4}\right)+3t$ metres. Its vertical speed at any moment is the derivative $h'(t)$. In Section 7.2 the derivative was defined as a limit, $f'(x)=\displaystyle\lim_{h\to0}\frac{f(x+h)-f(x)}{h}$ — but working out that limit afresh for $t^2\sin\frac t4$ would be slow and error-prone, and for $x^x$ or $\sin^{-1}\!\frac{2x}{1+x^2}$ it would be painful. What we need is a calculus of rules: prove once how derivatives behave under sums, products, quotients and composition, prove the derivatives of a few basic functions, and then every formula built from them can be differentiated by algebra alone.
That is the plan of this section. We prove the product, quotient and chain rules, build the table of standard derivatives (trigonometric, exponential, logarithmic and inverse trigonometric), and add three techniques that JEE Main uses constantly: substitution to simplify inverse-trigonometric expressions, logarithmic differentiation for powers like $x^x$ and long products, and implicit differentiation for curves such as $x^2+xy+y^2=7$ that are not written as $y=f(x)$. Differentiating a derivative once more gives the second derivative, the last item on the syllabus list. Almost every JEE Main paper has two or three questions that are pure applications of these methods, and every question on rates, monotonicity and maxima in Section 7.4 starts with them.
Notation: for $y=f(x)$ we write the derivative as $f'(x)$, $\dfrac{dy}{dx}$, $y'$ or $y_1$, and use the limits of Section 7.1: $\displaystyle\lim_{h\to0}\frac{\sin h}{h}=1$, $\ \displaystyle\lim_{h\to0}\frac{1-\cos h}{h}=0$, $\ \displaystyle\lim_{h\to0}\frac{e^h-1}{h}=1$, $\ \displaystyle\lim_{h\to0}\frac{\ln(1+h)}{h}=1$. We also use the fact from Section 7.2 that a function differentiable at a point is continuous there.
Sums, Products and Quotients
Let $u$ and $v$ be differentiable at $x$ and let $c$ be a constant. Then $u\pm v$, $cu$, $uv$ and (where $v(x)\ne0$) $\dfrac uv$ are differentiable at $x$, and
- Sum and difference: $(u\pm v)'=u'\pm v'$.
- Constant multiple: $(cu)'=c\,u'$.
- Product rule: $(uv)'=u'v+uv'$.
- Quotient rule: $\left(\dfrac uv\right)'=\dfrac{u'v-uv'}{v^2}$, provided $v(x)\ne0$.
Proof. (1) and (2) follow from the limit of a sum and of a constant multiple. (3) Add and subtract $u(x+h)v(x)$ in the numerator:
$$\frac{u(x+h)v(x+h)-u(x)v(x)}{h}=u(x+h)\,\frac{v(x+h)-v(x)}{h}+v(x)\,\frac{u(x+h)-u(x)}{h}.$$As $h\to0$, $u(x+h)\to u(x)$ because $u$ is continuous at $x$, and the two difference quotients tend to $v'(x)$ and $u'(x)$. So the limit is $uv'+vu'$. (4) First take $u=1$. Since $v$ is continuous and $v(x)\ne0$, $v(x+h)\ne0$ for small $h$, and
$$\frac{1}{h}\left[\frac{1}{v(x+h)}-\frac{1}{v(x)}\right]=-\frac{v(x+h)-v(x)}{h}\cdot\frac{1}{v(x+h)\,v(x)}\ \to\ -\frac{v'}{v^2}.$$Then by the product rule $\left(u\cdot\dfrac1v\right)'=\dfrac{u'}{v}-\dfrac{uv'}{v^2}=\dfrac{u'v-uv'}{v^2}$. $\blacksquare$ Applying (3) twice gives the rule for three factors, $(uvw)'=u'vw+uv'w+uvw'$: differentiate one factor at a time and add.
For every real number $n$,
$$\frac{d}{dx}\,x^n=n\,x^{n-1},$$for all real $x$ when $n$ is a positive integer, for $x\ne0$ when $n$ is a negative integer or zero, and for $x\gt0$ when $n$ is any real number (and wherever $x^n$ is defined and $n\,x^{n-1}$ makes sense, e.g. $x^{1/3}$ for $x\ne0$). In particular $\dfrac{d}{dx}(c)=0$ for a constant $c$, $\ \dfrac{d}{dx}\sqrt x=\dfrac{1}{2\sqrt x}$ and $\dfrac{d}{dx}\dfrac1x=-\dfrac1{x^2}$.
Proof for a positive integer $n$. By the binomial theorem (Chapter 5), $(x+h)^n-x^n=n x^{n-1}h+\binom n2x^{n-2}h^2+\dots+h^n$. Divide by $h$: every term after the first still contains a factor $h$, so the limit is $nx^{n-1}$. For $n=-m$ with $m$ a positive integer, the quotient rule gives $\left(\dfrac1{x^m}\right)'=-\dfrac{mx^{m-1}}{x^{2m}}=-m\,x^{-m-1}$. The case of a general real $n$ follows from the chain rule below: $x^n=e^{n\ln x}$ for $x\gt0$. $\blacksquare$
Suppose $u(1)=2$, $u'(1)=3$, $v(1)=-1$ and $v'(1)=4$. Then $(uv)'(1)$ equals
Derivatives of the Standard Functions
Every function on the JEE Main list is built from powers, the six trigonometric functions, exponentials and logarithms. Here are their derivatives; the inverse trigonometric functions follow in the next subsection.
| $f(x)$ | $f'(x)$ | valid for |
|---|---|---|
| $\sin x$ | $\cos x$ | all real $x$ |
| $\cos x$ | $-\sin x$ | all real $x$ |
| $\tan x$ | $\sec^2x$ | $x\ne(2k+1)\tfrac\pi2$ |
| $\cot x$ | $-\operatorname{cosec}^2x$ | $x\ne k\pi$ |
| $\sec x$ | $\sec x\tan x$ | $x\ne(2k+1)\tfrac\pi2$ |
| $\operatorname{cosec}x$ | $-\operatorname{cosec}x\cot x$ | $x\ne k\pi$ |
| $e^x$ | $e^x$ | all real $x$ |
| $a^x$ ($a\gt0$, $a\ne1$) | $a^x\ln a$ | all real $x$ |
| $\ln x$ | $\dfrac1x$ | $x\gt0$ |
| $\ln|x|$ | $\dfrac1x$ | $x\ne0$ |
| $\log_a x$ | $\dfrac{1}{x\ln a}$ | $x\gt0$ |
Angles are in radians ($k$ is any integer). With degrees every trigonometric derivative picks up a factor $\tfrac{\pi}{180}$.
Proof. Sine: $\sin(x+h)-\sin x=\sin x(\cos h-1)+\cos x\sin h$, so
$$\frac{\sin(x+h)-\sin x}{h}=-\sin x\cdot\frac{1-\cos h}{h}+\cos x\cdot\frac{\sin h}{h}\ \to\ \cos x.$$Cosine is the same with $\cos(x+h)-\cos x=\cos x(\cos h-1)-\sin x\sin h$. Tangent: by the quotient rule, $\left(\dfrac{\sin x}{\cos x}\right)'=\dfrac{\cos^2x+\sin^2x}{\cos^2x}=\sec^2x$; cot, sec and cosec are similar (Exercise I). Exponential: $\dfrac{e^{x+h}-e^x}{h}=e^x\cdot\dfrac{e^h-1}{h}\to e^x$. Logarithm: for $x\gt0$, with $k=\tfrac hx\to0$,
$$\frac{\ln(x+h)-\ln x}{h}=\frac1x\cdot\frac{\ln(1+k)}{k}\ \to\ \frac1x.$$For $x\lt0$, $\ln|x|=\ln(-x)$, and the chain rule below gives $\dfrac{-1}{-x}=\dfrac1x$ again. Finally $a^x=e^{x\ln a}$ and $\log_ax=\dfrac{\ln x}{\ln a}$ (chain rule and constant multiple). $\blacksquare$
The derivative of $\sec x$ at $x=\dfrac\pi4$ is
The Chain Rule, Inverse Functions and Logarithmic Differentiation
Most functions in JEE problems are composites (Section 1.2): $\sin(x^2)$ is "square, then take the sine", $e^{-x^2}\cos3x$ contains two composites. The chain rule says how their derivatives combine: rates multiply. If $u$ changes $3$ times as fast as $x$, and $y$ changes $2$ times as fast as $u$, then $y$ changes $6$ times as fast as $x$.
If $u=g(x)$ is differentiable at $x$ and $y=f(u)$ is differentiable at the point $u=g(x)$, then $f\circ g$ is differentiable at $x$ and
$$(f\circ g)'(x)=f'\big(g(x)\big)\,g'(x),\qquad\text{i.e.}\qquad\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}.$$Proof. Fix $x$, put $u=g(x)$, and define $\varphi(k)=\dfrac{f(u+k)-f(u)}{k}$ for $k\ne0$ and $\varphi(0)=f'(u)$. Then $\varphi$ is continuous at $0$, and $f(u+k)-f(u)=\varphi(k)\,k$ for every $k$, including $k=0$. Take $k=g(x+h)-g(x)$:
$$\frac{f(g(x+h))-f(g(x))}{h}=\varphi(k)\cdot\frac{g(x+h)-g(x)}{h}.$$As $h\to0$, $k\to0$ (continuity of $g$), so $\varphi(k)\to f'(u)$, while the last fraction tends to $g'(x)$. $\blacksquare$ (Writing $\dfrac{\Delta y}{\Delta x}=\dfrac{\Delta y}{\Delta u}\cdot\dfrac{\Delta u}{\Delta x}$ is the idea, but it divides by $\Delta u$, which may be $0$; the function $\varphi$ avoids that.)
The chain rule in the forms used every day: $\ \dfrac{d}{dx}[g(x)]^n=n[g(x)]^{n-1}g'(x)$, $\ \dfrac{d}{dx}e^{g(x)}=e^{g(x)}g'(x)$, $\ \dfrac{d}{dx}\ln|g(x)|=\dfrac{g'(x)}{g(x)}$, $\ \dfrac{d}{dx}\sin g(x)=\cos g(x)\cdot g'(x)$. It also completes Theorem 7.19: for $x\gt0$, $\dfrac{d}{dx}x^n=\dfrac{d}{dx}e^{n\ln x}=e^{n\ln x}\cdot\dfrac nx=nx^{n-1}$.
Let $f$ be continuous and strictly increasing (or strictly decreasing) on an interval, differentiable at $x$ with $f'(x)\ne0$, and let $y=f(x)$. Then $f^{-1}$ is differentiable at $y$ and
$$\left(f^{-1}\right)'(y)=\frac{1}{f'(x)},\qquad\text{i.e.}\qquad\frac{dx}{dy}=\frac{1}{dy/dx}.$$In particular:
| $f(x)$ | $f'(x)$ | valid for |
|---|---|---|
| $\sin^{-1}x$ | $\dfrac{1}{\sqrt{1-x^2}}$ | $-1\lt x\lt1$ |
| $\cos^{-1}x$ | $-\dfrac{1}{\sqrt{1-x^2}}$ | $-1\lt x\lt1$ |
| $\tan^{-1}x$ | $\dfrac{1}{1+x^2}$ | all real $x$ |
| $\cot^{-1}x$ | $-\dfrac{1}{1+x^2}$ | all real $x$ |
| $\sec^{-1}x$ | $\dfrac{1}{|x|\sqrt{x^2-1}}$ | $|x|\gt1$ |
| $\operatorname{cosec}^{-1}x$ | $-\dfrac{1}{|x|\sqrt{x^2-1}}$ | $|x|\gt1$ |
Proof. Granting that $f^{-1}$ is differentiable (the graph of $f^{-1}$ is the mirror image of the graph of $f$ in $y=x$, so it has a tangent wherever $f$ has a non-horizontal one), differentiate $f\big(f^{-1}(y)\big)=y$ by the chain rule: $f'(x)\cdot\left(f^{-1}\right)'(y)=1$. For $\sin^{-1}$: $y=\sin^{-1}x$ means $x=\sin y$ with $-\tfrac\pi2\lt y\lt\tfrac\pi2$, so $\dfrac{dx}{dy}=\cos y$, which is positive on that interval: $\cos y=\sqrt{1-\sin^2y}=\sqrt{1-x^2}$. Hence $\dfrac{dy}{dx}=\dfrac{1}{\sqrt{1-x^2}}$. For $\tan^{-1}$: $x=\tan y$, $\dfrac{dx}{dy}=\sec^2y=1+x^2$. The rest: $\cos^{-1}x=\tfrac\pi2-\sin^{-1}x$ and $\cot^{-1}x=\tfrac\pi2-\tan^{-1}x$ give the minus signs; $\sec^{-1}x=\cos^{-1}\tfrac1x$, whose derivative is $-\dfrac{1}{\sqrt{1-1/x^2}}\cdot\left(-\dfrac1{x^2}\right)$. Since $\sqrt{1-1/x^2}=\dfrac{\sqrt{x^2-1}}{|x|}$, this equals $\dfrac{1}{|x|\sqrt{x^2-1}}$. $\blacksquare$
- Spot the trigonometric pattern inside: $\dfrac{2x}{1+x^2}=\sin2\theta$, $\ \dfrac{1-x^2}{1+x^2}=\cos2\theta$, $\ \dfrac{2x}{1-x^2}=\tan2\theta$ (put $x=\tan\theta$); $\ 3x-4x^3=\sin3\theta$, $\ 2x\sqrt{1-x^2}=\sin2\theta$ (put $x=\sin\theta$); $\ \sqrt{1+x^2}=\sec\theta$ ($x=\tan\theta$).
- Track the interval of $\theta$ from the interval of $x$, and check whether the multiple angle ($2\theta$, $3\theta$) lies in the principal branch of the outer inverse function. Only then may you write $\sin^{-1}(\sin2\theta)=2\theta$.
- Differentiate the simplified expression. The answer usually changes sign or form between intervals — JEE options are built on exactly that.
In the lab below choose $h(x)=\sin(x^2)$ and set $x_0=1.5$. The inner function $u=x^2$ is increasing there. What will the sign of the composite's slope $h'(1.5)$ be?
Two kinds of function resist the rules so far: a variable raised to a variable power, like $x^x$ (neither the power rule nor the exponential rule applies — the base and the exponent both vary), and long products and quotients. Taking logarithms turns powers into products and products into sums.
- Write $\ln y$ (or $\ln|y|$, which allows negative values) and simplify with the laws of logarithms: $\ln\big(u^v\big)=v\ln u$, $\ \ln(uv)=\ln u+\ln v$, $\ \ln\tfrac uv=\ln u-\ln v$.
- Differentiate both sides with respect to $x$; the left side gives $\dfrac{1}{y}\dfrac{dy}{dx}$ by the chain rule.
- Multiply by $y$ and substitute the original expression back. For $y=u^v$ this gives the useful formula $\dfrac{d}{dx}u^v=u^v\left(v'\ln u+\dfrac{v\,u'}{u}\right)$ ($u\gt0$).
- A sum such as $x^x+(\sin x)^x$ cannot be logged in one go: differentiate each term separately.
$\dfrac{d}{dx}\Big[\sin^{-1}\!\big(\sqrt x\,\big)\Big]$ for $0\lt x\lt1$ is
Implicit Functions and Second-Order Derivatives
An equation $F(x,y)=0$ defines $y$ implicitly as a function of $x$ near a point $(x_0,y_0)$ on the curve if, near that point, the curve is the graph of a function $y=y(x)$ — even when that function is never written out. Implicit differentiation finds $\dfrac{dy}{dx}$ without solving for $y$: differentiate every term of the equation with respect to $x$, treating $y$ as $y(x)$ and using the chain rule (so $\dfrac{d}{dx}y^2=2y\,y'$, $\ \dfrac{d}{dx}(xy)=y+x\,y'$, $\ \dfrac{d}{dx}\sin y=\cos y\cdot y'$), then solve the resulting equation for $y'$.
The circle $x^2+y^2=25$ is not the graph of one function — it fails the vertical line test — but near $(3,4)$ it is the graph of $y=\sqrt{25-x^2}$. Implicit differentiation gives $2x+2yy'=0$, $\ y'=-\dfrac xy=-\dfrac34$, the slope of that upper semicircle at $(3,4)$, without choosing the square root. The formula fails only where the denominator vanishes, at $(\pm5,0)$, where the tangent is vertical.
If $f$ is differentiable on an interval and its derivative $f'$ is itself differentiable at $x$, the derivative of $f'$ is the second derivative of $f$:
$$f''(x)=\frac{d}{dx}\big(f'(x)\big)=\frac{d^2y}{dx^2},\qquad\text{also written } y'' \text{ or } y_2.$$If $s(t)$ is the position of a particle on a line, $s'(t)$ is its velocity and $s''(t)$ its acceleration.
For an implicit function, differentiate the equation for $y'$ once more, treating both $y$ and $y'$ as functions of $x$, and substitute the value of $y'$ at the point. A neat alternative: differentiate the original relation twice and solve for $y''$.
Choose the curve $x^2+xy+y^2=7$ in the lab below and let the point travel round it. Where will the tangent be horizontal?
Parametric differentiation is in the CBSE Class 12 syllabus and is used throughout JEE Advanced calculus; the JEE Main 2026 list does not name it, though it is nothing more than the chain rule (Theorem 7.21). A curve may be given by $x=x(t)$, $y=y(t)$. Where $\dfrac{dx}{dt}\ne0$,
$$\frac{dy}{dx}=\frac{dy/dt}{dx/dt},\qquad \frac{d^2y}{dx^2}=\frac{\dfrac{d}{dt}\!\left(\dfrac{dy}{dx}\right)}{dx/dt}.$$For $x=t^2$, $y=t^3$ ($t\ne0$): $\dfrac{dy}{dx}=\dfrac{3t^2}{2t}=\dfrac{3t}{2}$ and $\dfrac{d^2y}{dx^2}=\dfrac{3/2}{2t}=\dfrac{3}{4t}$. Note that $\dfrac{d^2y}{dx^2}$ is not $\dfrac{d^2y/dt^2}{d^2x/dt^2}=\dfrac{6t}{2}=3t$ — the second derivative must be divided by $\dfrac{dx}{dt}$, not by $\dfrac{d^2x}{dt^2}$.
1. Products and quotients. $(uv)'\ne u'v'$, and the quotient rule's numerator is $u'v-uv'$ in that order; reversing it flips the sign of every answer.
2. The missing inner derivative. $\dfrac{d}{dx}\sin(x^2)=2x\cos(x^2)$, not $\cos(x^2)$; $\ \dfrac{d}{dx}e^{3x}=3e^{3x}$. Count the layers of a composite and produce one factor for each.
3. Powers with a variable exponent. $\dfrac{d}{dx}a^x=a^x\ln a$, not $xa^{x-1}$; and $\dfrac{d}{dx}x^x=x^x(1+\ln x)$ is neither $x\cdot x^{x-1}$ nor $x^x\ln x$. Use logarithmic differentiation, and never take the logarithm of a sum.
4. Inverse-trigonometric simplifications depend on the interval. $\sin^{-1}\!\frac{2x}{1+x^2}=2\tan^{-1}x$ only for $|x|\le1$; for $x\gt1$ it is $\pi-2\tan^{-1}x$, and the derivative changes sign. Always check where the multiple angle lies.
5. Second derivatives. In implicit problems, differentiate the $y'$-equation treating $y'$ as a function too, and substitute $y'$ before evaluating $y''$. And $\dfrac{d^2y}{dx^2}\ne\dfrac{1}{d^2x/dy^2}$: only first derivatives invert like that.
If $x^2+y^2=25$, then $\dfrac{d^2y}{dx^2}$ at the point $(0,5)$ is
Exercises
Angles are in radians. Give exact answers where possible and decimals to four significant figures in the answer boxes.
- 1 $y=3x^4-2x^{3/2}+\dfrac5x$.
- 2 $y=(x^2-3x)(2x+1)$; find $y'(2)$.
- 3 $y=\dfrac{x+1}{x-1}$; find $y'(3)$.
- 4 $y=x^2e^x$; find $y'(1)$.
- 5 $y=\sin x\cos x$ (simplify your answer).
- 6 $y=\dfrac{1+\sin x}{\cos x}$; show that $y'=\dfrac{1}{1-\sin x}$.
- 7 $y=x\ln x-x$.
- 8 $y=\dfrac{e^x}{1+e^x}$; find $y'(0)$.
- 9 $y=10^x\log_{10}x$; find $y'(1)$.
- 1 $y=(3x^2-1)^5$; find $y'(1)$.
- 2 $y=\sqrt{x^2+9}$; find $y'(4)$.
- 3 $y=\sin^2(3x)$.
- 4 $y=\ln(\cos x)$, $\ -\tfrac\pi2\lt x\lt\tfrac\pi2$.
- 5 $y=\ln(\sec x+\tan x)$; show that $y'=\sec x$.
- 6 $y=\tan^{-1}(x^2)$; find $y'(2)$.
- 7 $y=\sin^{-1}\!\sqrt x$, $\ 0\lt x\lt1$; find $y'\!\left(\tfrac14\right)$.
- 8 $y=\cos^{-1}\!\left(\dfrac{1-x^2}{1+x^2}\right)$. Simplify for $x\gt0$ and for $x\lt0$, and find $y'(\sqrt3)$.
- 9 $y=\sin^{-1}(3x-4x^3)$ for $|x|\lt\tfrac12$. Simplify and find $y'(0)$.
- 1 $y=x^{1/x}$ ($x\gt0$). Find $y'$, and show that $y'=0$ only at $x=e$.
- 2 $y=(\sin x)^x$ on $(0,\pi)$; find $y'\!\left(\tfrac\pi2\right)$.
- 3 $y=x^x+2^x$; find $y'(1)$.
- 4 $y=\dfrac{(x-1)(x-2)(x-3)}{x+1}$; find $y'(0)$ by logarithmic differentiation.
- 5 $x^3+y^3=9$; find $\dfrac{dy}{dx}$ at $(1,2)$.
- 6 $xy+y^2=6$; find $\dfrac{dy}{dx}$ at $(1,2)$.
- 7 $e^y+xy=e$; find $\dfrac{dy}{dx}$ at $(0,1)$.
- 8 If $y=\sqrt{x+\sqrt{x+\sqrt{x+\cdots}}}$ (to infinity, $x\gt0$), show that $\dfrac{dy}{dx}=\dfrac{1}{2y-1}$.
- 1 $y=x^3-4x^2+7$; find $y''(2)$.
- 2 $y=xe^{-x}$; find $y''$ and $y''(0)$.
- 3 $y=\ln(1+x^2)$; find $y''(0)$.
- 4 $y=A\cos3x+B\sin3x$ ($A$, $B$ constants). Show that $y''+9y=0$.
- 5 $y=\tan^{-1}x$. Show that $(1+x^2)y''+2xy'=0$.
- 6 $x^2+y^2=25$. Show that $y''=-\dfrac{25}{y^3}$ and find its value at $(3,4)$.
- 7 $y=\sin(\ln x)$, $x\gt0$. Show that $x^2y''+xy'+y=0$.
- 8 (Modelling) A lift's displacement from its starting floor is $s(t)=t^3-6t^2+9t$ metres after $t$ seconds ($0\le t\le4$). Find its velocity and acceleration at $t=4$ s, and the moment at which its acceleration is zero.
E1. JEE Main · MCQ If $f(x)=\dfrac{\sin x}{1+\cos x}$, then $f'\!\left(\dfrac\pi2\right)$ equals (A) $\dfrac12$ (B) $1$ (C) $2$ (D) $0$
E2. JEE Main · Numerical Let $f(x)=(1+x)(1+x^2)(1+x^4)(1+x^8)$. Find $f'(1)$. Give the answer to the nearest integer.
E3. JEE Main · MCQ If $y=e^{2x}(a\cos x+b\sin x)$, where $a$ and $b$ are constants, satisfies $y''+py'+qy=0$ for all $x$ and all $a$, $b$, then $(p,q)$ is (A) $(4,5)$ (B) $(-4,5)$ (C) $(-4,-5)$ (D) $(5,-4)$
E4. JEE Main · Numerical The curve $x^2-xy+y^2=1$ passes through $(1,1)$; near that point it defines $y$ as a function of $x$. Find the value of $y'(1)\cdot y''(1)$. Give the answer to the nearest integer.
E5. JEE Main · MCQ Let $f(x)=x^x$ on $(1,\infty)$, where it is one-one, and let $g$ be its inverse function. Then $g'(4)$ equals (A) $\dfrac{1}{4(1+\ln2)}$ (B) $4(1+\ln2)$ (C) $\dfrac{1}{4\ln2}$ (D) $\dfrac{1}{2(1+\ln2)}$
E6. JEE Main · Numerical Let $y=\left(x+\sqrt{x^2+1}\right)^3$. If $(1+x^2)\,y''+x\,y'=k\,y$ for all real $x$, find $k+y''(0)$. Give the answer to the nearest integer.
Research question. A phone's GPS, a heart monitor or a weather station records a quantity at discrete moments, and software must estimate its rate of change from those numbers alone — with no formula to apply the rules of this section to. How accurately can a computer approximate a derivative by a difference quotient $\dfrac{f(x+h)-f(x)}{h}$, and is a smaller step $h$ always better?
Why it matters. Numerical derivatives drive speed readings from position data, the detection of the steep rise in an ECG trace, the gradient calculations behind weather models and the "backpropagation" checks used to train neural networks. Engineers must choose the step $h$: too large and the secant is a poor tangent; too small and the computer's rounding errors take over.
What to do.
- Take $f(x)=e^x\sin x$ and find $f'(1)$ exactly with the product rule (Example 2(a)). Evaluate it to ten decimal places.
- For $h=10^{-1},10^{-2},\dots,10^{-12}$ compute the forward difference $\dfrac{f(1+h)-f(1)}{h}$ and the central difference $\dfrac{f(1+h)-f(1-h)}{2h}$, and the error of each against the exact value.
- Plot $\log_{10}(\text{error})$ against $\log_{10}h$ for both methods. Find the slope of each graph for large $h$, and the $h$ at which each error is smallest.
- Explain the two regimes: the error of the formula itself (which shrinks with $h$) and the rounding error of the computer (about $10^{-16}$ relative, divided by $h$).
Tools: A spreadsheet (use the EXP and SIN functions and a logarithmic chart) or a few lines of Python.
Hand in: Your table and log–log plot, the best step for each method, and three sentences explaining why the error curve is V-shaped.
Going further. Use the binomial-style expansion $f(x+h)=f(x)+hf'(x)+\tfrac{h^2}{2}f''(x)+\dots$ to show why the forward error is about $\tfrac h2|f''(x)|$ and the central error about $\tfrac{h^2}{6}|f'''(x)|$. Which method would you choose for noisy sensor data, and why?
🧪 Self-check quiz
Q1. $\dfrac{d}{dx}\left(x^2\sin x\right)$ equals
Q2. $\dfrac{d}{dx}\,e^{3x^2}$ equals
Q3. The derivative of $\tan^{-1}x$ at $x=1$ is
Q4. If $xy=4$, then $\dfrac{dy}{dx}$ equals
Q5. If $y=a^x$ with $a\gt0$, $a\ne1$, then $\dfrac{d^2y}{dx^2}$ is