top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S6-SA2-0072

What is the Use of Trigonometry in AI/ML (basic concept)?

Grade Level:

Class 10

AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine

Definition
What is it?

Trigonometry helps AI/ML models understand and work with directions, angles, and shapes in data. It provides the mathematical tools to describe how things rotate, move, or relate to each other in space, which is crucial for tasks like image recognition and robotics.

Simple Example
Quick Example

Imagine an AI trying to recognize if a photo shows a cricket bat standing upright or lying down. Trigonometry helps the AI calculate the angle of the bat in the picture. If the angle is close to 90 degrees, it's upright; if close to 0 degrees, it's lying down. This angle information comes from trigonometry.

Worked Example
Step-by-Step

Let's say an AI needs to find the position of a car in a parking lot using its camera. The camera captures a 2D image, but the car is in a 3D world.

1. **AI detects car's center:** The AI first identifies the center point of the car in the image, let's say at coordinates (X, Y).
2. **AI knows camera's angle:** The AI system knows the camera's tilt angle (elevation) from the ground, for example, 30 degrees.
3. **AI estimates distance to car:** Using image processing, the AI estimates the car is 10 meters away horizontally from the camera's base.
4. **Using Tangent for Height:** To find how high the car's center is from the camera's horizontal line, the AI uses the tangent function: `tan(angle) = opposite / adjacent`.
5. **Calculation:** `tan(30 degrees) = height / 10 meters`. We know `tan(30 degrees)` is approximately `0.577`.
6. **Solve for height:** `height = 0.577 * 10 meters = 5.77 meters`.
7. **Result:** The AI determines the car's center is approximately 5.77 meters above the camera's horizontal line.

This helps the AI understand the car's 3D position.

Why It Matters

Trigonometry is vital for AI/ML because it allows machines to 'see' and 'move' in the real world. Engineers use it in robotics to control arm movements, in self-driving cars to navigate roads, and in medical imaging to analyze scans. It's a foundational skill for careers in AI development, robotics engineering, and data science.

Common Mistakes

MISTAKE: Thinking trigonometry is only about triangles on paper | CORRECTION: Understand that trigonometry provides functions (like sine, cosine, tangent) that describe relationships between angles and lengths, which can be applied to any kind of data that has direction or rotation.

MISTAKE: Confusing the roles of sine, cosine, and tangent in different situations | CORRECTION: Remember that sine relates opposite side to hypotenuse, cosine relates adjacent side to hypotenuse, and tangent relates opposite side to adjacent side. Each is used for specific types of calculations.

MISTAKE: Believing AI/ML automatically understands angles without mathematical input | CORRECTION: AI/ML models need explicit mathematical tools, like trigonometric functions, to process and interpret angular information from sensors or data.

Practice Questions
Try It Yourself

QUESTION: An AI-powered drone needs to fly from point A to point B. If the drone flies 50 meters horizontally and then needs to climb at an angle of 45 degrees for 30 meters, what is the total vertical height gained from the climbing part? (Hint: Use sine) | ANSWER: sin(45 degrees) = height / 30. Height = 30 * sin(45 degrees) = 30 * 0.707 = 21.21 meters (approximately).

QUESTION: A security camera uses AI to track a person walking. If the camera is 12 meters away from the person and the angle of elevation from the camera to the person's head is 30 degrees, what is the approximate height of the person's head from the ground level of the camera? (Assume the camera is at ground level). | ANSWER: tan(30 degrees) = height / 12. Height = 12 * tan(30 degrees) = 12 * 0.577 = 6.924 meters (approximately).

QUESTION: An AI in a self-driving car needs to calculate the angle to turn its steering wheel. If the car needs to move 5 meters forward and 3 meters to the right from its current position, what angle (theta) should the car turn? (Hint: Use tan(theta) = opposite / adjacent) | ANSWER: tan(theta) = 3 / 5 = 0.6. theta = arctan(0.6) = 30.96 degrees (approximately).

MCQ
Quick Quiz

Which trigonometric function is most commonly used by AI to calculate the 'slope' or 'steepness' of a line or surface in data?

Sine

Cosine

Tangent

Secant

The Correct Answer Is:

C

Tangent (tan) is defined as opposite/adjacent, which directly represents the slope of a line or the steepness of an angle. Sine and Cosine are more related to components along axes or circular motion.

Real World Connection
In the Real World

In India, companies developing AI for drone deliveries (like Zomato or Swiggy exploring drone use) or agricultural robots use trigonometry extensively. The AI needs to calculate precise angles for the drone's flight path, how to tilt its cameras to scan crops, or how a robot arm should move to pick fruit without damaging it. This ensures efficient and safe operations.

Key Vocabulary
Key Terms

ANGLE: The space between two intersecting lines or surfaces | SINE: A trigonometric function relating the opposite side to the hypotenuse in a right triangle | COSINE: A trigonometric function relating the adjacent side to the hypotenuse in a right triangle | TANGENT: A trigonometric function relating the opposite side to the adjacent side in a right triangle | ROBOTICS: The field of engineering that deals with the design, construction, operation, and application of robots.

What's Next
What to Learn Next

Now that you understand how trigonometry helps AI, explore 'Vectors in AI/ML'. Vectors use trigonometry to represent both direction and magnitude, which is the next big step in making AI understand movement and forces in a more advanced way. Keep learning, the future is exciting!

bottom of page