MathLab with Mr. Ahmed is a math learning website by Ahmed Amasha, a mathematics teacher teaching the American curriculum. Explore Algebra 2, Precalculus, Calculus, and SAT and PSAT Math Prep through lessons, focused practice and printable resources.
For y=Asin(Bx), amplitude is ∣A∣ and period is ∣B∣2π when B=0.
Remember A vertical shift changes the midline, not the amplitude.
Worked example 1
01 / Define a period and the least positive period, including the requirement that the domain is unchanged by translation. Use unit-circle coordinates to construct both graphs on [0,2π]. Give their zeros, extrema and parity; list the least periods of all six trigonometric functions. Complete the quarter-cycle table and evaluate sin(613π),cos(613π). Explain separately why the constant function f(x)=1 has no least positive period. Curve 1: sin(x). Curve 2: cos(x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
02 / A period p>0 satisfies D+p=D and f(x+p)=f(x) for every x∈D. The least positive such number, when it exists, is the fundamental period.
03 / One full circuit of the unit circle adds 2π to the input without changing either coordinate. The first return of both sine value and orientation, or cosine value and orientation, occurs after 2π.
04 /
Input
Sine
Cosine
0
0
1
2π
1
0
π
0
−1
23π
−1
0
2π
0
1
05 / sinx=0⟺x=nπ; sine maxima are at x=2π+2nπ and minima at x=23π+2nπ. cosx=0⟺x=2π+nπ; cosine maxima are at 2nπ and minima at (2n+1)π, for integers n.
06 / Reflection of the terminal point gives sin(−x)=−sinx and cos(−x)=cosx. Sine, cosine, secant and cosecant have least period 2π; tangent and cotangent have least period π on their pole-excluded domains.
07 / Subtract 2π from the translated angle to obtain 6π. The values are 21 and 23.
08 / The constant function on all real inputs has every positive number as a period. Given any proposed least period, half of it is a smaller positive period, so no least one exists.
Worked example 2 · G01
Define a period and the least positive period, including the requirement that the domain is unchanged by translation. Use unit-circle coordinates to construct both graphs on [0,2π]. Give their zeros, extrema and parity; list the least periods of all six trigonometric functions. Complete the quarter-cycle table and evaluate sin(625π),cos(625π). Explain separately why the constant function f(x)=2 has no least positive period. Curve 1: sin(x). Curve 2: cos(x).
Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
A period p>0 satisfies D+p=D and f(x+p)=f(x) for every x∈D. The least positive such number, when it exists, is the fundamental period. One full circuit of the unit circle adds 2π to the input without changing either coordinate. The first return of both sine value and orientation, or cosine value and orientation, occurs after 2π.
Input
Sine
Cosine
0
0
1
2π
1
0
π
0
−1
23π
−1
0
2π
0
1
sinx=0⟺x=nπ; sine maxima are at x=2π+2nπ and minima at x=23π+2nπ. cosx=0⟺x=2π+nπ; cosine maxima are at 2nπ and minima at (2n+1)π, for integers n. Reflection of the terminal point gives sin(−x)=−sinx and cos(−x)=cosx. Sine, cosine, secant and cosecant have least period 2π; tangent and cotangent have least period π on their pole-excluded domains. Subtract 4π from the translated angle to obtain 6π. The values are 21 and 23. The constant function on all real inputs has every positive number as a period. Given any proposed least period, half of it is a smaller positive period, so no least one exists. Written-work review:
Give the domain-preserving definition and distinguish a period from the least period.
Construct both full base cycles and the exact quarter-cycle table, including zeros, extrema and parity.
Reduce the translated angle and justify the constant-function exception.
Read the graphs
Read periodic base graphs
Define a period and the least positive period, including the requirement that the domain is unchanged by translation. Use unit-circle coordinates to construct both graphs on [0,2π]. Give their zeros, extrema and parity; list the least periods of all six trigonometric functions. Complete the quarter-cycle table and evaluate sin(613π),cos(613π). Explain separately why the constant function f(x)=1 has no least positive period. Curve 1: sin(x). Curve 2: cos(x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
A period p>0 satisfies D+p=D and f(x+p)=f(x) for every x∈D. The least positive such number, when it exists, is the fundamental period. One full circuit of the unit circle adds 2π to the input without changing either coordinate. The first return of both sine value and orientation, or cosine value and orientation, occurs after 2π.
Input
Sine
Cosine
0
0
1
2π
1
0
π
0
−1
23π
−1
0
2π
0
1
sinx=0⟺x=nπ; sine maxima are at x=2π+2nπ and minima at x=23π+2nπ. cosx=0⟺x=2π+nπ; cosine maxima are at 2nπ and minima at (2n+1)π, for integers n. Reflection of the terminal point gives sin(−x)=−sinx and cos(−x)=cosx. Sine, cosine, secant and cosecant have least period 2π; tangent and cotangent have least period π on their pole-excluded domains. Subtract 2π from the translated angle to obtain 6π. The values are 21 and 23. The constant function on all real inputs has every positive number as a period. Given any proposed least period, half of it is a smaller positive period, so no least one exists. Written-work review:
Give the domain-preserving definition and distinguish a period from the least period.
Construct both full base cycles and the exact quarter-cycle table, including zeros, extrema and parity.
Reduce the translated angle and justify the constant-function exception.
Answer: Sine/cosine least period 2π; parities odd/even; translated values 21 and 23.
Transform heights and absolute outputs
Graph y=sin(x)+3 over [0,2π]. Describe the transformations, give the full range and least period, and locate all extrema in this interval. For an absolute output, explain why it is not a single sine or cosine curve. Curve 1: sin(x)+3. Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
The transformation is vertical translation. Starting from −1≤sin(x)≤1, transform the entire inequality, reversing signs when multiplying by a negative number. This gives the exact range [2,4]. Its maximum is not an amplitude when the midline is nonzero. Vertical translation and nonzero scaling preserve the base fundamental period 2π. The sinusoidal amplitude is 1.0. Exact guide points: (0,3), (4π,22+3), (2π,4), (43π,22+3), (π,3), (45π,3−22), (23π,2), (47π,3−22), (2π,3). All maximum coordinates in the closed interval are (2π,4). All minimum coordinates are (23π,2). These lists include every repeated extremum and both closed endpoints when applicable. Written-work review:
Identify every vertical transformation and compute the exact full range.
Draw every extremum on the stated interval, including endpoint extrema.
Explain the folded-output least period and why an absolute-value wave is not one sinusoid.
Answer: Range [2,4]; least period 2π.
Recover a formula from an actual graph
The plotted curve is exactly one complete sinusoidal cycle. Read its extrema, endpoints and initial direction. Recover the amplitude, period, horizontal shift and midline, then give an equation in sine or cosine form. Use the exact marked coordinates, not rounded grid ticks.
Point
Horizontal coordinate
Vertical coordinate
P1
6π
1
P2
125π
4
P3
32π
1
P4
1211π
−2
P5
67π
1
Curve 1: unidentified sinusoid. Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
Normalize the frequency to be positive while retaining the sin basis and signed outside coefficient. Since sine is odd and cosine is even, the equivalent factored model is y=1+3sin(2(x−6π)). A=3,k=2,h=6π,d=1. Thus T=k2π=π. In this retained sin basis with the stated signed coefficient A, the phase is b=kh=3π, whereas the horizontal shift is 6π. A phase in radians is not a horizontal shift in input units. The five quarter-cycle coordinates are (6π,1), (125π,4), (32π,1), (1211π,−2), (67π,1). The range is [−2,4]. This nonzero-amplitude graph repeats after π. Any smaller period would give a smaller period of the base sine or cosine after undoing the nonzero vertical scale and input scale. Curve 1: unidentified sinusoid.
Written-work review:
Read actual extrema, exact marked endpoints and initial direction from the unidentified graph.
Recover a formula and verify it against all five marked points.
Explain why a single point would not determine the sinusoid.
Answer: Amplitude 3; least period π; shift 6π; midline y=1; factored-argument phase 3π.
Choose honest windows and domains
Choose and justify a viewing window and sampling step that resolve the curve for y=2sin(48x). State its domain and least positive period, draw every visible branch and mark excluded poles separately. Explain what a default wide or narrow view can hide. Curve 1: 2sin(48x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
The proposed window is [−24π,24π]×[−2.5,2.5]. The plotted horizontal width is 12π. Two complete cycles fit the horizontal span. A step no larger than one eightieth of the period resolves extrema rather than joining one sample per cycle into an aliased line. Use Δx≤1920π for the trigonometric curve and split at every listed domain boundary. No finite plot alone establishes a global period. The domain is R. The base trig period divided by the input frequency gives 24π, with domain translation invariance checked as well. The coarse alternative uses a sampling step equal to a whole period. Its samples repeat the same phase and hide intervening extrema, zeros and, for pole-bearing functions, entire branches. Thus it is not a nonmisleading resolved graph, even though its span and domain are correct. A different well-resolved window is acceptable; the supplied rectangle is not unique. For this actual proposed rectangle, the coarse grid starting at its left edge gives at −24π, output 0; at 0, output 0; at 24π, output 0. The repeated values omit interior extrema or intervening branches. The good proposal uses 80 steps per trig period instead. Written-work review:
Justify both the window and sampling scale from the actual oscillation period.
Preserve every domain gap and pole; distinguish output squaring from an input square.
For the approximation subtype, evaluate every polynomial term and compare the computed result with cosine.
Answer: Least period 24π; proposed horizontal span 12π; sampling step 1920π; domain R.
Add oscillations point by point
Plot the two summands and their sum on the same axes for f(x)=2x, g(x)=sin(x). Complete a four-column table at 0, 5π, 2π, π, explain ordinate addition, and decide whether the sum is periodic, nonperiodic or constant. Relate harmonic sums to sound; distinguish changing amplitude from changing oscillation spacing. Curve 1: 2x. Curve 2: sin(x). Curve 3: 2x+sin(x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
At any fixed horizontal coordinate, add the two vertical coordinates; do not add the horizontal coordinates.
Input
First summand
Second summand
Sum
0
0
0
0
5π
10π
410−25
10π+410−25
2π
4π
1
4π+1
π
2π
0
2π
The linear part is unbounded while the sine part is bounded, so a translated repeating graph is impossible. Finite harmonic sums model combinations of oscillations. Amplitude modulation changes the envelope height; frequency modulation changes local cycle spacing. These are different mechanisms, not interchangeable labels for any non-sinusoidal sum. Written-work review:
Compute every requested row of the two-summand-and-sum table.
Draw all three curves on shared axes and explain ordinate addition.
Justify repetition, constant cancellation or nonperiodic drift and distinguish amplitude from frequency modulation.
Answer: Sum at 5π: 10π+410−25; classification: nonperiodic.
Prove and interpret envelopes
Graph all three functions a(x)=2x2, −a(x)=−2x2, and F(x)=2x2cos(2πx) on the same axes. State the real domain; prove the correctly ordered envelope inequality, identify when the curves touch, and explain any swapping of upper and lower boundaries. Evaluate the product and absolute envelope at 111 to four decimals. Curve 1: 2x2. Curve 2: −2x2. Curve 3: 2x2cos(2πx). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
∣cos(2πx)∣≤1 implies ∣F(x)∣=∣a(x)∣∣cos(2πx)∣≤∣a(x)∣. Therefore −∣a(x)∣≤F(x)≤∣a(x)∣ on R. The two drawn curves a(x) and −a(x) exchange upper/lower roles wherever a(x) changes sign. Multiplying an inequality by a negative envelope without reversing signs is invalid. Touching occurs wherever a(x)=0 or the oscillating factor equals 1 or −1. The actual upper/lower assignment depends on the sign of a(x). At x=111, the product is 0.0035 and the absolute envelope is 0.0041. Envelope extrema are not automatically extrema of the product. The displayed window illustrates the proved bound; it does not prove a global extrema claim. Written-work review:
Draw the envelope, its negative and the product together on the correct domain.
Prove the ordered absolute-envelope inequality, reversing boundaries when the envelope changes sign.
Identify touching conditions and evaluate both product and bound without confusing their extrema.
Find the minimum and maximum of f(x)=2sin(2x)+2cos(x) on R. Give locations or exact candidate equations as well as values, rounded to four decimals where needed. Check every endpoint when the interval is bounded. Use algebra or the supplied stationary-point conditions in the solution to justify completeness, rather than trusting sampled extrema. Curve 1: 2sin(2x)+2cos(x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
The function has period 2π. The stationary condition is −sinx+2cos(2x)=0. Setting u=sinx gives 4u2+u−2=0, whose two roots are u=8−1±33. Both roots lie in [−1,1]. Each gives two sine angles in one cycle. The four candidate coordinates are (−asin(81−833),3.52034518609), (asin(81−833)+π,−3.52034518609), (asin(81+833)+π,0.738017459656), (−asin(81+833)+2π,−0.738017459656). The cycle endpoints both have output 2. Every global extremum is attained in a closed full cycle. Comparing all four stationary outputs and both endpoints gives minimum −3.52034519 and maximum 3.52034519. The points attaining each value are selected explicitly: minimum at asin(81−833)+π and maximum at −asin(81−833), together with every 2nπ translate. Separate summand extrema are not simultaneous. Written-work review:
List all valid algebraic or stationary candidates and all bounded-interval endpoints.
Evaluate and compare every candidate, reporting both extrema and their locations or defining equations.
For the rational-decay case, prove parity, uniqueness of the central-lobe minimum and a strict tail bound.
Answer: Minimum −3.5203; maximum 3.5203.
Find every graphical intersection
Use the graph of y=sin(x) and y=51 to solve sin(x)=51 on [0,2π]. List all solutions in increasing order to two decimals. Also give every input in this interval where the left side is at least the right side. Curve 1: sin(x). Curve 2: 51. Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
Intersections correspond to equal outputs only where both functions are defined. Dashed asymptotes are not intersections. Sine increases from 0 to 1 on the first quadrant and then decreases to 0; it is nonpositive on the second half-cycle. Thus exactly these two crossings occur. The complete root list is asin(51), π−asin(51). Rounded only at the end: 0.20, 2.94. The sine curve is at or above the target exactly on [asin(51),π−asin(51)]. Include both crossing endpoints because the inequality is inclusive. Written-work review:
List all admissible crossings on the complete closed interval, with correct rounding.
Use monotonicity, factorization or complete branch enumeration to prove no root was missed.
Exclude poles, retain endpoint roots and give inclusive threshold intervals when requested.
Answer: Solutions {0.20,2.94}.
Keep quotient holes and limits distinct
For f(x)=2x1−cos(2x), determine the full domain and parity, every horizontal-axis intercept, a global and near-zero graph, both tail limits, and the limit at zero. Explain why the limiting value is not f(0). Curve 1: 2x1−cos(2x). Curve 1: 2x1−cos(2x). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
Denominator =0, so the domain is R∖{0}. This domain is symmetric about zero. The numerator is even and the denominator is odd. Consequently f(−x)=−f(x), proving odd parity. Zeros require the numerator to vanish and the input to remain in the domain: x=22nπ,n∈Z∖{0}. In particular zero itself is not an intercept. ∣f(x)∣≤2∣x∣2 proves that both tails approach zero. The bound 0≤1−cosu≤2u2 gives ∣f(x)∣≤44∣x∣→0. The hole is at (0,0). It stays open unless a new extended function is explicitly defined. Written-work review:
State the symmetric punctured domain, parity and every nonzero zero family.
Draw both global and near-zero views with an open hole at the correct limiting height.
Prove both-tail bounds and the zero-input limit without assigning a value at the excluded input.
Answer: Parity odd; zero-input limit 0; both-tail limit 0; value at zero undefined.
Interpret periodic signals with units
A harbor water-height model above a fixed chart datum is y(t)=25cos(7πt)+23, with time in seconds and output in meters. Find the period, frequency, midline, maximum, minimum and peak-to-trough change. Draw two cycles with units on the axes. Find the crest-to-trough height, not merely the amplitude. Curve 1: y(t)=25cos(7πt)+23. Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
Compare the coefficient of time with ω=T2π. Thus T=14 seconds and f=T1=0.0714285714285714 cycles per second. The midline is 23 meters and amplitude is 25 meters. Therefore minimum −1, maximum 4, and peak-to-trough difference 5 meters. The model has a nonzero baseline, so amplitude is not the maximum output. Written-work review:
Derive period and reciprocal frequency with the correct input units.
Give baseline, both extrema and twice-amplitude spread and draw two cycles.
Complete the relevant millisecond conversion, numerical reference comparison or magnitude-brightness interpretation.
Answer: Period 14 seconds; frequency 141 cycles per second; minimum −1 and maximum 4 meters.
Prove composition periodicity and parity
Graph and classify each function by domain-aware parity and genuine least positive period, or prove nonperiodicity: f1(x)=∣sin(x)∣, f2(x)=sin(∣x∣). A finite repeating-looking plot is evidence for a conjecture, not a proof. Curve 1: ∣sin(x)∣. Curve 2: sin(∣x∣). Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
∣sin(1(x+1π))∣=∣sin(x)∣ proves the first period. Its zeros are spaced by π, so no smaller positive period can preserve that zero set. Both expressions are even, but their values differ on negative inputs. If the second had period P>0, its positive-input sine tail forces P=2nπ. For small ε>0, values at −ε and P−ε would be opposite nonzero numbers. This contradicts periodicity. Written-work review:
State the complete actual domain before claiming parity.
Draw every composition and give a valid period-minimality or nonperiodicity proof for each.
For the nested comparison, prove the strict global inequality using both sign cases rather than graph samples.
Answer: First: even, least period π; second/result: even, nonperiodic.
Find all equivalent phase families
The plotted sinusoid has midline −1, amplitude 3, and one cycle from −31 to −31+2π, beginning at a downward midline crossing. For the fixed positive frequency 1, find every pair (A,b) in both forms y=−1+Asin(x−b) and y=−1+Acos(x−b). The amplitude ∣A∣ is nonnegative. Include both signs of the coefficient A and all integer phase families, then prove completeness. Curve 1: unidentified downward-starting sinusoid. Show the requested calculations and reasoning. Written explanations and sketches require teacher review; choosing a summary does not verify that work. Complete the written work or drawing first. The selected answer checks the result only; your reasoning or drawing needs teacher/self-review.
The graph gives y=−3sin(x+31)−1. The midline and frequency are fixed; the maximum and minimum force ∣A∣=3. For sine, A=−3 requires b=−31+2nπ. Changing the sign requires adding π to the phase, so A=3 requires b=−31+π+2nπ. Using −sinu=cos(u+2π), the positive-coefficient cosine phase is b=−2π−31+2nπ. Negating its coefficient adds π to that phase, giving b=−31+2π+2nπ. Completeness: the nonnegative amplitude ∣A∣ is fixed by the extrema, leaving only the two coefficient signs. Expanding the sine or cosine difference and comparing the coefficients of sin(x) and cos(x) fixes the phase modulo 2π. Thus there are no other coefficient or phase families for the specified frequency and midline. Horizontal shifts are these phases divided by 1. Written-work review:
Recover the amplitude magnitude, positive frequency and midline from the actual graph.
Give both coefficient signs for both sine and cosine with all integer phase families.
Prove completeness by comparing sine and cosine coefficients and distinguish phases from horizontal shifts.
Answer: Sine (A,b)=(−3,−31+2nπ), (A,b)=(3,−31+π+2nπ); cosine (A,b)=(3,−2π−31+2nπ), (A,b)=(−3,−31+2π+2nπ), n∈Z.
Textbook reference: Stewart, Redlin & Watson, Precalculus: Mathematics for Calculus, 7th ed. (Cengage, 2016). The explanations and practice here are original, organized by textbook section.