solve-trigonometric-problem
정보
이 스킬은 삼각 항등식, 사인/코사인 법칙, 역함수를 활용해 삼각 방정식과 삼각형 문제를 체계적으로 해결합니다. 주어진 변이나 각도 데이터(SSS, SAS, ASA)로 삼각형을 풀이하거나 항등식을 검증하는 작업을 수행할 수 있습니다. 개발자는 이를 활용해 미지의 각도를 구하거나, 실제 문제를 모델링하거나, 단위원 분석을 수행할 수 있습니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/solve-trigonometric-problemClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Solve Trigonometric Problem
Systematic solve trigonometric equations, triangle problems, identity verifications. Classify problem type. Select appropriate strategy. Apply identities and laws. Verify solutions against domain and range constraints.
When Use
- Solve trigonometric equations for unknown angles or values
- Resolve triangles given partial information (SSS, SAS, ASA, AAS, SSA)
- Verify or prove trigonometric identities
- Apply trigonometry to real-world problems (surveying, physics, engineering)
- Simplify complex trigonometric expressions
Inputs
- Required: Problem statement (equation, triangle data, identity to verify, or application scenario)
- Required: Desired output form (exact values, decimal approximations, general solution, specific interval)
- Optional: Angle unit convention (radians or degrees; default: radians)
- Optional: Domain restriction (e.g., [0, 2*pi), [0, 360), all reals)
- Optional: Required precision for numerical answers (e.g., 4 decimal places)
Steps
Step 1: Classify Problem Type
Determine which category problem falls into. Each needs different strategy.
-
Trigonometric equation: Solve for unknown angle(s) in an equation involving trigonometric functions.
- Sub-types: linear in one trig function, quadratic in one trig function, multiple-angle, mixed functions, parametric.
-
Triangle resolution: Given partial information about a triangle, find all remaining sides and angles.
- Sub-types by given data: SSS, SAS, ASA, AAS, SSA (ambiguous case).
-
Identity verification: Prove that a trigonometric equation holds for all values in its domain.
- Sub-types: algebraic manipulation, sum-to-product, product-to-sum, half-angle, double-angle.
-
Application problem: Extract a trigonometric model from a real-world scenario.
- Sub-types: periodic modeling, angle of elevation/depression, bearing/navigation, harmonic motion.
Document the classification:
Problem: Solve 2*sin^2(x) - sin(x) - 1 = 0 for x in [0, 2*pi).
Classification: Trigonometric equation, quadratic in sin(x).
Got: Clear classification with problem sub-type identified, directly determines solution strategy in Step 2.
If fail: Problem does not fit neat into one category? May be compound problem. Decompose into sub-problems, classify each, solve sequential. Example: "find area of triangle ABC given two sides and included angle" combines triangle resolution (SAS) with area formula application.
Step 2: Select Solution Strategy
Choose appropriate method based on classification from Step 1.
For trigonometric equations:
| Equation Type | Strategy |
|---|---|
| Linear in sin(x) or cos(x) | Isolate the trig function, apply inverse |
| Quadratic in sin(x) or cos(x) | Substitute u = sin(x), solve quadratic, back-substitute |
| Multiple angle (sin(2x), cos(3x)) | Solve for the inner argument, then divide |
| Mixed functions (sin and cos) | Convert to single function using identities |
| Factorable | Factor and solve each factor = 0 |
For triangle resolution:
| Given Data | Primary Tool |
|---|---|
| SSS | Law of cosines (find largest angle first) |
| SAS | Law of cosines (find opposite side), then law of sines |
| ASA | Angle sum = pi, then law of sines |
| AAS | Angle sum = pi, then law of sines |
| SSA | Law of sines (check ambiguous case: 0, 1, or 2 solutions) |
For identity verification:
- Work on one side only (typically the more complex side)
- Convert everything to sin and cos
- Apply fundamental identities: Pythagorean, reciprocal, quotient
- Apply sum/difference, double-angle, half-angle formulas as needed
- Factor and simplify until both sides match
For application problems:
- Draw a diagram and label all known and unknown quantities
- Identify the trigonometric relationship (right triangle, oblique triangle, periodic function)
- Set up the equation and solve using the appropriate method above
Document the chosen strategy:
Strategy: Substitute u = sin(x), solve 2u^2 - u - 1 = 0,
back-substitute, and find x in [0, 2*pi).
Got: Specific, named strategy matches problem classification, with key formula or identity identified.
If fail: No single strategy applies? Try combining approaches. Equations mixing sin and cos? Try: (a) Pythagorean substitution, (b) tangent half-angle substitution t = tan(x/2), or (c) auxiliary angle method (asin(x) + bcos(x) = R*sin(x + phi)). Stuck on identity? Try working from both sides toward common middle expression.
Step 3: Apply Identities and Laws Systematic
Execute chosen strategy step by step.
Key identity families to draw from:
-
Pythagorean: sin^2(x) + cos^2(x) = 1, 1 + tan^2(x) = sec^2(x), 1 + cot^2(x) = csc^2(x)
-
Double-angle: sin(2x) = 2sin(x)cos(x), cos(2x) = cos^2(x) - sin^2(x) = 2cos^2(x) - 1 = 1 - 2sin^2(x)
-
Sum/difference: sin(A +/- B) = sin(A)*cos(B) +/- cos(A)*sin(B), cos(A +/- B) = cos(A)*cos(B) -/+ sin(A)*sin(B)
-
Law of sines: a/sin(A) = b/sin(B) = c/sin(C) = 2R
-
Law of cosines: c^2 = a^2 + b^2 - 2ab*cos(C)
-
Half-angle: sin(x/2) = +/-sqrt((1 - cos(x))/2), cos(x/2) = +/-sqrt((1 + cos(x))/2)
Show each algebraic step explicitly:
2*sin^2(x) - sin(x) - 1 = 0
Let u = sin(x):
2u^2 - u - 1 = 0
(2u + 1)(u - 1) = 0
u = -1/2 or u = 1
Back-substitute:
sin(x) = -1/2 or sin(x) = 1
For triangle resolution, compute intermediate values and carry sufficient precision:
Given: a = 7, b = 10, C = 38 degrees (SAS)
Law of cosines: c^2 = 49 + 100 - 2(7)(10)*cos(38)
c^2 = 149 - 140*cos(38) = 149 - 110.312 = 38.688
c = 6.220
Law of sines: sin(A)/7 = sin(38)/6.220
sin(A) = 7*sin(38)/6.220 = 0.6930
A = 43.78 degrees
B = 180 - 38 - 43.78 = 98.22 degrees
Got: Complete chain of algebraic steps from initial equation or data to intermediate result, every identity application labeled.
If fail: Identity application leads to more complex expression rather than simpler? Reconsider strategy. Common recovery moves: (a) try converting to exponential form using Euler's formula for complex identity proofs, (b) multiply both sides by conjugate, (c) use substitution to reduce degree. Numerical computation produces unexpected values? Verify using independent calculation path.
Step 4: Solve and Check Domain/Range Constraints
Extract all solutions, filter against problem's domain.
- Find the reference angle. For each value of the trigonometric function, determine the reference angle using inverse functions:
sin(x) = -1/2 => reference angle = pi/6
sin(x) = 1 => reference angle = pi/2
- Enumerate all solutions in the fundamental period. Use the sign and quadrant rules:
sin(x) = -1/2:
x is in Q3 or Q4 (sin negative)
x = pi + pi/6 = 7*pi/6
x = 2*pi - pi/6 = 11*pi/6
sin(x) = 1:
x = pi/2
- Apply domain restriction. Keep only solutions in the specified interval:
Domain: [0, 2*pi)
Solutions: x = pi/2, 7*pi/6, 11*pi/6
- Write the general solution (if requested):
General solution:
x = pi/2 + 2*k*pi, k in Z
x = 7*pi/6 + 2*k*pi, k in Z
x = 11*pi/6 + 2*k*pi, k in Z
-
Check range constraints. For inverse function problems, verify the output is in the principal value range. For triangle problems, verify all angles are positive and sum to pi (or 180 degrees), and all sides are positive.
-
Handle the ambiguous case (SSA). When using law of sines with SSA data:
- If sin(B) > 1: no solution.
- If sin(B) = 1: one solution (right angle).
- If sin(B) < 1 and the given angle is acute: two possible solutions (check if both yield valid triangles).
- If the given angle is obtuse or right: at most one solution.
Got: Complete, explicit enumerated solution set respects all domain and range constraints, with ambiguous case handled if applicable.
If fail: No solutions exist in specified domain? Verify equation was set up correct. Too many solutions appear? Check whether extraneous solutions were introduced (e.g., by squaring both sides of equation). Always substitute each candidate solution back into original equation.
Step 5: Verify Solution Numerical
Confirm each solution by substitution into original equation or by independent computation.
- Substitute each solution into the original equation and verify equality:
Check x = 7*pi/6:
sin(7*pi/6) = -1/2
2*(-1/2)^2 - (-1/2) - 1 = 2*(1/4) + 1/2 - 1 = 1/2 + 1/2 - 1 = 0. VERIFIED.
Check x = 11*pi/6:
sin(11*pi/6) = -1/2
2*(1/4) + 1/2 - 1 = 0. VERIFIED.
Check x = pi/2:
sin(pi/2) = 1
2*(1) - 1 - 1 = 0. VERIFIED.
- For triangle problems, verify using an independent law:
Verify triangle: a=7, b=10, c=6.220, A=43.78, B=98.22, C=38
Check law of sines: a/sin(A) = 7/sin(43.78) = 7/0.6913 = 10.126
b/sin(B) = 10/sin(98.22) = 10/0.9897 = 10.104
c/sin(C) = 6.220/sin(38) = 6.220/0.6157 = 10.102
Ratios approximately equal (within rounding). VERIFIED.
Check angle sum: 43.78 + 98.22 + 38 = 180. VERIFIED.
- For identity proofs, verify with a specific numerical value:
Verify identity: sin(2x) = 2*sin(x)*cos(x)
Let x = pi/3:
LHS: sin(2*pi/3) = sin(120) = sqrt(3)/2
RHS: 2*sin(pi/3)*cos(pi/3) = 2*(sqrt(3)/2)*(1/2) = sqrt(3)/2
LHS = RHS. VERIFIED.
- Document the final answer in the requested format:
Solution: x in {pi/2, 7*pi/6, 11*pi/6} for x in [0, 2*pi).
Got: Every solution passes substitution verification. Triangle solutions satisfy both law of sines and law of cosines. Identity proofs confirmed by at least one numerical test.
If fail: Solution fails verification? Extraneous. Remove from solution set, re-examine step where introduced. Common sources of extraneous solutions: squaring both sides (introduces sign ambiguity), multiplying by expression that could be zero, or selecting wrong quadrant for reference angle.
Checks
- Problem classified into specific type and sub-type
- Solution strategy explicit named and matches problem type
- Every identity or law application labeled with name
- All algebraic steps shown (no jumps in logic)
- Domain and range constraints explicit applied
- Ambiguous case addressed for SSA triangle problems
- Every solution verified by substitution into original equation
- Triangle solutions cross-checked with independent law
- Final answer stated in requested format (exact, decimal, general, interval-specific)
- Angle units consistent throughout (no mixing radians and degrees)
Pitfalls
-
Lose solutions by dividing by trig function: Divide both sides by sin(x)? Discards all solutions where sin(x) = 0. Always factor instead of dividing: write sin(x) * f(x) = 0, solve each factor separate.
-
Extraneous solutions from squaring: Squaring both sides of sin(x) = cos(x) gives sin^2(x) = cos^2(x), which has twice as many solutions. Always verify candidates against original (unsquared) equation.
-
Ignore ambiguous case (SSA): Solving triangle with two sides and non-included angle? Law of sines can produce 0, 1, or 2 valid triangles. Fail check for second solution misses valid answers.
-
Mix angle units: Using sin(30) when calculator or language in radian mode gives sin(30 radians), not sin(30 degrees). State unit convention at start, enforce throughout.
-
Wrong quadrant for reference angle: sin(x) = -1/2 yields x in Q3 and Q4, not Q1 and Q2. Always check sign of trig function against quadrant before placing angle.
-
Forget periodicity: Trigonometric equations on real line have infinite many solutions. Problem asks for general solution? Include "+ 2kpi" (or "+ kpi" for tangent) term. Asks for solutions in [0, 2pi)? Enumerate all solutions in that interval.
See Also
construct-geometric-figure- constructions often need trigonometric analysis to determine angles and lengthsprove-geometric-theorem- trigonometric identities frequent appear as lemmas within geometric proofscreate-skill- follow when packaging new trigonometric method as reusable skill
GitHub 저장소
연관 스킬
executing-plans
디자인executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.
requesting-code-review
디자인이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.
connect-mcp-server
디자인이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.
web-cli-teleport
디자인이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
