TE-SHENG LIN
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: Ch5-2 tags: Linear algebra GA: G-77TT93X4N1 --- # Chapter 5 extra note 2 ## Selected lecture notes > metric > norm > inner product > orthogonal/orthonormal > Pythogorean identity > Parsevals identity ### Metric space :::info **Definition:** A metric (distance function) on $X$ is a function $d:X\times X\to\mathbb{R}$ such that, $\forall x, y, z\in X$, 1. $d(x, y)\ge 0$; 2. $d(x, y) = d(y, x)$; 3. $d(x, y) \le d(x, z) + d(z, y)$; 4. $d(x, y)=0$ if and only if $x=y$. ::: #### Example * Trivial distance: $$ d(x, y) = \begin{cases} 1, & \text{if $x\ne y$}, \\ 0, & \text{if $x=y$}. \end{cases} $$ ### Normed vector space :::info **Definition:** A norm on a vector space $V$ is a function $\|\cdot\|:V\to\mathbb{R}$ such that, $\forall {\bf u}, {\bf v}\in V$, 1. $\|\alpha{\bf u}\| = |\alpha|\|{\bf u}\|$; 2. $\|{\bf u}+{\bf v}\| \le \|{\bf u}\|+\|{\bf v}\|$; 3. $\|{\bf u}\|\ge 0$; 4. $\|{\bf u}\|=0$ if and only if ${\bf u}={\bf 0}$. ::: **Remark** Given a norm $\|\cdot\|$, we can define $$ d({\bf u}, {\bf v}) = \|{\bf u} - {\bf v}\|. $$ Then $d$ is a metric. :::info **Definition:** A vector space with a norm is called a normed space. ::: :::info **Definition:** An inner product space is a normed space. ::: #### Example 1 Let $$ {\bf x} = \begin{bmatrix}x_1 \\ x_2\end{bmatrix}\in\mathbb{R}^2. $$ We define the $p$-norm as $$ \|{\bf x}\|_p = \left(|x_1|^p + |x_2|^p\right)^{1/p}, $$ so $$ \|{\bf x}\|_1 = |x_1| + |x_2|, \quad \|{\bf x}\|_2 = \sqrt{|x_1|^2 + |x_2|^2}. $$ Besides, we define $$ \|{\bf x}\|_{\infty} = \max\{|x_1|, |x_2|\}. $$ #### Example 2 Let $$ {\bf x} = \begin{bmatrix}x_1 \\ \vdots \\ x_n\end{bmatrix}\in\mathbb{R}^n. $$ We define the $p$-norm as $$ \|{\bf x}\|_p = \left(\sum^n_{k=1} |x_k|^p\right)^{1/p}, $$ so $$ \|{\bf x}\|_1 = \sum^n_{k=1} |x_k|, \quad \|{\bf x}\|_2 = \sqrt{\sum^n_{k=1}|x_k|^2}. $$ Also, we define $$ \|{\bf x}\|_{\infty} = \max_{1\le k\le n}\{|x_k|\}. $$ #### Example 3 Given $f(x)$, $x\in[a, b]$, we define the $p$-norm as $$ \|f\|_p = \left(\int^b_a |f(x)|^p\,dx\right)^{1/p}, $$ so $$ \|f\|_1 = \int^b_a |f(x)|\,dx, \quad \|f\|_2 = \sqrt{\int^b_a |f(x)|^2\,dx}. $$ Also, we define $$ \|{\bf x}\|_{\infty} = \max_{x\in[a, b]}\{|f(x)|\}. $$ **Remark** One can see clearly that $2$-norm is induced by usual inner product. **Remark** $$ \text{inner product space} \subset \text{normed space} \subset \text{metric space} $$ --- ### Orthogonality :::info **Definition:** ${\bf u}$ and ${\bf v}$ are orthogonal if $\langle{\bf u}, {\bf v}\rangle=0$ and we write ${\bf u}\perp{\bf v}$. ::: **Remark:** ${\bf 0}\perp{\bf u}, \forall{\bf u}\in V$. **Pythogorean identity:** If ${\bf u}\perp{\bf v}$, then $\|{\bf u}+{\bf v}\|^2=\|{\bf u}\|^2 + \|{\bf v}\|^2$. * Proof: > $$ > \|{\bf u}+{\bf v}\|^2=\langle{\bf u}+{\bf v}, {\bf u}+{\bf v}\rangle = \langle{\bf u}, {\bf u}\rangle+\langle{\bf u}, {\bf v}\rangle+\langle{\bf v}, {\bf u}\rangle+\langle{\bf v}, {\bf v}\rangle. > $$ > Since ${\bf u}\perp{\bf v}$, $\langle{\bf u}, {\bf v}\rangle=0$ and > $$ > \langle{\bf v}, {\bf u}\rangle=\overline{\langle{\bf u}, {\bf v}\rangle}=\bar{0} = 0. > $$ > Therefore, > $$ > \|{\bf u}+{\bf v}\|^2=\langle{\bf u}, {\bf u}\rangle+\langle{\bf v}, {\bf v}\rangle = \|{\bf u}\|^2 + \|{\bf v}\|^2. > $$ > :::info **Definition:** $\{{\bf v}_1, \cdots, {\bf v}_n\}$ is orthogonal if ${\bf v}_i\perp{\bf v}_j$ for all $i\ne j$. ::: **Generalized Pythogorean identity:** Let $\{{\bf v}_1, \cdots, {\bf v}_n\}$ be an orthogonal set, then $$ \left\|\sum^n_{k=1} \alpha_k {\bf v}_k\right\|^2 = \sum^n_{k=1}|\alpha_k|^2\|{\bf v}_k\|^2. $$ * Proof: > $$ > \begin{align} > \left\|\sum^n_{k=1} \alpha_k {\bf v}_k\right\|^2 &= \langle\sum^n_{k=1} \alpha_k {\bf v}_k, \sum^n_{k=1} \alpha_k {\bf v}_k\rangle \\ > &= \sum^n_{k=1}\sum^n_{\ell=1}\langle\alpha_k{\bf v}_k, \alpha_{\ell}{\bf v}_{\ell}\rangle\\ > (\text{since $\{v_k\}$ is orthogonal})\,&=\sum^n_{k=1}\langle\alpha_k{\bf v}_k, \alpha_k{\bf v}_k\rangle\\ > &=\sum^n_{k=1}|\alpha_k|^2\|{\bf v}_k\|^2. > \end{align} > $$ **Corollary:** Any orthogonal system of non-zero vectors is linearly independent. * Proof: > Let $\{{\bf v}_1, \cdots, {\bf v}_n\}$ be an orthogonal set and ${\bf v}_k\ne {\bf 0}$ $\forall k$. > Assume $\alpha_1{\bf v}_1 + \cdots \alpha_n{\bf v}_n={\bf 0}$, we have > $$ > 0 = \|{\bf 0}\|^2 = \|\alpha_1{\bf v}_1 + \cdots \alpha_n{\bf v}_n\|^2 = \sum^n_{k=1}|\alpha_k|^2\|{\bf v}_k\|^2. > $$ > So we must have $|\alpha_k|\|{\bf v}_k\|=0$, $\forall k$. > Since ${\bf v}_k\ne{\bf 0}$, it means that $\alpha_k=0$ $\forall k$. :::info **Definition:** $\{{\bf v}_1, \cdots, {\bf v}_n\}$ is orthonormal if it is orthogonal and $\|{\bf v}_k\|=1$ $\forall k$. ::: **Corollary:** Any orthonormal system is linearly independent. * Proof: > An orthonormal system is orthogonal and does not contains zero vectors, therefore, it is linearly independent. ### Coordinates of vectors Let $\{{\bf v}_1, \cdots, {\bf v}_n\}$ be an orthogonal set. Assume $$ {\bf u} = \alpha_1{\bf v}_1 + \cdots + \alpha_n{\bf v}_n, $$ we have $\langle{\bf u}, {\bf v}_k\rangle = \alpha_k\langle{\bf v}_k, {\bf v}_k\rangle$, that is, $$ \alpha_k = \frac{\langle{\bf u}, {\bf v}_k\rangle}{\langle{\bf v}_k, {\bf v}_k\rangle}. $$ **Remark:** A remarkable fact here is that the coordinates can be calculated directly using the inner product. Given $\{{\bf v}_1, \cdots, {\bf v}_n\}$ be an orthogonal basis, we have $$ {\bf u} = \frac{\langle{\bf u}, {\bf v}_1\rangle}{\|{\bf v}_1\|^2}{\bf v}_1 + \cdots + \frac{\langle{\bf u}, {\bf v}_n\rangle}{\|{\bf v}_n\|^2}{\bf v}_n. $$ #### Example: Fourier series > I must admit that the following statements are a bit sloppy. We only consider and prove problems with finite dimension, but the following are defined on an infinite dimension. Recall in Calculus: For $m,n\in\mathbb{N}\cup\{0\}$, $$ \begin{align} &\int^{\pi}_{-\pi} \sin(mx)\cos(nx)\,dx = 0,\\ &\int^{\pi}_{-\pi} \sin(mx)\sin(nx)\,dx = \begin{cases} 0, & \text{if $m\ne n$ or $m=n=0$}, \\ \pi, & \text{if $m=n\ne 0$}, \end{cases}\\ &\int^{\pi}_{-\pi} \cos(mx)\cos(nx)\,dx = \begin{cases} 0, & \text{if $m\ne n$}, \\ \pi, & \text{if $m=n\ne 0$},\\ 2\pi, & \text{if $m=n=0$}. \end{cases} \end{align} $$ That is, under the inner product $\langle f, g\rangle = \int^{\pi}_{-\pi}f(x)g(x)\,dx$, the following set is an orthogonal set: $$ S = \{1, \sin(x), \cos(x), \sin(2x), \cos(2x), \cdots \}. $$ > Note that we have removed $\sin(0\cdot x)$ since it's a zero function, and as a result $S$ is linearly independent. We then have, given $f\in\text{span}\{S\}$, $$ f(x) = a_0 + \sum^{\infty}_{k=1} a_k\cos(kx) + b_k\sin(kx), $$ where $$ \begin{align} &a_0 = \frac{\langle f, 1\rangle}{\langle 1, 1\rangle} =\frac{1}{2\pi} \int^{\pi}_{-\pi}f(x)\,dx,\\ &a_k = \frac{\langle f, \cos(kx)\rangle}{\langle \cos(kx), \cos(kx)\rangle} =\frac{1}{\pi} \int^{\pi}_{-\pi}f(x)\cos(kx)\,dx,\\ &b_k = \frac{\langle f, \sin(kx)\rangle}{\langle \sin(kx), \sin(kx)\rangle} =\frac{1}{\pi} \int^{\pi}_{-\pi}f(x)\sin(kx)\,dx. \end{align} $$ **Parsevals identity:** (extension of generalized Pythagorean identity) If $f\in\text{span }\{S\}$, $$ \|f\|^2 = \int^{\pi}_{-\pi} |f(x)|^2\,dx = 2\pi|a_0|^2 + \sum^{\infty}_{k=1} \pi|a_k|^2 + \pi|b_k|^2. $$ **Corollary:** If $f\in\text{span }\{S\}$ and $\int^{\pi}_{-\pi} |f(x)|^2\,dx<\infty$, then $\sum^{\infty}_{k=1} |a_k|^2<\infty$ and $\sum^{\infty}_{k=1} |b_k|^2<\infty$, which implies $$ \lim_{k\to\infty} a_k=0, \quad \lim_{k\to\infty} b_k=0. $$

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully