Mathematica Basics

Your first step into computational exploration using Wolfram Language.

What you'll learn

  • Basic syntax and expressions
  • Built-in functions and evaluation
  • Interactive examples

Welcome to Mathematica

Mathematica is fully interactive and dynamic, providing a comprehensive system for technical computing

Let's start by exploring the essential elements through practical examples

Basic Syntax and Input


In[1]:= 2+2

Out[1] = 4

In[2]:= 
Integrate[x^2, x]

Out[2] = x³/3

Plotting functions

In[3]:= Plot[Sin[x], {x, 0, 2 Pi}]

                                    
(Output: Line plot of sine wave)

In[4]:= Solve[x^2 == 4, x]
{{$x \to -2$},>{$x \r1$}

Hands-on Examples

Symbolic Math

Factor Simplify Expand Plot

Expand

Expand[(2x^2 + 1)^3]
8x^6 + 12x4 - +6x^2 + 1

Factor

Factor[16x^4 - 28x^2 - 30]
-2(2x^2 - 5)(2x^2 + 3)

Advanced Functionality

Explore more complex features with Mathematica

                                    D[x^4, x]
4*x^3