How to use these solutions#
These are full worked solutions to the twelve questions in Continuity and Differentiability: Mixed Practice . Attempt each question on your own first. For continuity questions, compare the left limit, the right limit and the value; for derivatives, name the rule (chain rule, logarithmic differentiation, parametric form) before you use it. Then read the solution and find the first step where your working differs.
Question 1: Choosing k k k for continuity#
The problem#
Find k k k so that f ( x ) = { k x 2 , x ≤ 2 3 , x > 2 f(x) = \begin{cases} kx^2, & x \le 2 \\ 3, & x > 2 \end{cases} f ( x ) = { k x 2 , 3 , x ≤ 2 x > 2 is continuous at 2 2 2 .
Understanding the problem#
The function is defined by one rule up to x = 2 x = 2 x = 2 and another after it. Continuity at 2 2 2 means the graph has no jump there: the left limit, the right limit and f ( 2 ) f(2) f ( 2 ) must all be equal.
The idea#
Use the definition: f f f is continuous at c c c when lim x → c − f ( x ) = lim x → c + f ( x ) = f ( c ) \displaystyle \lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c) x → c − lim f ( x ) = x → c + lim f ( x ) = f ( c ) . Write each in terms of k k k and solve.
Step-by-step solution#
Step 1. Value at 2 2 2 . Since 2 ≤ 2 2 \le 2 2 ≤ 2 , the first rule applies.
f ( 2 ) = k ( 2 ) 2 = 4 k f(2) = k(2)^2 = 4k f ( 2 ) = k ( 2 ) 2 = 4 k
Step 2. Left limit (values of x x x just below 2 2 2 use k x 2 kx^2 k x 2 ).
lim x → 2 − k x 2 = 4 k \displaystyle \lim_{x \to 2^-} kx^2 = 4k x → 2 − lim k x 2 = 4 k
Step 3. Right limit (values just above 2 2 2 use the constant 3 3 3 ).
lim x → 2 + 3 = 3 \displaystyle \lim_{x \to 2^+} 3 = 3 x → 2 + lim 3 = 3
Step 4. For continuity all three must match.
4 k = 3 ⟹ k = 3 4 \displaystyle 4k = 3 \quad\Longrightarrow\quad k = \frac{3}{4} 4 k = 3 ⟹ k = 4 3
Checking the answer#
With k = 3 4 \displaystyle k = \frac{3}{4} k = 4 3 : f ( 2 ) = 3 4 × 4 = 3 \displaystyle f(2) = \frac{3}{4} \times 4 = 3 f ( 2 ) = 4 3 × 4 = 3 , equal to the right-hand value 3 3 3 . ✓
Answer#
k = 3 4 \displaystyle k = \frac{3}{4} k = 4 3 .
Question 2: Continuity of ∣ x ∣ − ∣ x + 1 ∣ \lvert x \rvert - \lvert x + 1 \rvert ∣ x ∣ − ∣ x + 1 ∣ #
The problem#
Discuss the continuity of f ( x ) = ∣ x ∣ − ∣ x + 1 ∣ f(x) = \lvert x \rvert - \lvert x + 1 \rvert f ( x ) = ∣ x ∣ − ∣ x + 1 ∣ .
Understanding the problem#
"Discuss continuity" means find where f f f is continuous and where (if anywhere) it is not. The corners of the modulus graphs at x = 0 x = 0 x = 0 and x = − 1 x = -1 x = − 1 are the places to think about.
The idea#
The modulus function ∣ x ∣ \lvert x \rvert ∣ x ∣ is continuous everywhere, and so is ∣ x + 1 ∣ \lvert x + 1 \rvert ∣ x + 1 ∣ (a modulus of a polynomial). The difference of two continuous functions is continuous.
Step-by-step solution#
Step 1. g ( x ) = ∣ x ∣ g(x) = \lvert x \rvert g ( x ) = ∣ x ∣ is continuous at every real number.
Step 2. h ( x ) = ∣ x + 1 ∣ h(x) = \lvert x + 1 \rvert h ( x ) = ∣ x + 1 ∣ is the composite of the polynomial x + 1 x + 1 x + 1 and the modulus function, both continuous, so it is continuous everywhere.
Step 3. f = g − h f = g - h f = g − h is a difference of continuous functions, so it is continuous at every real x x x .
Step 4. A direct check at the corner x = − 1 x = -1 x = − 1 : for x < − 1 x < -1 x < − 1 , f ( x ) = − x + ( x + 1 ) = 1 f(x) = -x + (x + 1) = 1 f ( x ) = − x + ( x + 1 ) = 1 ; for − 1 ≤ x < 0 -1 \le x < 0 − 1 ≤ x < 0 , f ( x ) = − x − ( x + 1 ) = − 2 x − 1 f(x) = -x - (x + 1) = -2x - 1 f ( x ) = − x − ( x + 1 ) = − 2 x − 1 , which gives 1 1 1 at x = − 1 x = -1 x = − 1 . Both sides agree, so there is no jump. The same happens at x = 0 x = 0 x = 0 , where both pieces give − 1 -1 − 1 .
Checking the answer#
Continuity says nothing about smoothness: the graph has corners at − 1 -1 − 1 and 0 0 0 , but no breaks.
Answer#
f f f is continuous at every real number.
Question 3: Points of discontinuity of a rational function#
The problem#
Find the points of discontinuity of f ( x ) = x 2 + 1 x 2 − 5 x + 6 \displaystyle f(x) = \frac{x^2 + 1}{x^2 - 5x + 6} f ( x ) = x 2 − 5 x + 6 x 2 + 1 .
Understanding the problem#
A rational function is continuous wherever it is defined. It is undefined where the denominator is zero.
The idea#
Factorise the denominator and find its zeros.
Step-by-step solution#
Step 1. Factorise.
x 2 − 5 x + 6 = ( x − 2 ) ( x − 3 ) x^2 - 5x + 6 = (x - 2)(x - 3) x 2 − 5 x + 6 = ( x − 2 ) ( x − 3 )
Step 2. The denominator is zero at x = 2 x = 2 x = 2 and x = 3 x = 3 x = 3 , so f f f is not defined there.
Step 3. The numerator x 2 + 1 x^2 + 1 x 2 + 1 is never zero, so nothing cancels; f f f blows up at both points. Everywhere else f f f is a quotient of continuous polynomials with non-zero denominator, hence continuous.
Checking the answer#
At x = 2.01 x = 2.01 x = 2.01 the denominator is about − 0.0099 -0.0099 − 0.0099 and f ≈ − 509 f \approx -509 f ≈ − 509 ; at x = 1.99 x = 1.99 x = 1.99 , f ≈ + 491 f \approx +491 f ≈ + 491 . A huge jump, as expected.
Answer#
f f f is discontinuous only at x = 2 x = 2 x = 2 and x = 3 x = 3 x = 3 .
Question 4: A chain of three functions#
The problem#
Differentiate sin ( cos ( x 2 ) ) \sin(\cos(x^2)) sin ( cos ( x 2 )) .
Understanding the problem#
This is a composite of three functions: square, then cosine, then sine. You need d d x \displaystyle \frac{d}{dx} d x d of the whole.
The idea#
Use the chain rule from the outside in: differentiate the outer function, keep its inside unchanged, then multiply by the derivative of the inside, and repeat.
Step-by-step solution#
Step 1. Outer function sin ( ⋅ ) \sin(\,\cdot\,) sin ( ⋅ ) : its derivative is cos ( ⋅ ) \cos(\,\cdot\,) cos ( ⋅ ) .
d d x sin ( cos x 2 ) = cos ( cos x 2 ) ⋅ d d x cos ( x 2 ) \displaystyle \frac{d}{dx}\sin(\cos x^2) = \cos(\cos x^2) \cdot \frac{d}{dx}\cos(x^2) d x d sin ( cos x 2 ) = cos ( cos x 2 ) ⋅ d x d cos ( x 2 )
Step 2. Middle function cos ( ⋅ ) \cos(\,\cdot\,) cos ( ⋅ ) : its derivative is − sin ( ⋅ ) -\sin(\,\cdot\,) − sin ( ⋅ ) .
d d x cos ( x 2 ) = − sin ( x 2 ) ⋅ d d x ( x 2 ) = − sin ( x 2 ) ⋅ 2 x \displaystyle \frac{d}{dx}\cos(x^2) = -\sin(x^2) \cdot \frac{d}{dx}(x^2) = -\sin(x^2) \cdot 2x d x d cos ( x 2 ) = − sin ( x 2 ) ⋅ d x d ( x 2 ) = − sin ( x 2 ) ⋅ 2 x
Step 3. Multiply.
d d x sin ( cos x 2 ) = − 2 x sin ( x 2 ) cos ( cos x 2 ) \displaystyle \frac{d}{dx}\sin(\cos x^2) = -2x\sin(x^2)\cos(\cos x^2) d x d sin ( cos x 2 ) = − 2 x sin ( x 2 ) cos ( cos x 2 )
Checking the answer#
At x = 0 x = 0 x = 0 the function has a flat point (it depends on x 2 x^2 x 2 , an even function), and our derivative is 0 0 0 at x = 0 x = 0 x = 0 . ✓
Answer#
d d x sin ( cos x 2 ) = − 2 x sin ( x 2 ) cos ( cos ( x 2 ) ) \displaystyle \frac{d}{dx}\sin(\cos x^2) = -2x\sin(x^2)\cos(\cos(x^2)) d x d sin ( cos x 2 ) = − 2 x sin ( x 2 ) cos ( cos ( x 2 )) .
Question 5: An inverse secant by substitution#
The problem#
Differentiate sec − 1 1 2 x 2 − 1 \displaystyle \sec^{-1}\frac{1}{2x^2 - 1} sec − 1 2 x 2 − 1 1 for 0 < x < 1 2 \displaystyle 0 < x < \frac{1}{\sqrt{2}} 0 < x < 2 1 .
Understanding the problem#
Differentiating directly is messy. The expression 2 x 2 − 1 2x^2 - 1 2 x 2 − 1 is the double-angle form 2 cos 2 θ − 1 = cos 2 θ 2\cos^2\theta - 1 = \cos 2\theta 2 cos 2 θ − 1 = cos 2 θ , so a substitution will simplify it. You must also check the range so that sec − 1 ( sec 2 θ ) = 2 θ \sec^{-1}(\sec 2\theta) = 2\theta sec − 1 ( sec 2 θ ) = 2 θ is valid.
The idea#
Put x = cos θ x = \cos\theta x = cos θ . Simplify the function to a multiple of θ \theta θ , then differentiate using θ = cos − 1 x \theta = \cos^{-1}x θ = cos − 1 x .
Step-by-step solution#
Step 1. Substitute x = cos θ x = \cos\theta x = cos θ . Since 0 < x < 1 2 \displaystyle 0 < x < \frac{1}{\sqrt{2}} 0 < x < 2 1 , we have π 4 < θ < π 2 \displaystyle \frac{\pi}{4} < \theta < \frac{\pi}{2} 4 π < θ < 2 π .
1 2 x 2 − 1 = 1 2 cos 2 θ − 1 = 1 cos 2 θ = sec 2 θ \displaystyle \frac{1}{2x^2 - 1} = \frac{1}{2\cos^2\theta - 1} = \frac{1}{\cos 2\theta} = \sec 2\theta 2 x 2 − 1 1 = 2 cos 2 θ − 1 1 = cos 2 θ 1 = sec 2 θ
Step 2. Check the range. π 2 < 2 θ < π \displaystyle \frac{\pi}{2} < 2\theta < \pi 2 π < 2 θ < π , which lies inside the principal range [ 0 , π ] [0, \pi] [ 0 , π ] , ≠ π 2 \displaystyle \ne \frac{\pi}{2} = 2 π , of sec − 1 \sec^{-1} sec − 1 . So
y = sec − 1 ( sec 2 θ ) = 2 θ = 2 cos − 1 x y = \sec^{-1}(\sec 2\theta) = 2\theta = 2\cos^{-1}x y = sec − 1 ( sec 2 θ ) = 2 θ = 2 cos − 1 x
Step 3. Differentiate, using d d x cos − 1 x = − 1 1 − x 2 \displaystyle \frac{d}{dx}\cos^{-1}x = -\frac{1}{\sqrt{1 - x^2}} d x d cos − 1 x = − 1 − x 2 1 .
d y d x = 2 × ( − 1 1 − x 2 ) = − 2 1 − x 2 \displaystyle \frac{dy}{dx} = 2 \times \left(-\frac{1}{\sqrt{1 - x^2}}\right) = -\frac{2}{\sqrt{1 - x^2}} d x d y = 2 × ( − 1 − x 2 1 ) = − 1 − x 2 2
Checking the answer#
At x = 0.5 x = 0.5 x = 0.5 : 1 2 ( 0.25 ) − 1 = − 2 \displaystyle \frac{1}{2(0.25) - 1} = -2 2 ( 0.25 ) − 1 1 = − 2 , and a numerical derivative of sec − 1 \sec^{-1} sec − 1 of the expression near 0.5 0.5 0.5 gives about − 2.309 -2.309 − 2.309 , while − 2 0.75 ≈ − 2.309 \displaystyle -\frac{2}{\sqrt{0.75}} \approx -2.309 − 0.75 2 ≈ − 2.309 . ✓
Answer#
d y d x = − 2 1 − x 2 \displaystyle \frac{dy}{dx} = -\frac{2}{\sqrt{1 - x^2}} d x d y = − 1 − x 2 2 .
Common mistake to avoid#
Writing sec − 1 ( sec 2 θ ) = 2 θ \sec^{-1}(\sec 2\theta) = 2\theta sec − 1 ( sec 2 θ ) = 2 θ without checking that 2 θ 2\theta 2 θ lies in the principal range. Here it does; on another interval of x x x the answer would change.
Question 6: Implicit function y x = x y y^x = x^y y x = x y #
The problem#
Find d y d x \displaystyle \frac{dy}{dx} d x d y if y x = x y y^x = x^y y x = x y .
Understanding the problem#
Both sides have a variable in the base and in the power, and y y y cannot easily be made the subject. You need d y d x \displaystyle \frac{dy}{dx} d x d y .
The idea#
Take logarithms to bring the powers down, then differentiate both sides implicitly with respect to x x x , using the product rule and remembering that y y y is a function of x x x .
Step-by-step solution#
Step 1. Take log \log log of both sides.
x log y = y log x x\log y = y\log x x log y = y log x
Step 2. Differentiate each side with the product rule.
log y + x ⋅ 1 y d y d x = d y d x log x + y ⋅ 1 x \displaystyle \log y + x \cdot \frac{1}{y}\frac{dy}{dx} = \frac{dy}{dx}\log x + y \cdot \frac{1}{x} log y + x ⋅ y 1 d x d y = d x d y log x + y ⋅ x 1
Step 3. Collect the d y d x \displaystyle \frac{dy}{dx} d x d y terms on the left.
d y d x ( x y − log x ) = y x − log y \displaystyle \frac{dy}{dx}\left(\frac{x}{y} - \log x\right) = \frac{y}{x} - \log y d x d y ( y x − log x ) = x y − log y
Step 4. Divide.
d y d x = y x − log y x y − log x \displaystyle \frac{dy}{dx} = \frac{\dfrac{y}{x} - \log y}{\dfrac{x}{y} - \log x} d x d y = y x − log x x y − log y
Checking the answer#
A symbolic check (implicit differentiation of x log y − y log x = 0 x\log y - y\log x = 0 x log y − y log x = 0 ) gives the same expression. Also, on the line y = x y = x y = x (which satisfies the equation), the formula gives 1 − log x 1 − log x = 1 \displaystyle \frac{1 - \log x}{1 - \log x} = 1 1 − log x 1 − log x = 1 , the slope of y = x y = x y = x . ✓
Answer#
d y d x = y x − log y x y − log x \displaystyle \frac{dy}{dx} = \frac{\frac{y}{x} - \log y}{\frac{x}{y} - \log x} d x d y = y x − log x x y − log y , equivalently y ( y − x log y ) x ( x − y log x ) \displaystyle \frac{y(y - x\log y)}{x(x - y\log x)} x ( x − y log x ) y ( y − x log y ) .
Question 7: A parametric derivative#
The problem#
Find d y d x \displaystyle \frac{dy}{dx} d x d y if x = cos θ + θ sin θ x = \cos\theta + \theta\sin\theta x = cos θ + θ sin θ , y = sin θ − θ cos θ y = \sin\theta - \theta\cos\theta y = sin θ − θ cos θ .
Understanding the problem#
x x x and y y y are each given in terms of a parameter θ \theta θ . You need the slope d y d x \displaystyle \frac{dy}{dx} d x d y .
The idea#
Use the parametric rule d y d x = d y / d θ d x / d θ \displaystyle \frac{dy}{dx} = \frac{dy/d\theta}{dx/d\theta} d x d y = d x / d θ d y / d θ . Each derivative needs the product rule.
Step-by-step solution#
Step 1. Differentiate x x x .
d x d θ = − sin θ + ( sin θ + θ cos θ ) = θ cos θ \displaystyle \frac{dx}{d\theta} = -\sin\theta + (\sin\theta + \theta\cos\theta) = \theta\cos\theta d θ d x = − sin θ + ( sin θ + θ cos θ ) = θ cos θ
Step 2. Differentiate y y y .
d y d θ = cos θ − ( cos θ − θ sin θ ) = θ sin θ \displaystyle \frac{dy}{d\theta} = \cos\theta - (\cos\theta - \theta\sin\theta) = \theta\sin\theta d θ d y = cos θ − ( cos θ − θ sin θ ) = θ sin θ
Step 3. Divide.
d y d x = θ sin θ θ cos θ = tan θ \displaystyle \frac{dy}{dx} = \frac{\theta\sin\theta}{\theta\cos\theta} = \tan\theta d x d y = θ cos θ θ sin θ = tan θ
Checking the answer#
The θ \theta θ cancels only when θ ≠ 0 \theta \ne 0 θ = 0 ; at θ = 0 \theta = 0 θ = 0 both derivatives are 0 0 0 and the rule does not apply there. Elsewhere the result tan θ \tan\theta tan θ is valid.
Answer#
d y d x = tan θ \displaystyle \frac{dy}{dx} = \tan\theta d x d y = tan θ .
Question 8: A variable power ( log x ) cos x (\log x)^{\cos x} ( log x ) c o s x #
The problem#
Differentiate ( log x ) cos x (\log x)^{\cos x} ( log x ) c o s x .
Understanding the problem#
The base and the exponent both depend on x x x , so neither the power rule nor the exponential rule applies directly. (We need log x > 0 \log x > 0 log x > 0 , that is x > 1 x > 1 x > 1 .)
The idea#
Logarithmic differentiation: put y = ( log x ) cos x y = (\log x)^{\cos x} y = ( log x ) c o s x , take log \log log , differentiate, then multiply back by y y y .
Step-by-step solution#
Step 1. Take logarithms.
log y = cos x ⋅ log ( log x ) \log y = \cos x \cdot \log(\log x) log y = cos x ⋅ log ( log x )
Step 2. Differentiate both sides. On the right use the product rule and the chain rule for log ( log x ) \log(\log x) log ( log x ) .
1 y d y d x = − sin x log ( log x ) + cos x ⋅ 1 log x ⋅ 1 x \displaystyle \frac{1}{y}\frac{dy}{dx} = -\sin x\,\log(\log x) + \cos x \cdot \frac{1}{\log x} \cdot \frac{1}{x} y 1 d x d y = − sin x log ( log x ) + cos x ⋅ log x 1 ⋅ x 1
Step 3. Multiply by y y y .
d y d x = ( log x ) cos x ( cos x x log x − sin x log ( log x ) ) \displaystyle \frac{dy}{dx} = (\log x)^{\cos x}\left(\frac{\cos x}{x\log x} - \sin x\,\log(\log x)\right) d x d y = ( log x ) c o s x ( x log x cos x − sin x log ( log x ) )
Checking the answer#
A symbolic check with sympy gives a difference of 0 0 0 from this expression.
Answer#
d d x ( log x ) cos x = ( log x ) cos x ( cos x x log x − sin x log ( log x ) ) \displaystyle \frac{d}{dx}(\log x)^{\cos x} = (\log x)^{\cos x}\left(\frac{\cos x}{x\log x} - \sin x\,\log(\log x)\right) d x d ( log x ) c o s x = ( log x ) c o s x ( x log x cos x − sin x log ( log x ) ) .
Question 9: A second-order relation#
The problem#
If y = 3 cos ( log x ) + 4 sin ( log x ) y = 3\cos(\log x) + 4\sin(\log x) y = 3 cos ( log x ) + 4 sin ( log x ) , show that x 2 y ′ ′ + x y ′ + y = 0 x^2 y'' + x y' + y = 0 x 2 y ′′ + x y ′ + y = 0 .
Understanding the problem#
You must find y ′ y' y ′ and y ′ ′ y'' y ′′ and show that the given combination is zero. Expanding y ′ ′ y'' y ′′ directly is messy; there is a neater route.
The idea#
Find y ′ y' y ′ , multiply by x x x to remove the fraction, and then differentiate x y ′ xy' x y ′ using the product rule. That produces x y ′ ′ + y ′ xy'' + y' x y ′′ + y ′ directly.
Step-by-step solution#
Step 1. Differentiate with the chain rule (d d x log x = 1 x \displaystyle \frac{d}{dx}\log x = \frac{1}{x} d x d log x = x 1 ).
y ′ = − 3 sin ( log x ) ⋅ 1 x + 4 cos ( log x ) ⋅ 1 x \displaystyle y' = -3\sin(\log x) \cdot \frac{1}{x} + 4\cos(\log x) \cdot \frac{1}{x} y ′ = − 3 sin ( log x ) ⋅ x 1 + 4 cos ( log x ) ⋅ x 1
Step 2. Multiply by x x x .
x y ′ = − 3 sin ( log x ) + 4 cos ( log x ) xy' = -3\sin(\log x) + 4\cos(\log x) x y ′ = − 3 sin ( log x ) + 4 cos ( log x )
Step 3. Differentiate both sides. The left side needs the product rule.
x y ′ ′ + y ′ = − 3 cos ( log x ) ⋅ 1 x − 4 sin ( log x ) ⋅ 1 x \displaystyle xy'' + y' = -3\cos(\log x) \cdot \frac{1}{x} - 4\sin(\log x) \cdot \frac{1}{x} x y ′′ + y ′ = − 3 cos ( log x ) ⋅ x 1 − 4 sin ( log x ) ⋅ x 1
Step 4. The right side is − 1 x ( 3 cos ( log x ) + 4 sin ( log x ) ) = − y x \displaystyle -\frac{1}{x}\big(3\cos(\log x) + 4\sin(\log x)\big) = -\frac{y}{x} − x 1 ( 3 cos ( log x ) + 4 sin ( log x ) ) = − x y .
x y ′ ′ + y ′ = − y x \displaystyle xy'' + y' = -\frac{y}{x} x y ′′ + y ′ = − x y
Step 5. Multiply by x x x and rearrange.
x 2 y ′ ′ + x y ′ + y = 0 x^2y'' + xy' + y = 0 x 2 y ′′ + x y ′ + y = 0
Checking the answer#
Substituting y y y into x 2 y ′ ′ + x y ′ + y x^2y'' + xy' + y x 2 y ′′ + x y ′ + y symbolically simplifies to 0 0 0 .
Answer#
x 2 y ′ ′ + x y ′ + y = 0 x^2 y'' + x y' + y = 0 x 2 y ′′ + x y ′ + y = 0 , as required.
Question 10: A trigonometric substitution#
The problem#
If 1 − x 2 + 1 − y 2 = a ( x − y ) \sqrt{1 - x^2} + \sqrt{1 - y^2} = a(x - y) 1 − x 2 + 1 − y 2 = a ( x − y ) , show that d y d x = 1 − y 2 1 − x 2 \displaystyle \frac{dy}{dx} = \sqrt{\frac{1 - y^2}{1 - x^2}} d x d y = 1 − x 2 1 − y 2 . (Put x = sin A x = \sin A x = sin A , y = sin B y = \sin B y = sin B .)
Understanding the problem#
Differentiating the equation as it stands is possible but heavy. The hint suggests a substitution that turns the square roots into cosines. The goal is to show that A − B A - B A − B is a constant.
The idea#
With x = sin A x = \sin A x = sin A , y = sin B y = \sin B y = sin B we get 1 − x 2 = cos A \sqrt{1 - x^2} = \cos A 1 − x 2 = cos A and 1 − y 2 = cos B \sqrt{1 - y^2} = \cos B 1 − y 2 = cos B (taking A , B A, B A , B in [ − π 2 , π 2 ] \displaystyle \left[-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right] [ − 2 π , 2 π ] ). Use the sum-to-product formulas to simplify, then differentiate sin − 1 x − sin − 1 y = constant \sin^{-1}x - \sin^{-1}y = \text{constant} sin − 1 x − sin − 1 y = constant .
Step-by-step solution#
Step 1. Substitute.
cos A + cos B = a ( sin A − sin B ) \cos A + \cos B = a(\sin A - \sin B) cos A + cos B = a ( sin A − sin B )
Step 2. Use sum-to-product formulas.
2 cos A + B 2 cos A − B 2 = a ⋅ 2 cos A + B 2 sin A − B 2 \displaystyle 2\cos\frac{A + B}{2}\cos\frac{A - B}{2} = a \cdot 2\cos\frac{A + B}{2}\sin\frac{A - B}{2} 2 cos 2 A + B cos 2 A − B = a ⋅ 2 cos 2 A + B sin 2 A − B
Step 3. Cancel 2 cos A + B 2 \displaystyle 2\cos\frac{A + B}{2} 2 cos 2 A + B (non-zero).
cos A − B 2 = a sin A − B 2 ⟹ cot A − B 2 = a \displaystyle \cos\frac{A - B}{2} = a\sin\frac{A - B}{2} \quad\Longrightarrow\quad \cot\frac{A - B}{2} = a cos 2 A − B = a sin 2 A − B ⟹ cot 2 A − B = a
Step 4. So A − B 2 = cot − 1 a \displaystyle \frac{A - B}{2} = \cot^{-1}a 2 A − B = cot − 1 a , a constant. Hence
sin − 1 x − sin − 1 y = 2 cot − 1 a = constant \sin^{-1}x - \sin^{-1}y = 2\cot^{-1}a = \text{constant} sin − 1 x − sin − 1 y = 2 cot − 1 a = constant
Step 5. Differentiate with respect to x x x .
1 1 − x 2 − 1 1 − y 2 d y d x = 0 \displaystyle \frac{1}{\sqrt{1 - x^2}} - \frac{1}{\sqrt{1 - y^2}}\frac{dy}{dx} = 0 1 − x 2 1 − 1 − y 2 1 d x d y = 0
Step 6. Solve for d y d x \displaystyle \frac{dy}{dx} d x d y .
d y d x = 1 − y 2 1 − x 2 = 1 − y 2 1 − x 2 \displaystyle \frac{dy}{dx} = \frac{\sqrt{1 - y^2}}{\sqrt{1 - x^2}} = \sqrt{\frac{1 - y^2}{1 - x^2}} d x d y = 1 − x 2 1 − y 2 = 1 − x 2 1 − y 2
Checking the answer#
Numerically, with a = 2 a = 2 a = 2 and x = 0.5 x = 0.5 x = 0.5 , solving the equation for y y y and computing the implicit slope gives 1.0619 1.0619 1.0619 , and 1 − y 2 1 − x 2 \displaystyle \sqrt{\frac{1 - y^2}{1 - x^2}} 1 − x 2 1 − y 2 gives the same 1.0619 1.0619 1.0619 . ✓
Answer#
d y d x = 1 − y 2 1 − x 2 \displaystyle \frac{dy}{dx} = \sqrt{\frac{1 - y^2}{1 - x^2}} d x d y = 1 − x 2 1 − y 2 , as required.
Question 11: A sum of two variable powers#
The problem#
Differentiate x x 2 − 3 + ( x − 3 ) x 2 x^{x^2 - 3} + (x - 3)^{x^2} x x 2 − 3 + ( x − 3 ) x 2 for x > 3 x > 3 x > 3 .
Understanding the problem#
Each term has a variable base and a variable exponent. You cannot take the logarithm of a sum usefully, so treat the two terms separately.
The idea#
Write u = x x 2 − 3 u = x^{x^2 - 3} u = x x 2 − 3 and v = ( x − 3 ) x 2 v = (x - 3)^{x^2} v = ( x − 3 ) x 2 . Then d y d x = d u d x + d v d x \displaystyle \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} d x d y = d x d u + d x d v , and find each by logarithmic differentiation. The condition x > 3 x > 3 x > 3 makes log ( x − 3 ) \log(x - 3) log ( x − 3 ) defined.
Step-by-step solution#
Step 1. For u u u : take logarithms and differentiate.
log u = ( x 2 − 3 ) log x 1 u d u d x = 2 x log x + ( x 2 − 3 ) ⋅ 1 x d u d x = x x 2 − 3 ( x 2 − 3 x + 2 x log x ) \displaystyle \begin{aligned} \log u &= (x^2 - 3)\log x \\ \frac{1}{u}\frac{du}{dx} &= 2x\log x + (x^2 - 3)\cdot\frac{1}{x} \\ \frac{du}{dx} &= x^{x^2 - 3}\left(\frac{x^2 - 3}{x} + 2x\log x\right) \end{aligned} log u u 1 d x d u d x d u = ( x 2 − 3 ) log x = 2 x log x + ( x 2 − 3 ) ⋅ x 1 = x x 2 − 3 ( x x 2 − 3 + 2 x log x )
Step 2. For v v v : the same method.
log v = x 2 log ( x − 3 ) 1 v d v d x = 2 x log ( x − 3 ) + x 2 ⋅ 1 x − 3 d v d x = ( x − 3 ) x 2 ( x 2 x − 3 + 2 x log ( x − 3 ) ) \displaystyle \begin{aligned} \log v &= x^2\log(x - 3) \\ \frac{1}{v}\frac{dv}{dx} &= 2x\log(x - 3) + x^2 \cdot \frac{1}{x - 3} \\ \frac{dv}{dx} &= (x - 3)^{x^2}\left(\frac{x^2}{x - 3} + 2x\log(x - 3)\right) \end{aligned} log v v 1 d x d v d x d v = x 2 log ( x − 3 ) = 2 x log ( x − 3 ) + x 2 ⋅ x − 3 1 = ( x − 3 ) x 2 ( x − 3 x 2 + 2 x log ( x − 3 ) )
Step 3. Add.
d y d x = x x 2 − 3 ( x 2 − 3 x + 2 x log x ) + ( x − 3 ) x 2 ( x 2 x − 3 + 2 x log ( x − 3 ) ) \displaystyle \frac{dy}{dx} = x^{x^2 - 3}\left(\frac{x^2 - 3}{x} + 2x\log x\right) + (x - 3)^{x^2}\left(\frac{x^2}{x - 3} + 2x\log(x - 3)\right) d x d y = x x 2 − 3 ( x x 2 − 3 + 2 x log x ) + ( x − 3 ) x 2 ( x − 3 x 2 + 2 x log ( x − 3 ) )
Checking the answer#
At x = 4.3 x = 4.3 x = 4.3 the formula matches the derivative computed by sympy (difference 0 0 0 ).
Answer#
d y d x = x x 2 − 3 ( x 2 − 3 x + 2 x log x ) + ( x − 3 ) x 2 ( x 2 x − 3 + 2 x log ( x − 3 ) ) \displaystyle \frac{dy}{dx} = x^{x^2 - 3}\left(\frac{x^2 - 3}{x} + 2x\log x\right) + (x - 3)^{x^2}\left(\frac{x^2}{x - 3} + 2x\log(x - 3)\right) d x d y = x x 2 − 3 ( x x 2 − 3 + 2 x log x ) + ( x − 3 ) x 2 ( x − 3 x 2 + 2 x log ( x − 3 ) ) .
Common mistake to avoid#
Taking log \log log of the whole sum and writing log ( u + v ) = log u + log v \log(u + v) = \log u + \log v log ( u + v ) = log u + log v . That is false; split the sum first.
Question 12: Continuous but not differentiable#
The problem#
Show that f ( x ) = ∣ x − 1 ∣ + ∣ x − 2 ∣ f(x) = \lvert x - 1 \rvert + \lvert x - 2 \rvert f ( x ) = ∣ x − 1 ∣ + ∣ x − 2 ∣ is continuous everywhere but not differentiable at 1 1 1 and 2 2 2 .
Understanding the problem#
Two things must be shown: (i) no breaks anywhere; (ii) at x = 1 x = 1 x = 1 and x = 2 x = 2 x = 2 the left-hand and right-hand derivatives differ (the graph has corners).
The idea#
Continuity follows because a sum of continuous functions is continuous. For differentiability, remove the modulus signs on each interval to get a straight-line formula, then compare slopes on either side of 1 1 1 and of 2 2 2 .
Step-by-step solution#
Step 1. Continuity. ∣ x − 1 ∣ \lvert x - 1 \rvert ∣ x − 1 ∣ and ∣ x − 2 ∣ \lvert x - 2 \rvert ∣ x − 2 ∣ are each continuous everywhere, so their sum f f f is continuous everywhere.
Step 2. Write f f f without modulus signs.
f ( x ) = { ( 1 − x ) + ( 2 − x ) = 3 − 2 x , x < 1 ( x − 1 ) + ( 2 − x ) = 1 , 1 ≤ x ≤ 2 ( x − 1 ) + ( x − 2 ) = 2 x − 3 , x > 2 f(x) = \begin{cases} (1 - x) + (2 - x) = 3 - 2x, & x < 1 \\ (x - 1) + (2 - x) = 1, & 1 \le x \le 2 \\ (x - 1) + (x - 2) = 2x - 3, & x > 2 \end{cases} f ( x ) = ⎩ ⎨ ⎧ ( 1 − x ) + ( 2 − x ) = 3 − 2 x , ( x − 1 ) + ( 2 − x ) = 1 , ( x − 1 ) + ( x − 2 ) = 2 x − 3 , x < 1 1 ≤ x ≤ 2 x > 2
Step 3. At x = 1 x = 1 x = 1 : the left-hand derivative is the slope of 3 − 2 x 3 - 2x 3 − 2 x , which is − 2 -2 − 2 ; the right-hand derivative is the slope of the constant 1 1 1 , which is 0 0 0 .
L f ′ ( 1 ) = − 2 ≠ 0 = R f ′ ( 1 ) Lf'(1) = -2 \ne 0 = Rf'(1) L f ′ ( 1 ) = − 2 = 0 = R f ′ ( 1 )
So f f f is not differentiable at 1 1 1 .
Step 4. At x = 2 x = 2 x = 2 : left-hand derivative 0 0 0 (constant piece), right-hand derivative 2 2 2 (slope of 2 x − 3 2x - 3 2 x − 3 ).
L f ′ ( 2 ) = 0 ≠ 2 = R f ′ ( 2 ) Lf'(2) = 0 \ne 2 = Rf'(2) L f ′ ( 2 ) = 0 = 2 = R f ′ ( 2 )
So f f f is not differentiable at 2 2 2 .
Checking the answer#
The pieces meet: at x = 1 x = 1 x = 1 , 3 − 2 = 1 3 - 2 = 1 3 − 2 = 1 ; at x = 2 x = 2 x = 2 , 4 − 3 = 1 4 - 3 = 1 4 − 3 = 1 . So the graph is joined (continuous) but bends sharply at both points.
Answer#
f f f is continuous everywhere; at x = 1 x = 1 x = 1 the one-sided derivatives are − 2 -2 − 2 and 0 0 0 , and at x = 2 x = 2 x = 2 they are 0 0 0 and 2 2 2 , so f f f is not differentiable at 1 1 1 or 2 2 2 .