Chapter 7 · Limit, Continuity and Differentiability

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

📐 Theorem 7.18 — The algebra of derivatives

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

  1. Sum and difference: $(u\pm v)'=u'\pm v'$.
  2. Constant multiple: $(cu)'=c\,u'$.
  3. Product rule: $(uv)'=u'v+uv'$.
  4. 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.

📐 Theorem 7.19 — The power rule

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$

✏️ Example 1 — Products, quotients and simplifying first
(a) Differentiate $y=(x^2+1)(x^3-2x)$ by the product rule and find $y'(1)$; check by expanding first. (b) Differentiate $y=\dfrac{2x-1}{x^2+3}$ and find $y'(0)$. (c) Find $\dfrac{dy}{dx}$ at $x=4$ for $y=\left(\sqrt x+\dfrac1{\sqrt x}\right)^2$.
(a) $u=x^2+1$, $v=x^3-2x$: $y'=2x(x^3-2x)+(x^2+1)(3x^2-2)$. At $x=1$: $2(-1)+2(1)=0$.
Check Expanded, $y=x^5-x^3-2x$, so $y'=5x^4-3x^2-2$ and $y'(1)=5-3-2=0$ ✓.
(b) $y'=\dfrac{2(x^2+3)-(2x-1)(2x)}{(x^2+3)^2}=\dfrac{-2x^2+2x+6}{(x^2+3)^2}$, so $y'(0)=\dfrac{6}{9}=\dfrac23$.
(c) Simplify before differentiating: $y=x+2+\dfrac1x$, so $y'=1-\dfrac1{x^2}$ and $y'(4)=1-\dfrac1{16}=\dfrac{15}{16}$.
⏱ Shortcut Expanding a product of two short polynomials, or splitting a fraction, is often faster and safer than the product or quotient rule. Use the rules when the factors are not polynomials.

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.

📐 Theorem 7.20 — Standard derivatives
$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$

✏️ Example 2 — Using the table with the rules
Differentiate (a) $e^x\sin x$; (b) $x^2\ln x$; (c) $\tan x-x$; (d) $2^x\log_2x$, and find the value of (d)'s derivative at $x=1$.
(a) Product rule: $e^x\sin x+e^x\cos x=e^x(\sin x+\cos x)$.
(b) $2x\ln x+x^2\cdot\dfrac1x=2x\ln x+x=x(2\ln x+1)$, for $x\gt0$.
(c) $\sec^2x-1=\tan^2x$.
(d) $\dfrac{d}{dx}\left(2^x\log_2x\right)=2^x\ln2\cdot\log_2x+2^x\cdot\dfrac{1}{x\ln2}$. At $x=1$, $\log_21=0$, so the value is $\dfrac{2}{\ln2}\approx2.885$.

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$.

📐 Theorem 7.21 — The chain rule

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}$.

📐 Theorem 7.22 — Inverse functions and the inverse trigonometric functions

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$

✏️ Example 3 — The chain rule at work
Differentiate (a) $\sin^3(2x+1)$; (b) $e^{-x^2}\cos3x$; (c) $\ln\!\left(x+\sqrt{x^2+1}\right)$; (d) $\tan^{-1}\!\left(e^{2x}\right)$, and evaluate (d) at $x=0$.
(a) Three layers — cube, sine, linear: $3\sin^2(2x+1)\cdot\cos(2x+1)\cdot2=6\sin^2(2x+1)\cos(2x+1)$.
(b) Product rule with two chain rules: $e^{-x^2}(-2x)\cos3x+e^{-x^2}(-3\sin3x)=-e^{-x^2}\left(2x\cos3x+3\sin3x\right)$.
(c) $\dfrac{1}{x+\sqrt{x^2+1}}\left(1+\dfrac{x}{\sqrt{x^2+1}}\right)=\dfrac{1}{x+\sqrt{x^2+1}}\cdot\dfrac{\sqrt{x^2+1}+x}{\sqrt{x^2+1}}=\dfrac{1}{\sqrt{x^2+1}}$.
(d) $\dfrac{1}{1+(e^{2x})^2}\cdot2e^{2x}=\dfrac{2e^{2x}}{1+e^{4x}}$; at $x=0$ this is $\dfrac22=1$.
Check In (c) the answer is positive for every $x$, so $\ln\!\left(x+\sqrt{x^2+1}\right)$ is always increasing — consistent with $x+\sqrt{x^2+1}$ increasing from $0^+$ to $\infty$.
🧭 Problem-solving strategy — simplify inverse-trigonometric composites by substitution
  1. 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$).
  2. 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$.
  3. Differentiate the simplified expression. The answer usually changes sign or form between intervals — JEE options are built on exactly that.
✏️ Example 4 — Inverse-trigonometric derivatives by substitution
(a) Let $y=\sin^{-1}\!\left(\dfrac{2x}{1+x^2}\right)$. Find $\dfrac{dy}{dx}$ for $|x|\lt1$ and for $x\gt1$, and its value at $x=\tfrac12$. (b) Show that $\tan^{-1}\!\left(\dfrac{\sqrt{1+x^2}-1}{x}\right)=\tfrac12\tan^{-1}x$ for $x\ne0$, and hence find its derivative at $x=1$.
Find $\dfrac{dy}{dx}$ for part (a) at $x=\tfrac12$ before you open the solution:
(a) $|x|\lt1$ Put $x=\tan\theta$, $\theta\in\left(-\tfrac\pi4,\tfrac\pi4\right)$. Then $\dfrac{2x}{1+x^2}=\dfrac{2\tan\theta}{\sec^2\theta}=\sin2\theta$ with $2\theta\in\left(-\tfrac\pi2,\tfrac\pi2\right)$, so $y=2\theta=2\tan^{-1}x$ and $\dfrac{dy}{dx}=\dfrac{2}{1+x^2}$. At $x=\tfrac12$: $\dfrac{2}{5/4}=\dfrac85=1.6$.
(a) $x\gt1$ Now $\theta\in\left(\tfrac\pi4,\tfrac\pi2\right)$ and $2\theta\in\left(\tfrac\pi2,\pi\right)$, outside the principal branch. Since $\sin2\theta=\sin(\pi-2\theta)$ with $\pi-2\theta\in\left(0,\tfrac\pi2\right)$: $y=\pi-2\theta=\pi-2\tan^{-1}x$, so $\dfrac{dy}{dx}=-\dfrac{2}{1+x^2}$.
(b) Put $x=\tan\theta$, $\theta\in\left(-\tfrac\pi2,\tfrac\pi2\right)$, $\theta\ne0$; then $\sqrt{1+x^2}=\sec\theta$ ($\sec\theta\gt0$ here) and $\dfrac{\sec\theta-1}{\tan\theta}=\dfrac{1-\cos\theta}{\sin\theta}=\dfrac{2\sin^2\frac\theta2}{2\sin\frac\theta2\cos\frac\theta2}=\tan\dfrac\theta2$. As $\tfrac\theta2\in\left(-\tfrac\pi4,\tfrac\pi4\right)$, the expression equals $\tfrac\theta2=\tfrac12\tan^{-1}x$; its derivative is $\dfrac{1}{2(1+x^2)}$, which is $\tfrac14$ at $x=1$.
Check At $x=1$ in (a), $y=\sin^{-1}1=\tfrac\pi2$ is the largest possible value, and the derivative jumps from $+1$ (left) to $-1$ (right): $y$ is not differentiable at $x=1$. The two formulas agree with this.
⏱ Shortcut Differentiating $\sin^{-1}\!\left(\frac{2x}{1+x^2}\right)$ directly takes half a page and still needs a careful square root $\sqrt{(1-x^2)^2}=|1-x^2|$ at the end — the substitution gives the answer and its sign in two lines.

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?

Choose $h=\sin(x^2)$ and set $x_0=1.5$. The readouts show $u_0=2.25$, $g'(1.5)=3$ and $f'(u_0)=\cos2.25\approx-0.6282$, so the product is $3\times(-0.6282)\approx-1.8845$ — exactly the numerical slope of $h$. The inner function stretches a small step $\Delta x$ by $3$, but the outer function $\sin u$ is falling at $u=2.25$ (between $\tfrac\pi2$ and $\pi$), and it multiplies by a negative number. The composite's slope is a product, so either factor can flip its sign.
Interactive 1 — Chain-Rule Lab: Rates Multiply

Choose a composite $h(x)=f(g(x))$. The left panel is the inner function $u=g(x)$, the right panel is the composite. Both tangents are drawn at $x_0$, with a small step $\Delta x$: the inner function turns it into $\Delta u\approx g'(x_0)\,\Delta x$ (green), and the outer function turns that into $\Delta y\approx f'(u_0)\,\Delta u$. The readouts compare the chain-rule product $f'(u_0)\,g'(x_0)$ with the slope of $h$ measured numerically. Play sweeps $x_0$; dragging the slider stops it.

1.5
$u_0=g(x_0)$—
$g'(x_0)$—
$f'(u_0)$—
$f'(u_0)\,g'(x_0)$ · numerical $h'(x_0)$—

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.

🧭 Problem-solving strategy — logarithmic differentiation
  1. 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$.
  2. Differentiate both sides with respect to $x$; the left side gives $\dfrac{1}{y}\dfrac{dy}{dx}$ by the chain rule.
  3. 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$).
  4. A sum such as $x^x+(\sin x)^x$ cannot be logged in one go: differentiate each term separately.
✏️ Example 5 — Logarithmic differentiation
(a) Differentiate $y=x^x$ ($x\gt0$) and find $y'(1)$. (b) Find $\dfrac{dy}{dx}$ at $x=e$ for $y=x^{\ln x}$. (c) Find $y'(0)$ for $y=\dfrac{(x+1)^2(x+2)^3}{(x+3)^4}$.
Find the value in (b) before you open the solution:
(a) $\ln y=x\ln x$, so $\dfrac{y'}{y}=\ln x+1$ and $y'=x^x(1+\ln x)$. At $x=1$: $1\cdot(1+0)=1$.
(b) $\ln y=(\ln x)^2$, so $\dfrac{y'}{y}=\dfrac{2\ln x}{x}$ and $y'=\dfrac{2x^{\ln x}\ln x}{x}$. At $x=e$: $y=e^1=e$, so $y'=\dfrac{2e\cdot1}{e}=2$.
(c) $\ln|y|=2\ln|x+1|+3\ln|x+2|-4\ln|x+3|$, so $\dfrac{y'}{y}=\dfrac{2}{x+1}+\dfrac{3}{x+2}-\dfrac{4}{x+3}$. At $x=0$: $y=\dfrac{1\cdot8}{81}$ and $\dfrac{y'}{y}=2+\dfrac32-\dfrac43=\dfrac{13}{6}$, so $y'(0)=\dfrac{8}{81}\cdot\dfrac{13}{6}=\dfrac{52}{243}\approx0.214$.
Check (a) by the formula $u^v\left(v'\ln u+\frac{vu'}{u}\right)$ with $u=v=x$: $x^x\left(\ln x+\frac{x}{x}\right)$ ✓. Note the two wrong "rules" $x\cdot x^{x-1}$ (power rule) and $x^x\ln x$ (exponential rule): the true derivative is their sum.

$\dfrac{d}{dx}\Big[\sin^{-1}\!\big(\sqrt x\,\big)\Big]$ for $0\lt x\lt1$ is

Implicit Functions and Second-Order Derivatives

📘 Definition 7.13 — Implicitly defined function

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.

📘 Definition 7.14 — Second-order derivative

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''$.

✏️ Example 6 — Implicit differentiation, first and second derivatives
The point $(1,2)$ lies on the curve $x^2+xy+y^2=7$. Find $\dfrac{dy}{dx}$ and $\dfrac{d^2y}{dx^2}$ there, and the points of the curve with a horizontal tangent.
First $2x+y+xy'+2yy'=0$, so $y'=-\dfrac{2x+y}{x+2y}$. At $(1,2)$ (check: $1+2+4=7$ ✓): $y'=-\dfrac45$.
Second Differentiate $2x+y+xy'+2yy'=0$ again: $2+y'+y'+xy''+2(y')^2+2yy''=0$, so $$y''=-\frac{2+2y'+2(y')^2}{x+2y}.$$
Evaluate At $(1,2)$ with $y'=-\tfrac45$: numerator $2-\tfrac85+\tfrac{32}{25}=\tfrac{42}{25}$, denominator $5$, so $y''=-\dfrac{42}{125}=-0.336$.
Horizontal tangents $y'=0$ where $2x+y=0$. Substituting $y=-2x$: $x^2-2x^2+4x^2=3x^2=7$, so $x=\pm\sqrt{7/3}$: the points $\left(\sqrt{7/3},-2\sqrt{7/3}\right)\approx(1.528,-3.055)$ and $\left(-\sqrt{7/3},2\sqrt{7/3}\right)$.
⏱ Shortcut Substituting $y'$ into the $y''$ formula and simplifying with the curve's equation gives $y''=-\dfrac{42}{(x+2y)^3}$ on this curve; at $(1,2)$, $-\dfrac{42}{125}$ ✓.

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?

Choose $x^2+xy+y^2=7$. The green markers — and the readout $y'=0$ as the point passes them — are at $(1.5275,-3.0551)$ and $(-1.5275,3.0551)$, both on $y=-2x$, because $y'=-\dfrac{2x+y}{x+2y}$ vanishes exactly when its numerator $2x+y$ does. On $x=-2y$ the denominator vanishes: those are the purple vertical-tangent points. At $x=0$ (the point $(0,\sqrt7)$) the slope is $-\tfrac12$, not $0$.
Interactive 2 — Implicit-Curve Slope Lab

Choose a curve $F(x,y)=0$. A point travels round it, and the red tangent is drawn with the slope given by implicit differentiation — no square roots, no solving for $y$. The readouts compare that slope with the slope of a tiny chord measured on the curve itself. Green markers are where the numerator of $y'$ vanishes (horizontal tangent); purple markers are where its denominator vanishes (vertical tangent, $y'$ undefined). Play moves the point; the slider places it by hand.

point $(x,y)$—
$y'$ from the formula—
slope of a tiny chord—
tangent—
✏️ Example 7 — Hard example: a second-order relation
Let $y=e^{m\sin^{-1}x}$ for $-1\lt x\lt1$, where $m\ne0$ is a constant. Prove that $(1-x^2)\,y''-x\,y'-m^2y=0$, and find $y''(0)$ when $m=2$.
Find $y''(0)$ for $m=2$:
First derivative $y'=e^{m\sin^{-1}x}\cdot\dfrac{m}{\sqrt{1-x^2}}=\dfrac{my}{\sqrt{1-x^2}}$, so $\sqrt{1-x^2}\;y'=my$.
Clear the root Squaring, $(1-x^2)(y')^2=m^2y^2$. (Differentiating the square-root form directly also works, but the squared form avoids a quotient.)
Differentiate again $-2x(y')^2+(1-x^2)\cdot2y'y''=2m^2yy'$. Here $y'=\dfrac{my}{\sqrt{1-x^2}}\ne0$ (as $y\gt0$, $m\ne0$), so divide by $2y'$: $(1-x^2)y''-xy'=m^2y$, which is the result.
At $x=0$ $y(0)=1$, $y'(0)=m$, and the relation gives $y''(0)=m^2y(0)=m^2$; for $m=2$, $y''(0)=4$.
⏱ Shortcut The pattern — write $y'$ in terms of $y$, clear roots and denominators by squaring or cross-multiplying, then differentiate once more — proves every "show that $(1-x^2)y''-xy'=\dots$" relation in a few lines. The value $y''(0)$ comes straight from the relation; you never need the full second derivative.
🚀 Beyond JEE Main (JEE Advanced)

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}$.

⚠️ JEE Main traps

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.

I
Rules and standard derivatives. Differentiate, and find the value asked for.
  • 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'=12x^3-3x^{1/2}-\dfrac{5}{x^2}$ ($x\gt0$).
2 Expand: $y=2x^3-5x^2-3x$, $y'=6x^2-10x-3$, $y'(2)=24-20-3=1$.
3 $y'=\dfrac{(x-1)-(x+1)}{(x-1)^2}=-\dfrac{2}{(x-1)^2}$, $y'(3)=-\dfrac24=-0.5$.
4 $y'=e^x(x^2+2x)$, $y'(1)=3e\approx8.155$.
5 $y'=\cos^2x-\sin^2x=\cos2x$ (or differentiate $\tfrac12\sin2x$ by the chain rule).
6 $y=\sec x+\tan x$, $y'=\sec x\tan x+\sec^2x=\dfrac{\sin x+1}{\cos^2x}=\dfrac{1+\sin x}{1-\sin^2x}=\dfrac{1}{1-\sin x}$.
7 $y'=\ln x+x\cdot\dfrac1x-1=\ln x$ ($x\gt0$).
8 $y'=\dfrac{e^x(1+e^x)-e^x\cdot e^x}{(1+e^x)^2}=\dfrac{e^x}{(1+e^x)^2}$, $y'(0)=\dfrac14$.
9 $y'=10^x\ln10\cdot\log_{10}x+\dfrac{10^x}{x\ln10}$; at $x=1$: $0+\dfrac{10}{\ln10}\approx4.343$.
II
The chain rule and inverse trigonometric functions.
  • 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'=5(3x^2-1)^4\cdot6x=30x(3x^2-1)^4$; $y'(1)=30\cdot2^4=480$.
2 $y'=\dfrac{2x}{2\sqrt{x^2+9}}=\dfrac{x}{\sqrt{x^2+9}}$; $y'(4)=\dfrac45=0.8$.
3 $y'=2\sin3x\cdot\cos3x\cdot3=3\sin6x$.
4 $y'=\dfrac{-\sin x}{\cos x}=-\tan x$.
5 $y'=\dfrac{\sec x\tan x+\sec^2x}{\sec x+\tan x}=\dfrac{\sec x(\tan x+\sec x)}{\sec x+\tan x}=\sec x$.
6 $y'=\dfrac{2x}{1+x^4}$; $y'(2)=\dfrac{4}{17}\approx0.2353$.
7 $y'=\dfrac{1}{\sqrt{1-x}}\cdot\dfrac{1}{2\sqrt x}=\dfrac{1}{2\sqrt{x(1-x)}}$; at $x=\tfrac14$: $\dfrac{1}{2\sqrt{3/16}}=\dfrac{2}{\sqrt3}\approx1.155$.
8 $x=\tan\theta$: $\dfrac{1-x^2}{1+x^2}=\cos2\theta$. For $x\gt0$, $2\theta\in(0,\pi)$, the principal branch of $\cos^{-1}$, so $y=2\tan^{-1}x$; for $x\lt0$, $2\theta\in(-\pi,0)$ and $y=-2\theta=-2\tan^{-1}x$. So $y'=\dfrac{2}{1+x^2}$ for $x\gt0$ and $-\dfrac{2}{1+x^2}$ for $x\lt0$; $y'(\sqrt3)=\dfrac24=0.5$.
9 $x=\sin\theta$ with $\theta\in\left(-\tfrac\pi6,\tfrac\pi6\right)$: $3x-4x^3=\sin3\theta$ and $3\theta\in\left(-\tfrac\pi2,\tfrac\pi2\right)$, so $y=3\sin^{-1}x$, $y'=\dfrac{3}{\sqrt{1-x^2}}$, $y'(0)=3$.
III
Logarithmic and implicit differentiation.
  • 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 $\ln y=\dfrac{\ln x}{x}$, $\dfrac{y'}{y}=\dfrac{1-\ln x}{x^2}$, so $y'=x^{1/x}\cdot\dfrac{1-\ln x}{x^2}$. Since $x^{1/x}\gt0$, $y'=0\iff\ln x=1\iff x=e$.
2 $\ln y=x\ln\sin x$, $\dfrac{y'}{y}=\ln\sin x+x\cot x$. At $\tfrac\pi2$: $y=1$ and $\ln1+\tfrac\pi2\cdot0=0$, so $y'=0$.
3 Term by term: $x^x(1+\ln x)+2^x\ln2$; at $x=1$: $1+2\ln2\approx2.386$.
4 $\dfrac{y'}{y}=\dfrac1{x-1}+\dfrac1{x-2}+\dfrac1{x-3}-\dfrac1{x+1}$; at $0$: $-1-\tfrac12-\tfrac13-1=-\tfrac{17}{6}$, and $y(0)=-6$, so $y'(0)=17$.
5 $3x^2+3y^2y'=0$, $y'=-\dfrac{x^2}{y^2}=-\dfrac14$.
6 $y+xy'+2yy'=0$, $y'=-\dfrac{y}{x+2y}=-\dfrac25$.
7 $e^yy'+y+xy'=0$, $y'=-\dfrac{y}{e^y+x}=-\dfrac1e\approx-0.3679$.
8 The expression under the first root is $x+y$, so $y^2=x+y$. Differentiate: $2yy'=1+y'$, so $y'(2y-1)=1$ and $y'=\dfrac{1}{2y-1}$ (note $y\gt1$, so $2y-1\ne0$).
IV
Second-order derivatives.
  • 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.
1 $y'=3x^2-8x$, $y''=6x-8$, $y''(2)=4$.
2 $y'=(1-x)e^{-x}$, $y''=-e^{-x}-(1-x)e^{-x}=(x-2)e^{-x}$; $y''(0)=-2$.
3 $y'=\dfrac{2x}{1+x^2}$, $y''=\dfrac{2(1+x^2)-2x\cdot2x}{(1+x^2)^2}=\dfrac{2(1-x^2)}{(1+x^2)^2}$; $y''(0)=2$.
4 $y'=-3A\sin3x+3B\cos3x$, $y''=-9A\cos3x-9B\sin3x=-9y$.
5 $(1+x^2)y'=1$; differentiate: $2xy'+(1+x^2)y''=0$.
6 $y'=-\dfrac xy$; $y''=-\dfrac{y-xy'}{y^2}=-\dfrac{y+x^2/y}{y^2}=-\dfrac{x^2+y^2}{y^3}=-\dfrac{25}{y^3}$. At $(3,4)$: $-\dfrac{25}{64}\approx-0.3906$.
7 $y'=\dfrac{\cos(\ln x)}{x}$, so $xy'=\cos(\ln x)$. Differentiate: $y'+xy''=-\dfrac{\sin(\ln x)}{x}$; multiply by $x$: $x^2y''+xy'=-\sin(\ln x)=-y$.
8 $v=s'(t)=3t^2-12t+9$, $a=s''(t)=6t-12$. At $t=4$: $v=48-48+9=9\ \text{m/s}$, $a=24-12=12\ \text{m/s}^2$. $a=0$ at $t=2$ s (where the velocity is at its lowest, $-3\ \text{m/s}$: the lift is moving back down).
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

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$

Quotient rule $f'(x)=\dfrac{\cos x(1+\cos x)+\sin^2x}{(1+\cos x)^2}=\dfrac{1+\cos x}{(1+\cos x)^2}=\dfrac{1}{1+\cos x}$; at $\tfrac\pi2$ this is $1$.
Answer (B).
⏱ Shortcut Half-angle formulas: $\dfrac{\sin x}{1+\cos x}=\dfrac{2\sin\frac x2\cos\frac x2}{2\cos^2\frac x2}=\tan\dfrac x2$, so $f'=\tfrac12\sec^2\tfrac x2=\tfrac12\cdot2=1$ at $\tfrac\pi2$.

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.

Logarithmic differentiation $\dfrac{f'}{f}=\dfrac{1}{1+x}+\dfrac{2x}{1+x^2}+\dfrac{4x^3}{1+x^4}+\dfrac{8x^7}{1+x^8}$, which is $\tfrac12+1+2+4=\tfrac{15}{2}$ at $x=1$.
Value $f(1)=2^4=16$, so $f'(1)=16\cdot\tfrac{15}{2}=120$.
Answer $120$.
⏱ Shortcut Multiplying out, $f(x)=1+x+x^2+\dots+x^{15}$ (each power of $x$ from $0$ to $15$ appears once — binary expansion). So $f'(1)=1+2+\dots+15=120$.

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)$

Differentiate Write $w=a\cos x+b\sin x$, so $w''=-w$. Then $y=e^{2x}w$, $y'=e^{2x}(2w+w')$, $y''=e^{2x}(4w+4w'+w'')=e^{2x}(3w+4w')$.
Match $y''+py'+qy=e^{2x}\big[(3+2p+q)w+(4+p)w'\big]=0$ for all $a,b$ needs $4+p=0$ and $3+2p+q=0$: $p=-4$, $q=5$.
Answer (B).
⏱ Shortcut Check an option with $a=1$, $b=0$ at $x=0$: $y(0)=1$, $y'(0)=2$, $y''(0)=3$. Then $3+2p+q=0$ — only (B) gives $3-8+5=0$.

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.

First $2x-y-xy'+2yy'=0$, so $y'=\dfrac{y-2x}{2y-x}$; at $(1,1)$: $y'=\dfrac{-1}{1}=-1$.
Second Differentiate $2x-y-xy'+2yy'=0$: $2-2y'-xy''+2(y')^2+2yy''=0$, so $y''(2y-x)=-2+2y'-2(y')^2$. At $(1,1)$ with $y'=-1$: $y''\cdot1=-2-2-2=-6$.
Answer $y'(1)\,y''(1)=(-1)(-6)=6$.
⏱ Shortcut On $x^2-xy+y^2=c$ one finds $y''=-\dfrac{6c}{(2y-x)^3}$; here $c=1$ and $2y-x=1$, so $y''=-6$ at once.

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)}$

Find the pre-image $f(2)=2^2=4$, so $g(4)=2$.
Theorem 7.22 $g'(4)=\dfrac{1}{f'(2)}$, and $f'(x)=x^x(1+\ln x)$ gives $f'(2)=4(1+\ln2)$.
Answer (A) $\dfrac{1}{4(1+\ln2)}$.
⏱ Shortcut Option (B) is $f'(2)$ itself — the inverse function's slope is its reciprocal. Never try to find a formula for $g$.

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.

First derivative By Example 3(c), $\dfrac{d}{dx}\left(x+\sqrt{x^2+1}\right)=\dfrac{x+\sqrt{x^2+1}}{\sqrt{x^2+1}}$, so $y'=\dfrac{3y}{\sqrt{1+x^2}}$, i.e. $\sqrt{1+x^2}\,y'=3y$.
Square and differentiate $(1+x^2)(y')^2=9y^2$; differentiating, $2x(y')^2+2(1+x^2)y'y''=18yy'$, and dividing by $2y'\ne0$: $(1+x^2)y''+xy'=9y$. So $k=9$.
At $x=0$ $y(0)=1$, $y'(0)=3$, and $y''(0)=9\cdot1-0=9$.
Answer $k+y''(0)=9+9=18$.
⏱ Shortcut Same pattern as Example 7: $(x+\sqrt{x^2+1})^m$ always gives $k=m^2$ and $y''(0)=m^2$.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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?

Instructor note: $f'(1)=e(\sin1+\cos1)\approx3.7560492271$. In double precision the forward-difference error falls like $h$ (slope $1$ on the log–log plot) down to about $2\times10^{-8}$ near $h=10^{-8}\approx\sqrt{\varepsilon}$, then grows again; the central difference falls like $h^2$ (slope $2$) to about $3\times10^{-11}$ near $h=10^{-5}\approx\varepsilon^{1/3}$. Below $h\approx10^{-10}$ both errors exceed $10^{-7}$. Students who use single-precision tools will see the minimum at much larger $h$.

🧪 Self-check quiz

0/5 correct

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