Inverse functions, logarithms and trigonometric functions
Finding inverse functions, logarithm rules, log/exponential equations, unit circle values and inverse trigonometric functions. The alphabet of the derivative weeks.
one-to-oneinverse functionhorizontal line testlogarithmnatural logarithmchange of baseradianunit circletrigonometric identityarcsinarccosarctanprincipal value
This week has three separate topics, but all of them hang on one idea: undoing an operation. The logarithm undoes the exponential function, and arcsin undoes sine. In week 7 you will differentiate these functions, and in weeks 12-14 you will integrate with them. Someone who is not solid here can differentiate correctly but cannot simplify the result. The short list:
For an inverse function, write y=f(x), isolate x, swap the letters.
Domain of the inverse = range of the original.
Logarithm rules turn a product into a sum and an exponent into a coefficient. They do not turn a sum into a product.
Check every root you get in a log equation. The argument of a logarithm must be positive.
Inverse trigonometric functions give values from a single interval (principal value).
Inverse function
If f is one-to-one, meaning different x go to different y, it has an inverse: f−1(y)=x⟺f(x)=y. Test on the graph: if every horizontal line crosses the graph at most once, the function is one-to-one (horizontal line test).
Two properties of the inverse function:
f(f−1(x))=x,f−1(f(x))=x
Its graph is the reflection of the graph of f in the line y=x. Domain and range swap places.
Example 1.f(x)=3x−5: y=3x−5⇒x=3y+5, so f−1(x)=3x+5.
Example 2.f(x)=x3+2: x=3y−2, so f−1(x)=3x−2. The cube is one-to-one everywhere.
f(x)=x2 is not one-to-one on R (f(2)=f(−2)). If you restrict the domain to x≥0, its inverse is x. If you see a restriction like “with domain x≥2” on an exam, it tells you which of the ± signs to choose.
Inverse values without a formula
Sometimes the formula for the inverse cannot be derived, but a single value is asked. f(x)=x3+x is one-to-one (increasing), but solving y=x3+x for x is hard. The question “What is f−1(2)?” is easy though: look for the x that makes f(x)=2. If you try, f(1)=1+1=2, so f−1(2)=1. In week 7, in “find (f−1)′(a)” questions, this is always the first step.
The most practical way to show that a function is one-to-one is to show that it is increasing or decreasing. A continuously increasing function cannot take the same value at two different points. You will see the increasing test with the derivative in week 9; for now, look at the graph or use the reasoning x1<x2⇒f(x1)<f(x2).
PITFALL · f−1(x)=f(x)1. The −1 on top is inverse function notation, not a power. For f(x)1 write [f(x)]−1.
Logarithm
For a>0, a=1:
logax=y⟺ay=x
So logax is the answer to the question “to what power must I raise a to get x?” The natural logarithm is lnx=logex. Its domain is (0,∞) and its range is R. ln1=0, lne=1.
Rule
Formula
Product
loga(xy)=logax+logay
Quotient
logayx=logax−logay
Power
loga(xr)=rlogax
Change of base
logax=lnalnx
Inverse property
alogax=x, loga(ax)=x
Example 3.log354−log32=log327=3.
Example 4.log2(x+3)+log2(x−1)=5.
log2[(x+3)(x-1)] = 5 product rule(x+3)(x-1) = 2^5 = 32 apply the definitionx^2 + 2x - 35 = 0(x+7)(x-5) = 0 -> x = 5 or x = -7x = -7: log2(-4) is undefined DISCARDanswer: x = 5
Example 5.3x=7. You cannot equalize the bases to 3. Take ln of both sides: xln3=ln7, x=ln3ln7≈1.7712.
Example 5b.e2x−5ex+6=0. This is a hidden quadratic equation: let u=ex, u2−5u+6=0, (u−2)(u−3)=0. ex=2⇒x=ln2, ex=3⇒x=ln3. Both roots are valid, because the u values are positive.
General strategy table:
Equation type
What you do
aA=aB
Equate the exponents
ax=b (bases cannot be equalized)
Take ln of both sides: x=lnalnb
a2x and ax together
u=ax, quadratic, u>0
logA+logB=c
Combine into one log, apply the definition, test the roots
logA=logB
A=B, then check A>0
Since lnx and ex are inverses of each other, their graphs are symmetric about the line y=x. If ex has the horizontal asymptote y=0, then lnx has the vertical asymptote x=0. If ex passes through (0,1), then lnx passes through (1,0).
PITFALL · log rules that do not exist.ln(x+y)=lnx+lny and lnylnx=lnyx. There is no rule for the logarithm of a sum.
Trigonometric functions
In calculus angles are always in radians: 180∘=π. On the unit circle, the endpoint of the angle θ is (cosθ,sinθ). From this:
For other angles use the reference angle + quadrant sign. The functions that are positive in each quadrant: all in I, sin in II, tan in III, cos in IV.
Example 6.sin65π=21 (quadrant II, reference angle 6π). cos34π=−21 (quadrant III). tan(−3π)=−3 (tan is an odd function).
The three forms of cos2x are lifesavers in the integral weeks: sin2x=21−cos2x, cos2x=21+cos2x.
Example 7. On [0,2π), 2cosx+3=0. cosx=−23. The reference angle is 6π, and cosine is negative in quadrants II and III: x=π−6π=65π and x=π+6π=67π.
Inverse trigonometric functions
Sine is not one-to-one, so we restrict the domain to an interval and take the inverse. These intervals are fixed and must be memorized:
Function
Domain
Range (principal value)
arcsinx (sin−1x)
[−1,1]
[−π/2,π/2]
arccosx (cos−1x)
[−1,1]
[0,π]
arctanx (tan−1x)
R
(−π/2,π/2)
Example 8.arcsin(sin65π). The answer is not 65π. sin65π=21, and arcsin21=6π, because 65π is not in the range of arcsin.
Example 9.tan(arcsin31). θ=arcsin31: opposite 1, hypotenuse 3, adjacent 9−1=22. tanθ=221=42. This “draw a triangle” technique will come back in the inverse trigonometric substitution in week 14.
The same technique gives general formulas that help you simplify derivative results in week 7:
See why the sign is always + from the ranges: arccosx∈[0,π] and sine is never negative on this interval. arcsinx∈[−2π,2π] and cosine is never negative on this interval.
One more identity to know: for every x∈[−1,1]
arcsinx+arccosx=2π
Check: for x=21, 6π+3π=2π.
Common mistakes
Wrong thinking
Correct
f−1(x)=f(x)1
f−1 is the inverse function; f(x)1 is something else
ln(x+2)=lnx+ln2
The log of a sum does not expand; ln(2x)=ln2+lnx
ln2ln8=ln4
ln2ln8=log28=3
Writing both roots of a log equation
Discard the root that makes an argument negative
arcsin(sinx)=x always
Only when x∈[−π/2,π/2]
arccos(−21)=−3π
The value of arccos is in [0,π]: 32π
sin2x=sin(x2)
sin2x=(sinx)2
Calculator in degree mode
Use radians in calculus
The only solution of sinx=−21 is −6π
On [0,2π) they are 67π and 611π
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1medium
Find the inverse of f(x)=x+32x−1.
Show answer
f−1(x)=2−x3x+1
Write y=x+32x−1 and isolate x. y(x+3)=2x−1⇒yx+3y=2x−1⇒yx−2x=−1−3y⇒x(y−2)=−(1+3y). From here x=2−y1+3y. Swap the letters: f−1(x)=2−x3x+1. Check: f(0)=−31, f−1(−31)=7/30=0.
Question 2medium
Find f−1(x) for f(x)=e2x−1+3 and state the domain of f−1.
Show answer
f−1(x)=21+ln(x−3), domain (3,∞)
y=e2x−1+3⇒y−3=e2x−1⇒ln(y−3)=2x−1⇒x=21+ln(y−3). The domain of the inverse is the range of f: since e2x−1>0, f(x)>3. So it is (3,∞). The argument of the logarithm says the same thing: x−3>0.
Question 3easy
Evaluate log248−log23 without a calculator.
Show answer
4
Difference rule: log248−log23=log2348=log216=4, because 24=16.
Question 4medium
Solve lnx+ln(x−2)=ln8.
Show answer
x = 4
The left side is ln(x(x−2)). Since ln is one-to-one, x(x−2)=8⇒x2−2x−8=0⇒(x−4)(x+2)=0. For x=−2, ln(−2) is undefined, so it is discarded. The only solution is x=4.
Question 5medium
Solve 5x=2x+1. Give the exact answer and a decimal approximation.
Show answer
x=ln5−ln2ln2≈0.7565
The bases cannot be equalized, so take ln of both sides: xln5=(x+1)ln2. Collect the terms with x: x(ln5−ln2)=ln2⇒x=ln5−ln2ln2=ln2.5ln2≈0.7565.
Question 6easy
Find the exact value of sin67π+cos35π+tan43π.
Show answer
-1
67π is in quadrant III with reference angle 6π: sin=−21. 35π is in quadrant IV with reference angle 3π: cos=+21. 43π is in quadrant II with reference angle 4π: tan=−1. Sum: −21+21−1=−1.
Question 7medium
Solve 2sin2x−sinx−1=0 for 0≤x<2π.
Show answer
x=2π,67π,611π
u=sinx: 2u2−u−1=0⇒(2u+1)(u−1)=0. sinx=1⇒x=2π. sinx=−21: sine is negative in quadrants III and IV, with reference angle 6π: x=π+6π=67π and x=2π−6π=611π.
Question 8medium
Prove the identity sin2x1−cos2x=tanx.
Show answer
Use 1−cos2x=2sin2x and sin2x=2sinxcosx.
Numerator: 1−cos2x=1−(1−2sin2x)=2sin2x. Denominator: sin2x=2sinxcosx. Ratio: 2sinxcosx2sin2x=cosxsinx=tanx (for the x where the denominator is not zero).
Question 9medium
Evaluate arcsin(−23)+arccos(−21).
Show answer
3π
arcsin gives its value from the interval [−2π,2π]: sin(−3π)=−23, so the value is −3π. arccos gives its value from the interval [0,π]: cos32π=−21, so the value is 32π. Sum: −3π+32π=3π.
Question 10hard
Simplify cos(arctanx) as an algebraic expression in x.
Show answer
1+x21
Let θ=arctanx, so tanθ=x and θ∈(−2π,2π). Draw a right triangle with opposite side x and adjacent side 1; the hypotenuse is 1+x2. cosθ=1+x21. Cosine is positive on this interval, so the sign is +.
Question 11hard
Let f(x)=x2−4x+1 with domain x≥2. Find f−1(x) and its domain.
Show answer
f−1(x)=2+x+3, domain [−3,∞)
Complete the square: f(x)=(x−2)2−3. With the condition x≥2 the function is one-to-one. y=(x−2)2−3⇒(x−2)2=y+3⇒x−2=±y+3. Since x≥2, choose the + sign: x=2+y+3. The range of f is [−3,∞), and this is the domain of the inverse.
Question 12hard
If sinθ=53 and 2π<θ<π, find cosθ and tan2θ.
Show answer
cosθ=−54, tan2θ=−724
cos2θ=1−259=2516. Cosine is negative in quadrant II: cosθ=−54. tanθ=−4/53/5=−43. Double angle: tan2θ=1−tan2θ2tanθ=1−9/16−3/2=7/16−3/2=−724.
Verification: All answers were checked with node (verify/MAT1051/02.mjs): inverse functions with the f(g(x)) = x test at several points, equation roots by substitution, identities and trigonometric values numerically.
Review card
One-to-one: every horizontal line crosses the graph at most once
Finding the inverse: write y = f(x), solve for x, swap the letters. Check: f(f^-1(x)) = x
dom(f^-1) = range(f) the graph reflects in the line y = x
log_a x = y <=> a^y = x ln = log_e the argument must be > 0
log(xy) = log x + log y log(x/y) = log x - log y log(x^r) = r log x
log_a x = ln x / ln a e^(ln x) = x (x > 0) ln(e^x) = x
In a log equation, test the roots you find in the original equation
30-45-60: sin = 1/2, √2/2, √3/2 cos is the reverse tan = 1/√3, 1, √3
sin^2 + cos^2 = 1 sin2x = 2 sin cos cos2x = 1 - 2sin^2 = 2cos^2 - 1
arcsin: [-π/2, π/2] arccos: [0, π] arctan: (-π/2, π/2)
arcsin(sin x) = x ONLY if x ∈ [-π/2, π/2]